From: gfx Date: Sat, 17 Jul 2010 07:18:44 +0000 (+0900) Subject: This fixes RT#59460. (Curtis Jewell) X-Git-Tag: 0.63~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=01f38ab1a660b3497e02d8f737b82dbe02299f66;p=gitmo%2FMouse.git This fixes RT#59460. (Curtis Jewell) --- diff --git a/Changes b/Changes index a817d43..46862ce 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,11 @@ Revision history for Mouse +0.63 + [CHANGES] + * Resolve RT#59460: Test::Requires is not a required prerequisite unless + release-testing... (Curtis Jewell) + See also https://rt.cpan.org/Public/Bug/Display.html?id=59460 + 0.62 Tue Jul 6 20:18:58 2010 [FEATURES] * Support MouseX::StrictConstructor (gfx) diff --git a/Makefile.PL b/Makefile.PL index 17cdb7e..dff623f 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,7 +1,7 @@ # for developpers: BEGIN{ if(grep{ $_ eq '--author' } @ARGV){ - print "^X -S cpanm < author/requires.cpanm\n"; + print "$^X -S cpanm < author/requires.cpanm\n"; system "$^X -S cpanm < author/requires.cpanm"; } } @@ -26,7 +26,9 @@ requires 'Scalar::Util' => 1.14; test_requires 'Test::More' => 0.88; test_requires 'Test::Exception' => 0.29; -test_requires 'Test::Requires' => 0.03; +if ( $ENV{RELEASE_TESTING} || (grep { $_ eq '--author' } @ARGV) ) { + test_requires 'Test::Requires' => 0.03; +} # test_requires 'Test::Output' => 0.16; # too many dependencies! if($] < 5.010) {