1 use inc::Module::Install 0.89;
8 # ****** DO NOT ADD OPTIONAL DEPENDENCIES. EVER. --mst ******
11 perl_version '5.008001';
12 all_from 'lib/DBIx/Class.pm';
15 test_requires 'Test::Builder' => '0.33';
16 test_requires 'Test::Deep' => '0';
17 test_requires 'Test::Exception' => '0';
18 test_requires 'Test::More' => '0.92';
19 test_requires 'Test::Warn' => '0.21';
21 test_requires 'File::Temp' => '0.22';
25 requires 'List::Util' => '0';
26 requires 'Scalar::Util' => '0';
27 requires 'Storable' => '0';
29 # Dependencies (keep in alphabetical order)
30 requires 'Carp::Clan' => '6.0';
31 requires 'Class::Accessor::Grouped' => '0.09002';
32 requires 'Class::C3::Componentised' => '1.0005';
33 requires 'Class::Inspector' => '1.24';
34 requires 'Data::Page' => '2.00';
35 requires 'DBD::SQLite' => '1.25';
36 requires 'DBI' => '1.609';
37 requires 'JSON::Any' => '1.18';
38 requires 'MRO::Compat' => '0.09';
39 requires 'Module::Find' => '0.06';
40 requires 'Path::Class' => '0.16';
41 requires 'Scope::Guard' => '0.03';
42 requires 'SQL::Abstract' => '1.60';
43 requires 'SQL::Abstract::Limit' => '0.13';
44 requires 'Sub::Name' => '0.04';
45 requires 'Data::Dumper::Concise' => '1.000';
47 my %replication_requires = (
49 'MooseX::Types', => '0.16',
50 'namespace::clean' => '0.11',
51 'Hash::Merge', => '0.11',
54 #************************************************************************#
55 # Make *ABSOLUTELY SURE* that nothing on this list is a real require, #
56 # since every module listed in %force_requires_if_author is deleted #
57 # from the final META.yml (thus will never make it as a CPAN dependency) #
58 #************************************************************************#
59 my %force_requires_if_author = (
60 %replication_requires,
62 # when changing also adjust $DBIx::Class::Storage::DBI::minimum_sqlt_version
63 'SQL::Translator' => '0.11002',
65 # 'Module::Install::Pod::Inherit' => '0.01',
67 # when changing also adjust version in t/02pod.t
68 'Test::Pod' => '1.26',
70 # when changing also adjust version in t/06notabs.t
71 # 'Test::NoTabs' => '0.9',
73 # when changing also adjust version in t/07eol.t
74 # 'Test::EOL' => '0.6',
76 # when changing also adjust version in t/03podcoverage.t
77 'Test::Pod::Coverage' => '1.08',
78 'Pod::Coverage' => '0.20',
81 'DBIx::ContextualFetch' => '0',
82 'Class::DBI::Plugin::DeepAbstractSearch' => '0',
83 'Class::Trigger' => '0',
84 'Time::Piece::MySQL' => '0',
86 'Date::Simple' => '3.03',
89 'Test::Memory::Cycle' => '0',
90 'Devel::Cycle' => '1.10',
94 'DateTime::Format::SQLite' => '0',
96 # t/96_is_deteministic_value.t
97 'DateTime::Format::Strptime'=> '0',
99 # database-dependent reqs
101 $ENV{DBICTEST_PG_DSN}
103 'Sys::SigAction' => '0',
104 'DBD::Pg' => '2.009002',
105 'DateTime::Format::Pg' => '0',
109 $ENV{DBICTEST_MYSQL_DSN}
111 'DateTime::Format::MySQL' => '0',
115 $ENV{DBICTEST_ORA_DSN}
117 'DateTime::Format::Oracle' => '0',
121 $ENV{DBICTEST_SYBASE_DSN}
123 'DateTime::Format::Sybase' => 0,
127 #************************************************************************#
128 # Make ABSOLUTELY SURE that nothing on the list above is a real require, #
129 # since every module listed in %force_requires_if_author is deleted #
130 # from the final META.yml (thus will never make it as a CPAN dependency) #
131 #************************************************************************#
142 resources 'IRC' => 'irc://irc.perl.org/#dbix-class';
143 resources 'license' => 'http://dev.perl.org/licenses/';
144 resources 'repository' => 'http://dev.catalyst.perl.org/repos/bast/DBIx-Class/';
145 resources 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class';
147 # Deprecated/internal modules need no exposure
148 no_index directory => $_ for (qw|
149 lib/DBIx/Class/SQLAHacks
150 lib/DBIx/Class/PK/Auto
152 no_index package => $_ for (qw/
153 DBIx::Class::Storage::DBI::AmbiguousGlob
154 DBIx::Class::SQLAHacks DBIx::Class::Storage::DBIHacks
157 # re-build README and require extra modules for testing if we're in a checkout
159 if ($Module::Install::AUTHOR) {
161 ******************************************************************************
162 ******************************************************************************
164 *** AUTHOR MODE: all optional test dependencies converted to hard requires ***
166 ******************************************************************************
167 ******************************************************************************
171 foreach my $module (sort keys %force_requires_if_author) {
172 build_requires ($module => $force_requires_if_author{$module});
175 print "Regenerating README\n";
176 system('pod2text lib/DBIx/Class.pm > README');
179 print "Removing MANIFEST\n";
183 # require Module::Install::Pod::Inherit;
191 # Re-write META.yml to _exclude_ all forced requires (we do not want to ship this)
192 if ($Module::Install::AUTHOR) {
194 Meta->{values}{build_requires} = [ grep
195 { not exists $force_requires_if_author{$_->[0]} }
196 ( @{Meta->{values}{build_requires}} )