NAME
Dist::Zilla::Plugin::AutoPrereq - automatically extract prereqs from your modules
VERSION
version 0.3.1
SYNOPSIS
In your dist.ini:
[AutoPrereq]
skip = ^Foo|Bar$
DESCRIPTION
This plugin will extract loosely your distribution prerequisites from your files.
The extraction may not be perfect, since it will only find the following prereqs:
plain lines beginning with
use
orrequire
in your perl modules and scripts.Moose inheritance declared with the
extends
keyword (warning: only the first one is currently extracted).Moose roles included with the
with
keyword.
If some prereqs are not found, you can still add them manually with the Dist::Zilla::Plugin::Prereq plugin.
It will trim the following pragamata: strict
, warnings
and lib
. It will also trim the modules under your dist namespace (eg: for Dist-Zilla
, it will trim all Dist::Zilla::*
prereqs found.
The module accept the following options:
skip: a regex that will remove any matching modules found from prereqs.
BUGS
Please report any bugs or feature request to <bug-dist-zilla-plugin-autoprereq@rt.cpan.org>
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Dist-Zilla-Plugin-AutoPrereq.
AUTHOR
Jerome Quelin
COPYRIGHT AND LICENSE
This software is copyright (c) 2009 by Jerome Quelin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.