1 use inc::Module::Install 0.89;
6 use 5.006001; # delete this line if you want to send patches for earlier.
9 perl_version '5.006001';
10 all_from 'lib/DBIx/Class.pm';
13 test_requires 'Test::Builder' => '0.33';
14 test_requires 'Test::Deep' => '0';
15 test_requires 'Test::Exception' => '0';
16 test_requires 'Test::More' => '0.92';
17 test_requires 'Test::Warn' => '0.21';
19 test_requires 'File::Temp' => '0.22';
23 requires 'List::Util' => '0';
24 requires 'Scalar::Util' => '0';
25 requires 'Storable' => '0';
27 # Perl 5.8.0 doesn't have utf8::is_utf8()
28 requires 'Encode' => '0' if ($] <= 5.008000);
30 # Dependencies (keep in alphabetical order)
31 requires 'Carp::Clan' => '6.0';
32 requires 'Class::Accessor::Grouped' => '0.09000';
33 requires 'Class::C3::Componentised' => '1.0005';
34 requires 'Class::Inspector' => '1.24';
35 requires 'Data::Page' => '2.00';
36 requires 'DBD::SQLite' => '1.25';
37 requires 'DBI' => '1.605';
38 requires 'JSON::Any' => '1.18';
39 requires 'MRO::Compat' => '0.09';
40 requires 'Module::Find' => '0.06';
41 requires 'Path::Class' => '0.16';
42 requires 'Scope::Guard' => '0.03';
43 requires 'SQL::Abstract' => '1.56';
44 requires 'SQL::Abstract::Limit' => '0.13';
45 requires 'Sub::Name' => '0.04';
47 my %replication_requires = (
49 'MooseX::AttributeHelpers' => '0.21',
50 'MooseX::Types', => '0.16',
51 'namespace::clean' => '0.11',
52 'Hash::Merge', => '0.11',
55 # when changing also adjust $DBIx::Class::minimum_sqlt_version
56 my $sqlt_recommends = '0.11002';
58 recommends 'SQL::Translator' => $sqlt_recommends;
60 my %force_requires_if_author = (
61 %replication_requires,
63 # 'Module::Install::Pod::Inherit' => '0.01',
64 'Test::Pod::Coverage' => '1.04',
65 'SQL::Translator' => $sqlt_recommends,
68 'DBIx::ContextualFetch' => '0',
69 'Class::DBI::Plugin::DeepAbstractSearch' => '0',
70 'Class::Trigger' => '0',
71 'Time::Piece::MySQL' => '0',
73 'Date::Simple' => '3.03',
76 'Test::Memory::Cycle' => '0',
77 'Devel::Cycle' => '1.10',
81 'DateTime::Format::SQLite' => '0',
83 # t/96_is_deteministic_value.t
84 'DateTime::Format::Strptime'=> '0',
86 # database-dependent reqs
90 'Sys::SigAction' => '0',
91 'DBD::Pg' => '2.009002',
92 'DateTime::Format::Pg' => '0',
96 $ENV{DBICTEST_MYSQL_DSN}
98 'DateTime::Format::MySQL' => '0',
102 $ENV{DBICTEST_ORACLE_DSN}
104 'DateTime::Format::Oracle' => '0',
118 resources 'IRC' => 'irc://irc.perl.org/#dbix-class';
119 resources 'license' => 'http://dev.perl.org/licenses/';
120 resources 'repository' => 'http://dev.catalyst.perl.org/svnweb/bast/browse/DBIx-Class/';
121 resources 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class';
123 no_index 'DBIx::Class::Storage::DBI::Sybase::Base';
124 no_index 'DBIx::Class::SQLAHacks';
125 no_index 'DBIx::Class::SQLAHacks::MSSQL';
126 no_index 'DBIx::Class::Storage::DBI::AmbiguousGlob';
127 no_index 'DBIx::Class::Storage::DBI::Sybase::Microsoft_SQL_Server';
128 no_index 'DBIx::Class::Storage::DBI::Sybase::Microsoft_SQL_Server::NoBindVars';
130 # re-build README and require extra modules for testing if we're in a checkout
132 if ($Module::Install::AUTHOR) {
134 ******************************************************************************
135 ******************************************************************************
137 *** AUTHOR MODE: all optional test dependencies converted to hard requires ***
139 ******************************************************************************
140 ******************************************************************************
144 foreach my $module (sort keys %force_requires_if_author) {
145 build_requires ($module => $force_requires_if_author{$module});
148 print "Regenerating README\n";
149 system('pod2text lib/DBIx/Class.pm > README');
152 print "Removing MANIFEST\n";
156 # require Module::Install::Pod::Inherit;
164 # Re-write META.yml to _exclude_ all forced requires (we do not want to ship this)
165 if ($Module::Install::AUTHOR) {
167 Meta->{values}{build_requires} = [ grep
168 { not exists $force_requires_if_author{$_->[0]} }
169 ( @{Meta->{values}{build_requires}} )