1Dist::Zilla::Prereqs(3)User Contributed Perl DocumentatioDnist::Zilla::Prereqs(3)
2
3
4
6 Dist::Zilla::Prereqs - the prerequisites of a Dist::Zilla distribution
7
9 version 6.023
10
12 Dist::Zilla::Prereqs is a subcomponent of Dist::Zilla. The "prereqs"
13 attribute on your Dist::Zilla object is a Dist::Zilla::Prereqs object,
14 and is responsible for keeping track of the distribution's
15 prerequisites.
16
17 In fact, a Dist::Zilla::Prereqs object is just a thin layer over a
18 CPAN::Meta::Prereqs object, stored in the "cpan_meta_prereqs"
19 attribute.
20
21 Almost everything this object does is proxied to the
22 CPAN::Meta::Prereqs object, so you should really read how that works.
23
24 Dist::Zilla::Prereqs proxies the following methods to the
25 CPAN::Meta::Prereqs object:
26
27 • finalize
28
29 • is_finalized
30
31 • requirements_for
32
33 • as_string_hash
34
36 This module should work on any version of perl still receiving updates
37 from the Perl 5 Porters. This means it should work on any version of
38 perl released in the last two to three years. (That is, if the most
39 recently released version is v5.40, then this module should work on
40 both v5.40 and v5.38.)
41
42 Although it may work on older versions of perl, no guarantee is made
43 that the minimum required version will not be increased. The version
44 may be increased for any reason, and there is no promise that patches
45 will be accepted to lower the minimum required perl.
46
48 register_prereqs
49 $prereqs->register_prereqs(%prereqs);
50
51 $prereqs->register_prereqs(\%arg, %prereqs);
52
53 This method adds new minimums to the prereqs object. If a hashref is
54 the first arg, it may have entries for "phase" and "type" to indicate
55 what kind of prereqs are being registered. (For more information on
56 phase and type, see CPAN::Meta::Spec.) For example, you might say:
57
58 $prereqs->register_prereqs(
59 { phase => 'test', type => 'recommends' },
60 'Test::Foo' => '1.23',
61 'XML::YZZY' => '2.01',
62 );
63
64 If not given, phase and type default to runtime and requires,
65 respectively.
66
68 Ricardo SIGNES 😏 <rjbs@semiotic.systems>
69
71 This software is copyright (c) 2021 by Ricardo SIGNES.
72
73 This is free software; you can redistribute it and/or modify it under
74 the same terms as the Perl 5 programming language system itself.
75
76
77
78perl v5.34.0 2021-07-22 Dist::Zilla::Prereqs(3)