NAME
Dist::Zilla::Util::ParsePrereqsFromDistIni - Parse prereqs from dzil's dist.ini
VERSION
This document describes version 0.02 of Dist::Zilla::Util::ParsePrereqsFromDistIni (from Perl distribution Dist-Zilla-Util-ParsePrereqsFromDistIni), released on 2015-05-15.
SYNOPSIS
use Dist::Zilla::Util::ParsePrereqsFromDistIni qw(parse_prereqs_from_dist_ini);
my $prereqs = parse_prereqs_from_dist_ini(path => "dist.ini");
Sample result:
{
runtime => { requires => { "Config::IOD::Reader" => 0, "perl" => 5.010001 } },
}
DESCRIPTION
This module provides parse_prereqs_from_dist_ini()
.
FUNCTIONS
parse_prereqs_from_dist_ini(%args) -> any
Parse prereqs from dzil's dist.ini.
This routine tries to get prereqs solely from reading Dist::Zilla's dist.ini
(from Prereqs and Prereqs/* sections, as well as from OsPrereqs, see lint-prereqs
utility).
The downside is that the routine can't detect prereqs that are added dynamically during dist building process, e.g. from AutoPrereqs plugin and so on. But the upside is that this routine can be used outside dzil and/or for dist.ini
of other dists (not the current dist during dzil build process).
One application of this routine is in Dist::Zilla::Util::CombinePrereqsFromDistInis
.
Arguments ('*' denotes required arguments):
path => str
Path to dist.ini.
src => str
Content of dist.ini.
Return value: (any)
SEE ALSO
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/Dist-Zilla-Util-ParsePrereqsFromDistIni.
SOURCE
Source repository is at https://github.com/perlancar/perl-Dist-Zilla-Util-ParsePrereqsFromDistIni.
BUGS
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Dist-Zilla-Util-ParsePrereqsFromDistIni
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2015 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.