perl-Dist-Zilla-Plugin-DynamicPrereqs - Specify dynamic (user-side) prerequisites for your distribution

Edit Package perl-Dist-Zilla-Plugin-DynamicPrereqs

This is a Dist::Zilla plugin that inserts code into your Makefile.PL to indicate dynamic (installer-side) prerequisites.

Code is inserted immediately after the declarations for '%WriteMakefileArgs' and '%FallbackPrereqs', before they are conditionally modified (when an older ExtUtils::MakeMaker is installed). This gives you an opportunity to add to the 'WriteMakefile' arguments: 'PREREQ_PM', 'BUILD_REQUIRES', and 'TEST_REQUIRES', and therefore modify the prerequisites in the user's MYMETA.yml and MYMETA.json based on conditions found on the user's system.

The 'dynamic_config' field in metadata is already set for you.

You could potentially use this plugin for performing other modifications in Makefile.PL other than user-side prerequisite modifications, but I can't think of a situation where this makes sense. Contact me if you have any ideas!

Only Makefile.PL modification is supported at this time. This author considers the use of Module::Build to be questionable in all circumstances, and Module::Build::Tiny does not (yet?) support dynamic configuration.

Refresh
Refresh
Source Files
Filename Size Changed
Dist-Zilla-Plugin-DynamicPrereqs-0.040.tar.gz 0000047966 46.8 KB
cpanspec.yml 0000000669 669 Bytes
perl-Dist-Zilla-Plugin-DynamicPrereqs.changes 0000001249 1.22 KB
perl-Dist-Zilla-Plugin-DynamicPrereqs.spec 0000004626 4.52 KB
Latest Revision
Dirk Stoecker's avatar Dirk Stoecker (dstoecker) accepted request 982414 from Tina Müller's avatar Tina Müller (tinita) (revision 4)
- updated to 0.040
   see /usr/share/doc/packages/perl-Dist-Zilla-Plugin-DynamicPrereqs/Changes
  0.040     2022-06-12 23:30:29Z
            - want_pp now returns undef when PUREPERL_ONLY is not specified
            - added want_xs sub
Comments 0
openSUSE Build Service is sponsored by