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.11;
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.08003;
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 recommends 'SQL::Translator' => 0.09004;
49 my %replication_requires = (
51 'MooseX::AttributeHelpers' => 0.21,
52 'MooseX::Types', => 0.16,
53 'namespace::clean' => 0.11,
54 'Hash::Merge', => 0.11,
57 my %force_requires_if_author = (
58 %replication_requires,
60 # 'Module::Install::Pod::Inherit' => 0.01,
61 'Test::Pod::Coverage' => 1.04,
62 'SQL::Translator' => 0.09007,
65 'DBIx::ContextualFetch' => 0,
66 'Class::DBI::Plugin::DeepAbstractSearch' => 0,
67 'Class::Trigger' => 0,
68 'Time::Piece::MySQL' => 0,
70 'Date::Simple' => 3.03,
73 'Test::Memory::Cycle' => 0,
74 'Devel::Cycle' => 1.10,
78 'DateTime::Format::SQLite' => 0,
80 # t/96_is_deteministic_value.t
81 'DateTime::Format::Strptime'=> 0,
83 # database-dependent reqs
87 'Sys::SigAction' => 0,
88 'DBD::Pg' => 2.009002,
89 'DateTime::Format::Pg' => 0,
93 $ENV{DBICTEST_MYSQL_DSN}
95 'DateTime::Format::MySQL' => 0,
99 $ENV{DBICTEST_ORACLE_DSN}
101 'DateTime::Format::Oracle' => 0,
115 resources 'IRC' => 'irc://irc.perl.org/#dbix-class';
116 resources 'license' => 'http://dev.perl.org/licenses/';
117 resources 'repository' => 'http://dev.catalyst.perl.org/svnweb/bast/browse/DBIx-Class/';
118 resources 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class';
120 no_index 'DBIx::Class::Storage::DBI::Sybase::Base';
121 no_index 'DBIx::Class::SQLAHacks';
122 no_index 'DBIx::Class::SQLAHacks::MSSQL';
123 no_index 'DBIx::Class::Storage::DBI::AmbiguousGlob';
124 no_index 'DBIx::Class::Storage::DBI::Sybase::Microsoft_SQL_Server';
125 no_index 'DBIx::Class::Storage::DBI::Sybase::Microsoft_SQL_Server::NoBindVars';
127 # re-build README and require extra modules for testing if we're in a checkout
129 if ($Module::Install::AUTHOR) {
131 ******************************************************************************
132 ******************************************************************************
134 *** AUTHOR MODE: all optional test dependencies converted to hard requires ***
136 ******************************************************************************
137 ******************************************************************************
141 foreach my $module (sort keys %force_requires_if_author) {
142 build_requires ($module => $force_requires_if_author{$module});
145 print "Regenerating README\n";
146 system('pod2text lib/DBIx/Class.pm > README');
149 print "Removing MANIFEST\n";
153 # require Module::Install::Pod::Inherit;
161 # Re-write META.yml to _exclude_ all forced requires (we do not want to ship this)
162 if ($Module::Install::AUTHOR) {
164 Meta->{values}{build_requires} = [ grep
165 { not exists $force_requires_if_author{$_->[0]} }
166 ( @{Meta->{values}{build_requires}} )