I have tried to install it to my computer. It fails with:

[DZ] attempt to add META.yml multiple times; added by: filename set by + GatherDir (Dist::Zilla::Plugin::GatherDir line 235); encoded_content + added by @Basic/GatherDir (Dist::Zilla::Plugin::GatherDir line 236); + text from coderef added by @Basic/MetaYAML (Dist::Zilla::Plugin::Met +aYAML line 78) [DZ] attempt to add LICENSE multiple times; added by: filename set by +GatherDir (Dist::Zilla::Plugin::GatherDir line 235); encoded_content +added by @Basic/GatherDir (Dist::Zilla::Plugin::GatherDir line 236); +content added by @Basic/License (Dist::Zilla::Plugin::License line 45 +) [DZ] attempt to add README multiple times; added by: filename set by G +atherDir (Dist::Zilla::Plugin::GatherDir line 235); encoded_content a +dded by @Basic/GatherDir (Dist::Zilla::Plugin::GatherDir line 236); c +ontent added by @Basic/Readme (Dist::Zilla::Plugaborting; duplicate f +iles would be produced at /usr/local/share/perl5/5.32/Dist/Zilla/App/ +Command/install.pm line 55. in::Readme line 52); content set by Readme (Dist::Zilla::Plugin::Readm +e line 69) [DZ] attempt to add Makefile.PL multiple times; added by: filename set + by GatherDir (Dist::Zilla::Plugin::GatherDir line 235); encoded_cont +ent added by @Basic/GatherDir (Dist::Zilla::Plugin::GatherDir line 23 +6); content set by MakeMaker (Dist::Zilla::Plugin::MakeMaker line 337 +); content added by @Basic/MakeMaker (Dist::Zilla::Plugin::MakeMaker +line 152) [DZ] attempt to add MANIFEST multiple times; added by: filename set by + GatherDir (Dist::Zilla::Plugin::GatherDir line 235); encoded_content + added by @Basic/GatherDir (Dist::Zilla::Plugin::GatherDir line 236); + bytes from coderef added by @Basic/Manifest (Dist::Zilla::Plugin::Ma +nifest line 63) -> FAIL Installing . failed. See xxx/.cpanm/work/1640862473.22542/buil +d.log for details. Retry with --force to force install it.

Could the multiple times; be the culprit?

Anyway, if you want to switch to ExtUtils::MakeMaker, then here is a basic Makefile.PL:

use 5.006; use strict; use warnings; use ExtUtils::MakeMaker; WriteMakefile( #EDIT: only for testing #INSTALL_BASE => 'xxx', NAME => 'Graph::Undirected::Hamiltonicity', AUTHOR => q{XXX <XXX@cpan.org>}, VERSION_FROM => 'lib/Graph/Undirected/Hamiltonicity.pm', ABSTRACT_FROM => 'lib/Graph/Undirected/Hamiltonicity.pod', LICENSE => 'artistic_2', PL_FILES => {}, MIN_PERL_VERSION => '5.006', CONFIGURE_REQUIRES => { 'ExtUtils::MakeMaker' => '0', }, BUILD_REQUIRES => { 'Test::More' => '0', }, PREREQ_PM => { # add here dependencies #'ABC' => '1.6', #'Foo::Bar::Module' => '5.0401', }, # it adds your scripts too in bin/ EXE_FILES => [ glob("bin/*.pl") ], dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, clean => { FILES => 'Graph-Undirected-Hamiltonicity-*.gz' }, );

In order to make a tarball for export to CPAN, then do: perl Makefile.PL && make && make manifest && make test && make dist

Warning: I am seriously cargo-culting with the above so there can well be a better/safer way.

bw, bliako


In reply to Re: Releasing a CPAN module using Dist::Zilla & perlbrew by bliako
in thread Releasing a CPAN module using Dist::Zilla & perlbrew by ownlifeful

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.