foo
[gitmo/MooseX-Storage.git] / Build.PL
1
2 use strict;
3 use warnings;
4
5 use Module::Build;
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
16         'Storable'     => '0',
17         # and the ability to save the 
18         # file to disk        
19         'IO::File'     => '0',    
20     },
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',        
29         # this if for the basic role with checksum
30         'Digest'            => '0', 
31         'Digest::SHA1'      => '0',    
32         'Data::Dumper'      => '0',        
33     },
34     build_requires => {
35         'Test::More'       => '0.62',
36         'Test::Exception'  => '0.21',
37         'Test::Deep'       => '0',        
38     },
39     create_makefile_pl => 'traditional',
40     recursive_test_files => 1,
41     add_to_cleanup => [
42         'META.yml', '*.bak', '*.gz', 'Makefile.PL',
43     ],
44 );
45
46 $build->create_build_script;
47