Dist::Z...Prereqs(3)
π NAME π
Dist::Zilla::Plugin::AutoPrereqs β the plugin that automatically extracts your prereqs straight out of your modules, bestie. No cap, it just does it for you. β¨
πΈ VERSION πΈ
version 6.040
π SYNOPSIS π
Drop this in your dist.ini and you're so set:
[AutoPrereqs]
skip = ^Foo|Bar$
skip = ^Other::Dist
π¦ DESCRIPTION π¦
Okay so this plugin goes through your files and loosely extracts your distribution prerequisites using Perl::PrereqScanner. It's giving very much auto-pilot. π
If some prereqs are not found? Don't panic, babe. You can still add them manually with the Prereqs plugin. π«Ά
The plugin will skip the modules shipped within your dist β like, if it's already yours, it's not a prereq, periodt.
β οΈ Note: if you have any non-Perl files in yourt/directory or other directories being scanned, be sure to mark those files' encoding asbyteswith theEncodingplugin so they won't be scanned. Otherwise it's gonna try to read your data files like they're Perl and it's gonna be a whole thing π
[Encoding]
encoding = bytes
match = ^t/data/
π§ PERL VERSION π§
This module should work on any version of perl still receiving updates from the Perl 5 Porters. Which basically means it works on any version of perl released in the last two to three years. (So like, if the most recently released version is v5.40, then this module should work on both v5.40 and v5.38.) π
Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl. That's just how it is, bestie. π
π ATTRIBUTES π
finder
This is the name of a FileFinder whose files will be scanned to determine runtime prerequisites. It may be specified multiple times. The default value is :InstallModules and :ExecFiles. β
test_finder
Just like finder, but for test-phase prerequisites. The default value is :TestFiles. π§ͺ
configure_finder
Just like finder, but for configure-phase prerequisites. There is no default value; AutoPrereqs will not determine configure-phase prerequisites unless you set configure_finder. So if you want it, you gotta say it, iykyk. π
develop_finder
Just like finder, but for develop-phase prerequisites. The default value is :ExtraTestFiles. π±
skips
This is an arrayref of regular expressions, derived from all the 'skip' lines in the configuration. Any module names matching any of these regexes will not be registered as prerequisites. Bye bestie, not you. π
relationship
The relationship used for the registered prerequisites. The default value is 'requires'; other options are 'recommends' and 'suggests'. Choose your vibe. π
extra_scanners
This is an arrayref of scanner names (as expected by Perl::PrereqScanner). It will be passed as the extra_scanners parameter to Perl::PrereqScanner. Add-ons, but make it scanners. β¨
scanners
This is an arrayref of scanner names (as expected by Perl::PrereqScanner). If present, it will be passed as the scanners parameter to Perl::PrereqScanner, which means that it will replace the default list of scanners. So, like, be careful β you're swapping out the whole lineup, not adding to it. π₯
π SEE ALSO π
Prereqs, Perl::PrereqScanner.
π CREDITS π
This plugin was originally contributed by Jerome Quelin. Iconic behavior, honestly. π
π« AUTHOR π«
Ricardo SIGNES π <cpan@semiotic.systems>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2026 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
And that's the whole page, bestie!! π₯³ This was Dist::Z...Prereqs(3) from the User Contributed Perl Documentation, perl v5.42.3, dated 2026-10-19. Go forth and let the plugin find your prereqs for you. Slay. π
β¨
π¦ where this page comes from
- fedora 44: perl-Dist-Zilla 6.040-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms