[libclass-tiny-perl] 02/05: modernize repo files; add VERSION assignments and Makefile.PL

gregor herrmann gregoa at debian.org
Sun May 31 14:03:57 UTC 2015


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to annotated tag release-1.001
in repository libclass-tiny-perl.

commit 4c16d60272f066d7762d83c507e44ce8722130f8
Author: David Golden <dagolden at cpan.org>
Date:   Mon Oct 6 16:59:29 2014 -0400

    modernize repo files; add VERSION assignments and Makefile.PL
---
 CONTRIBUTING      | 70 --------------------------------------------
 CONTRIBUTING.mkdn | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 Makefile.PL       | 69 +++++++++++++++++++++++++++++++++++++++++++
 README.mkdn       |  2 +-
 cpanfile          | 45 ----------------------------
 dist.ini          |  4 ++-
 lib/Class/Tiny.pm |  6 ++--
 7 files changed, 164 insertions(+), 119 deletions(-)

diff --git a/CONTRIBUTING b/CONTRIBUTING
deleted file mode 100644
index 0d13aaa..0000000
--- a/CONTRIBUTING
+++ /dev/null
@@ -1,70 +0,0 @@
-## HOW TO CONTRIBUTE
-
-Thank you for considering contributing to this distribution.  This file
-contains instructions that will help you work with the source code.
-
-The distribution is managed with Dist::Zilla.  This means than many of the
-usual files you might expect are not in the repository, but are generated
-at release time (e.g. Makefile.PL).
-
-### Getting dependencies
-
-See the included `cpanfile` file for a list of dependencies.  If you have
-App::cpanminus 1.6 or later installed, you can use `cpanm` to satisfy
-dependencies like this:
-
-    $ cpanm --installdeps .
-
-Otherwise, you can install Module::CPANfile 1.0002 or later and then satisfy
-dependencies with the regular `cpan` client and `cpanfile-dump`:
-
-    $ cpan `cpanfile-dump`
-
-### Running tests
-
-You can run tests directly using the `prove` tool:
-
-    $ prove -l
-    $ prove -lv t/some_test_file.t
-
-For most distributions, `prove` is entirely sufficent for you to test any
-patches you have.
-
-### Code style and tidying
-
-Please try to match any existing coding style.  If there is a `.perltidyrc`
-file, please install Perl::Tidy and use perltidy before submitting patches.
-
-If there is a `tidyall.ini` file, you can also install Code::TidyAll and run
-`tidyall` on a file or `tidyall -a` to tidy all files.
-
-### Patching documentation
-
-Much of the documentation Pod is generated at release time.
-Depending on the distribution, some documentation may be written in a Pod
-dialect called WikiDoc. (See Pod::WikiDoc on CPAN.)
-
-If you would like to submit a documentation edit, please limit yourself to the
-documentation you see.
-
-If you see typos or documentation issues in the generated docs, please
-email or open a bug ticket instead of patching.
-
-### Learning Dist::Zilla
-
-Dist::Zilla is a very powerful authoring tool, but requires a number of
-author-specific plugins.  If you would like to use it for contributing,
-install it from CPAN, then run one of the following commands, depending on
-your CPAN client:
-
-    $ cpan `dzil authordeps`
-    $ dzil authordeps | cpanm
-
-Once installed, here are some dzil commands you might try:
-
-    $ dzil build
-    $ dzil test
-    $ dzil xtest
-
-You can learn more about Dist::Zilla at http://dzil.org/
-
diff --git a/CONTRIBUTING.mkdn b/CONTRIBUTING.mkdn
new file mode 100644
index 0000000..761c9db
--- /dev/null
+++ b/CONTRIBUTING.mkdn
@@ -0,0 +1,87 @@
+## HOW TO CONTRIBUTE
+
+Thank you for considering contributing to this distribution.  This file
+contains instructions that will help you work with the source code.
+
+The distribution is managed with Dist::Zilla.  This means than many of the
+usual files you might expect are not in the repository, but are generated at
+release time, as is much of the documentation.  Some generated files are
+kept in the repository as a convenience (e.g. Makefile.PL or cpanfile).
+
+Generally, **you do not need Dist::Zilla to contribute patches**.  You do need
+Dist::Zilla to create a tarball.  See below for guidance.
+
+### Getting dependencies
+
+If you have App::cpanminus 1.6 or later installed, you can use `cpanm` to
+satisfy dependencies like this:
+
+    $ cpanm --installdeps .
+
+Otherwise, look for either a `Makefile.PL` or `cpanfile` file for
+a list of dependencies to satisfy.
+
+### Running tests
+
+You can run tests directly using the `prove` tool:
+
+    $ prove -l
+    $ prove -lv t/some_test_file.t
+
+For most of my distributions, `prove` is entirely sufficient for you to test any
+patches you have. I use `prove` for 99% of my testing during development.
+
+### Code style and tidying
+
+Please try to match any existing coding style.  If there is a `.perltidyrc`
+file, please install Perl::Tidy and use perltidy before submitting patches.
+
+If there is a `tidyall.ini` file, you can also install Code::TidyAll and run
+`tidyall` on a file or `tidyall -a` to tidy all files.
+
+### Patching documentation
+
+Much of the documentation Pod is generated at release time.  Some is
+generated boilerplate; other documentation is built from pseudo-POD
+directives in the source like C<=method> or C<=func>.
+
+If you would like to submit a documentation edit, please limit yourself to
+the documentation you see.
+
+If you see typos or documentation issues in the generated docs, please
+email or open a bug ticket instead of patching.
+
+### Installing and using Dist::Zilla
+
+Dist::Zilla is a very powerful authoring tool, optimized for maintaining a
+large number of distributions with a high degree of automation, but it has a
+large dependency chain, a bit of a learning curve and requires a number of
+author-specific plugins.
+
+To install it from CPAN, I recommend one of the following approaches for
+the quickest installation:
+
+    # using CPAN.pm, but bypassing non-functional pod tests
+    $ cpan TAP::Harness::Restricted
+    $ PERL_MM_USE_DEFAULT=1 HARNESS_CLASS=TAP::Harness::Restricted cpan Dist::Zilla
+
+    # using cpanm, bypassing *all* tests
+    $ cpanm -n Dist::Zilla
+
+In either case, it's probably going to take about 10 minutes.  Go for a walk,
+go get a cup of your favorite beverage, take a bathroom break, or whatever.
+When you get back, Dist::Zilla should be ready for you.
+
+Then you need to install any plugins specific to this distribution:
+
+    $ cpan `dzil authordeps`
+    $ dzil authordeps | cpanm
+
+Once installed, here are some dzil commands you might try:
+
+    $ dzil build
+    $ dzil test
+    $ dzil xtest
+
+You can learn more about Dist::Zilla at http://dzil.org/
+
diff --git a/Makefile.PL b/Makefile.PL
new file mode 100644
index 0000000..57fd458
--- /dev/null
+++ b/Makefile.PL
@@ -0,0 +1,69 @@
+
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.020.
+use strict;
+use warnings;
+
+use 5.006;
+
+use ExtUtils::MakeMaker 6.17;
+
+my %WriteMakefileArgs = (
+    "ABSTRACT"           => "Minimalist class construction",
+    "AUTHOR"             => "David Golden <dagolden\@cpan.org>",
+    "CONFIGURE_REQUIRES" => { "ExtUtils::MakeMaker" => "6.17" },
+    "DISTNAME"           => "Class-Tiny",
+    "EXE_FILES"          => [],
+    "LICENSE"            => "apache",
+    "NAME"               => "Class::Tiny",
+    "PREREQ_PM"          => {
+        "Carp"     => 0,
+        "strict"   => 0,
+        "warnings" => 0
+    },
+    "TEST_REQUIRES" => {
+        "Exporter"            => 0,
+        "ExtUtils::MakeMaker" => 0,
+        "File::Spec"          => 0,
+        "Test::More"          => "0.96",
+        "base"                => 0,
+        "lib"                 => 0,
+        "subs"                => 0
+    },
+    "VERSION" => "1.001",
+    "test"    => { "TESTS" => "t/*.t" }
+);
+
+my %FallbackPrereqs = (
+    "Carp"                => 0,
+    "Exporter"            => 0,
+    "ExtUtils::MakeMaker" => 0,
+    "File::Spec"          => 0,
+    "Test::More"          => "0.96",
+    "base"                => 0,
+    "lib"                 => 0,
+    "strict"              => 0,
+    "subs"                => 0,
+    "warnings"            => 0
+);
+
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
+    delete $WriteMakefileArgs{TEST_REQUIRES};
+    delete $WriteMakefileArgs{BUILD_REQUIRES};
+    $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
+}
+
+delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
+  unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
+
+if ( $] < 5.010 ) {
+    $WriteMakefileArgs{PREREQ_PM} =
+      { %{ $WriteMakefileArgs{PREREQ_PM} }, "MRO::Compat" => "0", };
+}
+
+if ( $] < 5.014 ) {
+    $WriteMakefileArgs{PREREQ_PM} =
+      { %{ $WriteMakefileArgs{PREREQ_PM} }, "Devel::GlobalDestruction" => "0", };
+}
+
+WriteMakefile(%WriteMakefileArgs);
+
diff --git a/README.mkdn b/README.mkdn
index 73dfc33..0b0ab43 120000
--- a/README.mkdn
+++ b/README.mkdn
@@ -1 +1 @@
-CONTRIBUTING
\ No newline at end of file
+CONTRIBUTING.mkdn
\ No newline at end of file
diff --git a/cpanfile b/cpanfile
deleted file mode 100644
index 3e2b532..0000000
--- a/cpanfile
+++ /dev/null
@@ -1,45 +0,0 @@
-requires "Carp" => "0";
-requires "perl" => "5.006";
-requires "strict" => "0";
-requires "warnings" => "0";
-
-on 'test' => sub {
-  requires "Exporter" => "0";
-  requires "ExtUtils::MakeMaker" => "0";
-  requires "File::Spec::Functions" => "0";
-  requires "List::Util" => "0";
-  requires "Test::More" => "0.96";
-  requires "base" => "0";
-  requires "lib" => "0";
-  requires "subs" => "0";
-  requires "version" => "0";
-};
-
-on 'test' => sub {
-  recommends "CPAN::Meta" => "0";
-  recommends "CPAN::Meta::Requirements" => "2.120900";
-  recommends "Test::FailWarnings" => "0";
-};
-
-on 'configure' => sub {
-  requires "ExtUtils::MakeMaker" => "6.17";
-};
-
-on 'develop' => sub {
-  requires "Dist::Zilla" => "5";
-  requires "Dist::Zilla::Plugin::OnlyCorePrereqs" => "0.003";
-  requires "Dist::Zilla::Plugin::PerlVersionPrereqs" => "0";
-  requires "Dist::Zilla::Plugin::Prereqs" => "0";
-  requires "Dist::Zilla::Plugin::RemovePrereqs" => "0";
-  requires "Dist::Zilla::PluginBundle::DAGOLDEN" => "0.052";
-  requires "File::Spec" => "0";
-  requires "File::Temp" => "0";
-  requires "IO::Handle" => "0";
-  requires "IPC::Open3" => "0";
-  requires "Pod::Coverage::TrustPod" => "0";
-  requires "Test::CPAN::Meta" => "0";
-  requires "Test::More" => "0";
-  requires "Test::Pod" => "1.41";
-  requires "Test::Pod::Coverage" => "1.08";
-  requires "Test::Spelling" => "0.12";
-};
diff --git a/dist.ini b/dist.ini
index 62c8b26..cf12c8f 100644
--- a/dist.ini
+++ b/dist.ini
@@ -5,7 +5,9 @@ copyright_holder = David Golden
 copyright_year   = 2013
 
 [@DAGOLDEN]
-:version = 0.052
+:version = 0.072
+RewriteVersion.global = 1
+BumpVersionAfterRelease.global = 1
 stopwords = destructor
 stopwords = fatpacking
 stopwords = interoperability
diff --git a/lib/Class/Tiny.pm b/lib/Class/Tiny.pm
index c45a481..2e3db1c 100644
--- a/lib/Class/Tiny.pm
+++ b/lib/Class/Tiny.pm
@@ -5,7 +5,8 @@ use warnings;
 
 package Class::Tiny;
 # ABSTRACT: Minimalist class construction
-# VERSION
+
+our $VERSION = '1.001';
 
 use Carp ();
 
@@ -78,7 +79,8 @@ sub get_all_attribute_defaults_for {
 
 package Class::Tiny::Object;
 # ABSTRACT: Base class for classes built with Class::Tiny
-# VERSION
+
+our $VERSION = '1.001';
 
 my ( %LINEAR_ISA_CACHE, %BUILD_CACHE, %DEMOLISH_CACHE, %ATTR_CACHE );
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libclass-tiny-perl.git



More information about the Pkg-perl-cvs-commits mailing list