From 2d7ee13eb5334cb671c756622ea7b2da14d78fa8 Mon Sep 17 00:00:00 2001 From: Ed Freyfogle Date: Tue, 20 Mar 2018 22:49:20 +0100 Subject: [PATCH] switch to dzil for packaging --- LICENSE => LICENSE.txt | 0 MANIFEST | 19 ------------ MANIFEST.SKIP | 19 ------------ Makefile.PL | 66 ------------------------------------------ README => README.md | 0 dist.ini | 48 ++++++++++++++++++++++++++++++ 6 files changed, 48 insertions(+), 104 deletions(-) rename LICENSE => LICENSE.txt (100%) delete mode 100644 MANIFEST delete mode 100644 MANIFEST.SKIP delete mode 100644 Makefile.PL rename README => README.md (100%) create mode 100644 dist.ini diff --git a/LICENSE b/LICENSE.txt similarity index 100% rename from LICENSE rename to LICENSE.txt diff --git a/MANIFEST b/MANIFEST deleted file mode 100644 index e3c5ac4..0000000 --- a/MANIFEST +++ /dev/null @@ -1,19 +0,0 @@ -Changes -lib/Data/MoneyCurrency.pm -Makefile.PL -MANIFEST This list of files -MANIFEST.SKIP -README -LICENSE -t/00-load.t -t/get_currencies_for_country.t -t/get_currency.t -t/manifest.t -t/pod-coverage.t -t/pod.t -ruby-money/config/currency_backwards_compatible.json -ruby-money/config/currency_iso.json -ruby-money/config/currency_non_iso.json -ruby-money/LICENSE -ruby-money/README.md -.editorconfig diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP deleted file mode 100644 index 1fca21a..0000000 --- a/MANIFEST.SKIP +++ /dev/null @@ -1,19 +0,0 @@ -^\.git/ -^\.gitignore$ -^\.gitmodules$ -~$ -\.tar\.gz$ -^Data-MoneyCurrency-.*/ -ruby-money/lib/ -ruby-money/spec/ -ruby-money/.coveralls.yml -ruby-money/.git -ruby-money/.gitignore -ruby-money/.rspec -ruby-money/.travis.yml -ruby-money/AUTHORS -ruby-money/CHANGELOG.md -ruby-money/CONTRIBUTING.md -ruby-money/Gemfile -ruby-money/Rakefile -ruby-money/money.gemspec diff --git a/Makefile.PL b/Makefile.PL deleted file mode 100644 index 48ba85c..0000000 --- a/Makefile.PL +++ /dev/null @@ -1,66 +0,0 @@ -use 5.006; -use strict; -use warnings; -use ExtUtils::MakeMaker; -use File::ShareDir::Install; -use File::Basename qw(dirname); -use File::Spec; - -my $dirname = dirname(__FILE__); -my @required_files = ( - File::Spec->catfile("ruby-money", "config", "currency_backwards_compatible.json"), - File::Spec->catfile("ruby-money", "config", "currency_iso.json"), - File::Spec->catfile("ruby-money", "config", "currency_non_iso.json"), - File::Spec->catfile("ruby-money", "LICENSE"), - File::Spec->catfile("ruby-money", "README.md"), -); -for my $file (@required_files) { - my $path = File::Spec->catfile($dirname, $file); - if (! -e $path) { - die "Expected file '$path' to exist, have you checked out the submodule?"; - } -} - -install_share dist => File::Spec->catfile("ruby-money", "config"); - -WriteMakefile( - NAME => 'Data::MoneyCurrency', - AUTHOR => q{Ed Freyfogle }, - VERSION_FROM => 'lib/Data/MoneyCurrency.pm', - ABSTRACT_FROM => 'lib/Data/MoneyCurrency.pm', - LICENSE => 'mit', - PL_FILES => {}, - MIN_PERL_VERSION => 5.006, - META_MERGE => { - 'meta-spec' => { version => 2 }, - homepage => 'https://github.com/Flimm/perl5-Data-MoneyCurrency', - bugtracker => { - web => 'https://github.com/Flimm/perl5-Data-MoneyCurrency/issues', - }, - resources => { - repository => { - type => 'git', - url => 'https://github.com/Flimm/perl5-Data-MoneyCurrency.git', - web => 'https://github.com/Flimm/perl5-Data-MoneyCurrency', - }, - }, - }, - CONFIGURE_REQUIRES => { - 'ExtUtils::MakeMaker' => 0, - 'File::ShareDir::Install' => 0, - }, - BUILD_REQUIRES => { - 'Test::More' => 0, - 'Test::Exception' => 0, - }, - PREREQ_PM => { - 'File::ShareDir' => 0, - 'JSON' => 0, - 'Types::Serialiser' => 0, - }, - dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, - clean => { FILES => 'Data-MoneyCurrency-*' }, -); - -package MY; -use File::ShareDir::Install qw(postamble); diff --git a/README b/README.md similarity index 100% rename from README rename to README.md diff --git a/dist.ini b/dist.ini new file mode 100644 index 0000000..29ab7c6 --- /dev/null +++ b/dist.ini @@ -0,0 +1,48 @@ +; configuration file for Dist::Zilla +; http://dzil.org/ + +name = perl5-Data-MoneyCurrency +version = 0.04 +author = edf +license = Perl_5 +copyright_holder = Opencage Data Limited + +; http://dzil.org/tutorial/prereq.html +[Prereqs] +perl = 5.012 +JSON = 0 +File::ShareDir = 0 +Types::Serialiser = 0 +Test::More = 0.88 ; for done_testing +Test::Exception = 0 +Test::Warn = 0 + +[GatherDir] + +; for removing unwanted files, e.g. files starting a '.' +[PruneCruft] + +; https://metacpan.org/source/KENTNL/Dist-Zilla-Plugin-MetaProvides-2.001000/README +[MetaProvides::Package] + +[MakeMaker] +[MetaJSON] +[MetaYAML] +[Manifest] + +[PkgVersion] +[PodWeaver] +[License] +[Readme] + +[GithubMeta] + +; see http://dzil.org/tutorial/vcs-git.html +[Git::Check] +[Git::Commit] +[Git::Tag] +[Git::Push] + +[TestRelease] +[ConfirmRelease] +[UploadToCPAN]