line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# ABSTRACT: List your distribution's author dependencies |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
use Dist::Zilla::Pragmas; |
4
|
4
|
|
|
4
|
|
2588
|
|
|
4
|
|
|
|
|
17
|
|
|
4
|
|
|
|
|
27
|
|
5
|
|
|
|
|
|
|
use Dist::Zilla::App -command; |
6
|
4
|
|
|
4
|
|
40
|
|
|
4
|
|
|
|
|
13
|
|
|
4
|
|
|
|
|
57
|
|
7
|
|
|
|
|
|
|
#pod =head1 SYNOPSIS |
8
|
|
|
|
|
|
|
#pod |
9
|
|
|
|
|
|
|
#pod $ dzil authordeps |
10
|
|
|
|
|
|
|
#pod |
11
|
|
|
|
|
|
|
#pod This will scan the F<dist.ini> file and print a list of plugin modules that |
12
|
|
|
|
|
|
|
#pod probably need to be installed for the dist to be buildable. This is a very |
13
|
|
|
|
|
|
|
#pod naive scan, but tends to be pretty accurate. Modules can be added to its |
14
|
|
|
|
|
|
|
#pod results by using special comments in the form: |
15
|
|
|
|
|
|
|
#pod |
16
|
|
|
|
|
|
|
#pod ; authordep Some::Package |
17
|
|
|
|
|
|
|
#pod |
18
|
|
|
|
|
|
|
#pod In order to add authordeps to all distributions that use a certain plugin bundle |
19
|
|
|
|
|
|
|
#pod (or plugin), just list them as prereqs of that bundle (e.g.: using |
20
|
|
|
|
|
|
|
#pod L<Dist::Zilla::Plugin::Prereqs> ). |
21
|
|
|
|
|
|
|
#pod |
22
|
|
|
|
|
|
|
#pod =cut |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
0
|
|
|
0
|
1
|
|
return ( |
26
|
|
|
|
|
|
|
[ 'root=s' => 'the root of the dist; defaults to .' ], |
27
|
|
|
|
|
|
|
[ 'missing' => 'list only the missing dependencies' ], |
28
|
|
|
|
|
|
|
[ 'versions' => 'include required version numbers in listing' ], |
29
|
0
|
|
|
0
|
1
|
|
); |
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
my ($self, $opt, $arg) = @_; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
require Dist::Zilla::Path; |
35
|
|
|
|
|
|
|
require Dist::Zilla::Util::AuthorDeps; |
36
|
0
|
|
|
0
|
1
|
|
|
37
|
|
|
|
|
|
|
my $deps = Dist::Zilla::Util::AuthorDeps::format_author_deps( |
38
|
0
|
|
|
|
|
|
Dist::Zilla::Util::AuthorDeps::extract_author_deps( |
39
|
0
|
|
|
|
|
|
Dist::Zilla::Path::path($opt->root // '.'), |
40
|
|
|
|
|
|
|
$opt->missing, |
41
|
0
|
|
0
|
|
|
|
), $opt->versions |
42
|
|
|
|
|
|
|
); |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
$self->log($deps) if $deps; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
return; |
47
|
|
|
|
|
|
|
} |
48
|
0
|
0
|
|
|
|
|
|
49
|
|
|
|
|
|
|
1; |
50
|
0
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
=pod |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=encoding UTF-8 |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 NAME |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Dist::Zilla::App::Command::authordeps - List your distribution's author dependencies |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 VERSION |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
version 6.028 |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head1 SYNOPSIS |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
$ dzil authordeps |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
This will scan the F<dist.ini> file and print a list of plugin modules that |
69
|
|
|
|
|
|
|
probably need to be installed for the dist to be buildable. This is a very |
70
|
|
|
|
|
|
|
naive scan, but tends to be pretty accurate. Modules can be added to its |
71
|
|
|
|
|
|
|
results by using special comments in the form: |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
; authordep Some::Package |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
In order to add authordeps to all distributions that use a certain plugin bundle |
76
|
|
|
|
|
|
|
(or plugin), just list them as prereqs of that bundle (e.g.: using |
77
|
|
|
|
|
|
|
L<Dist::Zilla::Plugin::Prereqs> ). |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head1 PERL VERSION |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
This module should work on any version of perl still receiving updates from |
82
|
|
|
|
|
|
|
the Perl 5 Porters. This means it should work on any version of perl released |
83
|
|
|
|
|
|
|
in the last two to three years. (That is, if the most recently released |
84
|
|
|
|
|
|
|
version is v5.40, then this module should work on both v5.40 and v5.38.) |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Although it may work on older versions of perl, no guarantee is made that the |
87
|
|
|
|
|
|
|
minimum required version will not be increased. The version may be increased |
88
|
|
|
|
|
|
|
for any reason, and there is no promise that patches will be accepted to lower |
89
|
|
|
|
|
|
|
the minimum required perl. |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
=head1 AUTHOR |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
Ricardo SIGNES 😏 <cpan@semiotic.systems> |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
96
|
|
|
|
|
|
|
|
97
|
|
|
|
|
|
|
This software is copyright (c) 2022 by Ricardo SIGNES. |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
100
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
=cut |