1 use inc::Module::Install 0.89;
6 use 5.006001; # delete this line if you want to send patches for earlier.
8 # ****** DO NOT ADD OPTIONAL DEPENDENCIES. EVER. --mst ******
11 perl_version '5.006001';
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 # Perl 5.8.0 doesn't have utf8::is_utf8()
30 requires 'Encode' => '0' if ($] <= 5.008000);
32 # Dependencies (keep in alphabetical order)
33 requires 'Carp::Clan' => '6.0';
34 requires 'Class::Accessor::Grouped' => '0.09000';
35 requires 'Class::C3::Componentised' => '1.0005';
36 requires 'Class::Inspector' => '1.24';
37 requires 'Data::Page' => '2.00';
38 requires 'DBD::SQLite' => '1.25';
39 requires 'DBI' => '1.605';
40 requires 'JSON::Any' => '1.18';
41 requires 'MRO::Compat' => '0.09';
42 requires 'Module::Find' => '0.06';
43 requires 'Path::Class' => '0.16';
44 requires 'Scope::Guard' => '0.03';
45 requires 'SQL::Abstract' => '1.60';
46 requires 'SQL::Abstract::Limit' => '0.13';
47 requires 'Sub::Name' => '0.04';
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 #************************************************************************#
58 # Make *ABSOLUTELY SURE* that nothing on this list is a real require, #
59 # since every module listed in %force_requires_if_author is deleted #
60 # from the final META.yml (thus will never make it as a CPAN dependency) #
61 #************************************************************************#
62 my %force_requires_if_author = (
63 %replication_requires,
65 # when changing also adjust $DBIx::Class::Storage::DBI::minimum_sqlt_version
66 'SQL::Translator' => '0.11002',
68 # 'Module::Install::Pod::Inherit' => '0.01',
70 # when changing also adjust version in t/02pod.t
71 'Test::Pod' => '1.26',
73 # when changing also adjust version in t/03podcoverage.t
74 'Test::Pod::Coverage' => '1.08',
75 'Pod::Coverage' => '0.20',
78 'DBIx::ContextualFetch' => '0',
79 'Class::DBI::Plugin::DeepAbstractSearch' => '0',
80 'Class::Trigger' => '0',
81 'Time::Piece::MySQL' => '0',
83 'Date::Simple' => '3.03',
86 'Test::Memory::Cycle' => '0',
87 'Devel::Cycle' => '1.10',
91 'DateTime::Format::SQLite' => '0',
93 # t/96_is_deteministic_value.t
94 'DateTime::Format::Strptime'=> '0',
96 # database-dependent reqs
100 'Sys::SigAction' => '0',
101 'DBD::Pg' => '2.009002',
102 'DateTime::Format::Pg' => '0',
106 $ENV{DBICTEST_MYSQL_DSN}
108 'DateTime::Format::MySQL' => '0',
112 $ENV{DBICTEST_ORACLE_DSN}
114 'DateTime::Format::Oracle' => '0',
118 $ENV{DBICTEST_SYBASE_DSN}
120 'DateTime::Format::Sybase' => 0,
124 #************************************************************************#
125 # Make ABSOLUTELY SURE that nothing on the list above is a real require, #
126 # since every module listed in %force_requires_if_author is deleted #
127 # from the final META.yml (thus will never make it as a CPAN dependency) #
128 #************************************************************************#
139 resources 'IRC' => 'irc://irc.perl.org/#dbix-class';
140 resources 'license' => 'http://dev.perl.org/licenses/';
141 resources 'repository' => 'http://dev.catalyst.perl.org/svnweb/bast/browse/DBIx-Class/';
142 resources 'MailingList' => 'http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class';
144 no_index 'DBIx::Class::Storage::DBI::Sybase::Common';
145 no_index 'DBIx::Class::SQLAHacks';
146 no_index 'DBIx::Class::SQLAHacks::MSSQL';
147 no_index 'DBIx::Class::Storage::DBI::AmbiguousGlob';
148 no_index 'DBIx::Class::Storage::DBI::Sybase::Microsoft_SQL_Server';
149 no_index 'DBIx::Class::Storage::DBI::Sybase::Microsoft_SQL_Server::NoBindVars';
151 # re-build README and require extra modules for testing if we're in a checkout
153 if ($Module::Install::AUTHOR) {
155 ******************************************************************************
156 ******************************************************************************
158 *** AUTHOR MODE: all optional test dependencies converted to hard requires ***
160 ******************************************************************************
161 ******************************************************************************
165 foreach my $module (sort keys %force_requires_if_author) {
166 build_requires ($module => $force_requires_if_author{$module});
169 print "Regenerating README\n";
170 system('pod2text lib/DBIx/Class.pm > README');
173 print "Removing MANIFEST\n";
177 # require Module::Install::Pod::Inherit;
185 # Re-write META.yml to _exclude_ all forced requires (we do not want to ship this)
186 if ($Module::Install::AUTHOR) {
188 Meta->{values}{build_requires} = [ grep
189 { not exists $force_requires_if_author{$_->[0]} }
190 ( @{Meta->{values}{build_requires}} )