3 use inc::Module::Install 0.98;
4 use Module::Install::AuthorRequires;
5 use Module::Install::ExtraTests;
8 check_broken_extratests();
12 perl_version '5.008003';
13 all_from 'lib/Moose.pm';
17 requires 'Class::MOP' => '1.09';
18 requires 'Data::OptList' => '0';
19 requires 'List::MoreUtils' => '0.12';
20 requires 'Package::DeprecationManager' => '0.04';
21 requires 'Params::Util' => '0';
22 requires 'Scalar::Util' => '1.19';
23 requires 'Sub::Exporter' => '0.980';
24 requires 'Sub::Name' => '0';
25 requires 'Task::Weaken' => '0';
26 requires 'Try::Tiny' => '0.02';
28 test_requires 'Test::More' => '0.88';
29 test_requires 'Test::Exception' => '0.27';
30 test_requires 'Test::Requires' => '0.05';
32 author_requires 'DateTime';
33 author_requires 'DateTime::Calendar::Mayan';
34 author_requires 'DateTime::Format::MySQL';
35 author_requires 'Declare::Constraints::Simple';
36 author_requires 'DBM::Deep';
37 author_requires 'File::Find::Rule';
38 author_requires 'HTTP::Headers';
39 author_requires 'IO::File';
40 author_requires 'IO::String';
41 author_requires 'Locale::US';
42 author_requires 'Module::Info';
43 author_requires 'Module::Refresh';
44 author_requires 'Params::Coerce';
45 author_requires 'Regexp::Common';
46 author_requires 'Test::Deep';
47 author_requires 'Test::Inline';
48 author_requires 'Test::NoTabs';
49 author_requires 'Test::Output';
50 author_requires 'Test::Pod::Coverage';
51 author_requires 'Test::Spelling';
52 author_requires 'URI';
54 if ( is_maintainer() ) {
55 system( $^X, 'author/extract-inline-tests' );
60 repository 'git://git.moose.perl.org/Moose.git';
61 add_metadata(x_authority => 'cpan:STEVAN');
67 # Use the xt/author/test-my-dependents.t test to figure
68 # out what on CPAN will break with the latest Moose, then update this
72 'Catalyst' => '5.80028',
73 'Devel::REPL' => '1.003008',
76 'File::ChangeNotify' => '0.15',
79 'MooseX::Aliases' => '0.07',
80 'MooseX::AlwaysCoerce' => '0.05',
81 'MooseX::AttributeHelpers' => '0.22',
82 'MooseX::AttributeInflate' => '0.02',
83 'MooseX::Attribute::Prototype' => '0.10',
84 'MooseX::ClassAttribute' => '0.16',
85 'MooseX::FollowPBP' => '0.02',
86 'MooseX::HasDefaults' => '0.02',
87 'MooseX::InstanceTracking' => '0.04',
88 'MooseX::LazyRequire' => '0.05',
89 'MooseX::MethodAttributes' => '0.22',
90 'MooseX::NonMoose' => '0.15',
91 'MooseX::Params::Validate' => '0.05',
92 'MooseX::POE' => '0.205',
93 'MooseX::Role::Cmd' => '0.06',
94 'MooseX::Role::WithOverloading' => '0.07',
95 'MooseX::SemiAffordanceAccessor' => '0.05',
96 'MooseX::Singleton' => '0.24',
97 'MooseX::StrictConstructor' => '0.08',
98 'MooseX::Types' => '0.19',
99 'MooseX::UndefTolerant' => '0.04',
100 'namespace::autoclean' => '0.08',
101 'Pod::Elemental' => '0.093280',
105 for my $mod ( sort keys %conflicts ) {
109 my $installed = $mod->VERSION();
110 if ( $installed le $conflicts{$mod} ) {
115 This version of Moose conflicts with the version of
116 $mod ($installed) you have installed.
118 You will need to upgrade $mod after installing
119 this version of Moose.
128 return unless $found;
130 # More or less copied from Module::Build
131 return if $ENV{PERL_MM_USE_DEFAULT};
132 return unless -t STDIN && (-t STDOUT || !(-f STDOUT || -c STDOUT));
138 return $Module::Install::AUTHOR || $ENV{IS_MAINTAINER};
141 sub check_broken_extratests {
142 return unless is_maintainer();
144 if ( exists $Module::Install::ExtraTests::{VERSION} && Module::Install::ExtraTests->VERSION < 0.007 ) {
145 print STDERR <<'EOR';
146 You have a broken version of Module::Install::ExtraTests installed.
147 Please upgrade to version 0.007 or newer and re-run Makefile.PL