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.11';
18 requires 'Data::OptList' => '0';
19 requires 'List::MoreUtils' => '0.12';
20 requires 'Package::DeprecationManager' => '0.10';
21 requires 'Params::Util' => '1.00';
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::Fatal' => '0.001';
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' );
64 files => ['lib/Moose/Meta/Method/Accessor/Native.pm'],
65 directory => ['lib/Moose/Meta/Method/Accessor/Native'],
73 # Use the xt/author/test-my-dependents.t test to figure
74 # out what on CPAN will break with the latest Moose, then update this
78 'Catalyst' => '5.80028',
79 'Devel::REPL' => '1.003008',
82 'File::ChangeNotify' => '0.15',
85 'MooseX::Aliases' => '0.07',
86 'MooseX::AlwaysCoerce' => '0.05',
87 'MooseX::AttributeHelpers' => '0.22',
88 'MooseX::AttributeInflate' => '0.02',
89 'MooseX::Attribute::Prototype' => '0.10',
90 'MooseX::ClassAttribute' => '0.17',
91 'MooseX::FollowPBP' => '0.02',
92 'MooseX::HasDefaults' => '0.02',
93 'MooseX::InstanceTracking' => '0.04',
94 'MooseX::LazyRequire' => '0.05',
95 'MooseX::MethodAttributes' => '0.22',
96 'MooseX::NonMoose' => '0.15',
97 'MooseX::Params::Validate' => '0.05',
98 'MooseX::POE' => '0.205',
99 'MooseX::Role::Cmd' => '0.06',
100 'MooseX::Role::WithOverloading' => '0.07',
101 'MooseX::SemiAffordanceAccessor' => '0.05',
102 'MooseX::Singleton' => '0.24',
103 'MooseX::StrictConstructor' => '0.08',
104 'MooseX::Types' => '0.19',
105 'MooseX::UndefTolerant' => '0.04',
106 'namespace::autoclean' => '0.08',
107 'Pod::Elemental' => '0.093280',
111 for my $mod ( sort keys %conflicts ) {
115 my $installed = $mod->VERSION();
116 if ( $installed le $conflicts{$mod} ) {
121 This version of Moose conflicts with the version of
122 $mod ($installed) you have installed.
124 You will need to upgrade $mod after installing
125 this version of Moose.
134 return unless $found;
136 # More or less copied from Module::Build
137 return if $ENV{PERL_MM_USE_DEFAULT};
138 return unless -t STDIN && (-t STDOUT || !(-f STDOUT || -c STDOUT));
144 return $Module::Install::AUTHOR || $ENV{IS_MAINTAINER};
147 sub check_broken_extratests {
148 return unless is_maintainer();
150 if ( exists $Module::Install::ExtraTests::{VERSION} && Module::Install::ExtraTests->VERSION < 0.007 ) {
151 print STDERR <<'EOR';
152 You have a broken version of Module::Install::ExtraTests installed.
153 Please upgrade to version 0.007 or newer and re-run Makefile.PL