3 use inc::Module::Install 0.98;
4 use Module::Install::AuthorRequires;
7 check_broken_extratests();
11 perl_version '5.008001';
12 all_from 'lib/Moose.pm';
16 requires 'Class::MOP' => '1.02';
17 requires 'Data::OptList' => '0';
18 requires 'List::MoreUtils' => '0.12';
19 requires 'Scalar::Util' => '1.19';
20 requires 'Sub::Exporter' => '0.980';
21 requires 'Sub::Name' => '0';
22 requires 'Task::Weaken' => '0';
23 requires 'Try::Tiny' => '0.02';
25 test_requires 'Test::More' => '0.88';
26 test_requires 'Test::Exception' => '0.27';
28 author_requires 'Test::Inline';
29 author_requires 'File::Find::Rule';
30 author_requires 'Module::Info';
31 author_requires 'Test::Spelling';
32 author_requires 'Test::Pod::Coverage';
33 author_requires 'Test::NoTabs';
35 if ( is_maintainer() ) {
36 system( $^X, 'author/extract-inline-tests' );
41 repository 'git://git.moose.perl.org/Moose.git';
42 add_metadata(x_authority => 'cpan:STEVAN');
46 # Use the xt/author/test-my-dependents.t test to figure
47 # out what on CPAN will break with the latest Moose, then update this
51 'Devel::REPL' => '1.003008',
53 'Catalyst' => '5.80017',
54 'MooseX::Aliases' => '0.07',
55 'MooseX::AttributeHelpers' => '0.22',
56 'MooseX::Attribute::Prototype' => '0.10',
57 'MooseX::ClassAttribute' => '0.09',
58 'MooseX::MethodAttributes' => '0.18',
59 'MooseX::NonMoose' => '0.07',
60 'MooseX::Params::Validate' => '0.05',
61 'MooseX::Role::Cmd' => '0.06',
62 'MooseX::Role::WithOverloading' => '0.04',
63 'MooseX::Singleton' => '0.19',
64 'MooseX::StrictConstructor' => '0.07',
65 'MooseX::Types' => '0.19',
66 'Pod::Elemental' => '0.093280',
67 'namespace::autoclean' => '0.08',
72 for my $mod ( sort keys %conflicts ) {
76 my $installed = $mod->VERSION();
77 if ( $installed le $conflicts{$mod} ) {
82 This version of Moose conflicts with the version of
83 $mod ($installed) you have installed.
85 You will need to upgrade $mod after installing
86 this version of Moose.
97 # More or less copied from Module::Build
98 return if $ENV{PERL_MM_USE_DEFAULT};
99 return unless -t STDIN && (-t STDOUT || !(-f STDOUT || -c STDOUT));
105 return $Module::Install::AUTHOR || $ENV{IS_MAINTAINER};
108 sub check_broken_extratests {
109 return unless is_maintainer();
111 if ( exists $Module::Install::ExtraTests::{VERSION} && Module::Install::ExtraTests->VERSION < 0.007 ) {
112 print STDERR <<'EOR';
113 You have a broken version of Module::Install::ExtraTests installed.
114 Please upgrade to version 0.007 or newer and re-run Makefile.PL