diff --git a/.gitignore b/.gitignore index a8f36dc3a06b99fe88c5c451cab72c81c7c92498..189304fa2d3843c2b08a5d765484d1c2201c5d24 100644 --- a/.gitignore +++ b/.gitignore @@ -7,3 +7,4 @@ /MANIFEST.SKIP /MANIFEST.SKIP.bak /MYMETA.yml +/MYMETA.json diff --git a/Build.PL b/Build.PL index 827db398a895d0a515490d4425a9639e72c761d3..9595eddf8d1ca4a8a219540009620b6b6557ea2c 100644 --- a/Build.PL +++ b/Build.PL @@ -4,7 +4,8 @@ use strict; use warnings; use Module::Build; -my %opts = ( +Module::Build->new( + build_requires => { 'Test::More' => 0, 'Test::Compile' => 0, @@ -20,12 +21,5 @@ my %opts = ( 'XML::LibXML' => 0, 'WWW::Mechanize' => 0, }, -); - -if (-d '.git' and qx{which git} =~ qr{/git$}) { - $opts{'dist_version'} = qx{git describe}; - chomp $opts{'dist_version'}; -} -my $build = Module::Build->new(%opts); -$build->create_build_script; +)->create_build_script();