Skip Menu |

This queue is for tickets about the Dist-Zilla-Plugin-MinimumPerl CPAN distribution.

Report information
The Basics
Id: 61028
Status: resolved
Priority: 0/
Queue: Dist-Zilla-Plugin-MinimumPerl

People
Owner: Nobody in particular
Requestors: dagolden [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.02
Fixed in: (no value)



Subject: Don't scan examples directories
The plugin scans all files, including examples/. It should scan only lib, inc and t. Even better would be to have lib/ set 'requires', inc/ set 'configure_requires' and t/ set 'test_requires'. But I'd be happy enough if it just scanned those and nothing else. -- David
Hello, Thanks for the notice! Looking into dzil, I realized that I can use the FileFinderUser role and now it only scans modules and executable files. That should be good enough for now, deal? I'm leaving this ticket open as a TODO because I like your idea of having per-phase perl requires, but at the same time it's a bit wacky? How can the toolchain cope with a lib requires of 5.8.0 and test requires of 5.10.0? I assume a blanket version requirement is sufficient to cover the entire dist? Thanks again! -- ~Apocalypse
On Mon Dec 06 13:11:57 2010, APOCAL wrote: Show quoted text
> Thanks for the notice! Looking into dzil, I realized that I can use the > FileFinderUser role and now it only scans modules and executable files. > That should be good enough for now, deal?
That would be great! Thank you. David
Thanks again for the idea and prodding me to fix it :) v1.001 on CPAN fixes this. It doesn't specify per-phase requires, tho. However, I've sent a patch to RJBS adding a new IncModules finder to dzil. He showed interest in merging it, but found no "real" reason to use the finder, ha! When he updates dzil, I'll update MinimumPerl to use it and specify per-phase requires more accurately. However, I wonder how the CPAN-Meta-Converter works when converting to 1.4? Which phase's perl will it pick as the prereq? Hope you can help me answer that :) -- ~Apocalypse
Subject: Re: [rt.cpan.org #61028] Don't scan examples directories
Date: Mon, 13 Dec 2010 21:28:59 -0500
To: bug-Dist-Zilla-Plugin-MinimumPerl [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
On Mon, Dec 13, 2010 at 8:50 PM, Apocalypse via RT <bug-Dist-Zilla-Plugin-MinimumPerl@rt.cpan.org> wrote: Show quoted text
> However, I wonder how the CPAN-Meta-Converter works when converting to > 1.4? Which phase's perl will it pick as the prereq? Hope you can help me > answer that :)
I'm pretty sure both test/requires and build/requires map to build_requires in the 1.4 spec. Any recommends/suggests are probably dropped on the floor. -- David
Subject: Re: [rt.cpan.org #61028] Don't scan examples directories
Date: Mon, 13 Dec 2010 20:00:10 -0700
To: bug-Dist-Zilla-Plugin-MinimumPerl [...] rt.cpan.org
From: "perl [...] 0ne.us" <perl [...] 0ne.us>
David Golden via RT wrote: Show quoted text
> Queue: Dist-Zilla-Plugin-MinimumPerl > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=61028 > > > On Mon, Dec 13, 2010 at 8:50 PM, Apocalypse via RT > <bug-Dist-Zilla-Plugin-MinimumPerl@rt.cpan.org> wrote: >
>> However, I wonder how the CPAN-Meta-Converter works when converting to >> 1.4? Which phase's perl will it pick as the prereq? Hope you can help me >> answer that :) >>
> > I'm pretty sure both test/requires and build/requires map to > build_requires in the 1.4 spec. Any recommends/suggests are probably > dropped on the floor. > > -- David > >
Hmm, what if test/requires a perl = 5.8.0 and build/requires a perl = 5.10.0 Which one will end up in the 1.4 spec? Does it do any smart handling like pick the highest required ver? All this pondering might be pointless, because I suspect I can't control that behavior in my plugin ;) Thanks!
Subject: Re: [rt.cpan.org #61028] Don't scan examples directories
Date: Mon, 13 Dec 2010 23:30:22 -0500
To: bug-Dist-Zilla-Plugin-MinimumPerl [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
On Mon, Dec 13, 2010 at 10:00 PM, Apocalypse via RT <bug-Dist-Zilla-Plugin-MinimumPerl@rt.cpan.org> wrote: Show quoted text
> Hmm, what if test/requires a perl = 5.8.0 and build/requires a perl = 5.10.0 > > Which one will end up in the 1.4 spec? Does it do any smart handling > like pick the highest required ver?
It might just merge them. build_requires => "5.8.0, 5.10.0" Both have to be satisfied. It's a quirk in the spec that it allows it, but it works. I don't know for sure that's how I implemented it, though. David
Hello, This has been a long time coming but I'm going to release v1.004 with this change :) Thanks again for your patience! On Mon Dec 13 23:30:57 2010, DAGOLDEN wrote: Show quoted text
> On Mon, Dec 13, 2010 at 10:00 PM, Apocalypse via RT > <bug-Dist-Zilla-Plugin-MinimumPerl@rt.cpan.org> wrote:
> > Hmm, what if test/requires a perl = 5.8.0 and build/requires a perl = > > 5.10.0 > > > > Which one will end up in the 1.4 spec? Does it do any smart handling > > like pick the highest required ver?
> > It might just merge them. build_requires => "5.8.0, 5.10.0" > > Both have to be satisfied. It's a quirk in the spec that it allows it, > but it works. > > I don't know for sure that's how I implemented it, though. > > David
-- ~Apocalypse