Commit | Line | Data |
e59193fb |
1 | |
8d8356bb |
2 | use strict; |
c86a46cc |
3 | use warnings; |
4 | |
5 | use Module::Build; |
8d8356bb |
6 | |
7 | my $build = Module::Build->new( |
8 | module_name => 'MooseX::Storage', |
9 | license => 'perl', |
10 | requires => { |
11 | 'Moose' => '0.20', |
12 | # you should have at least one |
13 | # serialization format |
14 | 'JSON::Any' => '0', |
15 | 'Best' => '0', # << this if for loading YAML |
124c2ba5 |
16 | 'Storable' => '0', |
8d8356bb |
17 | # and the ability to save the |
18 | # file to disk |
c4a322ec |
19 | 'IO::File' => '0', |
e59193fb |
20 | }, |
8d8356bb |
21 | optional => { |
22 | 'IO::AtomicFile' => '0', |
23 | # these are only used in the |
24 | # test, I recommend them, but |
25 | # there is no need to force |
26 | # them on people :) |
27 | 'Test::YAML::Valid' => '0', |
28 | 'Test::JSON' => '0', |
c86a46cc |
29 | # this if for the basic role with checksum |
30 | 'Digest' => '0', |
31 | 'Digest::SHA1' => '0', |
32 | 'Data::Dumper' => '0', |
8d8356bb |
33 | }, |
34 | build_requires => { |
35 | 'Test::More' => '0.62', |
36 | 'Test::Exception' => '0.21', |
c86a46cc |
37 | 'Test::Deep' => '0', |
8d8356bb |
38 | }, |
39 | create_makefile_pl => 'traditional', |
40 | recursive_test_files => 1, |
41 | add_to_cleanup => [ |
42 | 'META.yml', '*.bak', '*.gz', 'Makefile.PL', |
43 | ], |
e59193fb |
44 | ); |
45 | |
8d8356bb |
46 | $build->create_build_script; |
47 | |