in reply to Exclude files and directories in tarfile for CPAN upload

Are you hand rolling dists? The classics (ExtUtils::MakeMaker, Module::Build, Dist::Zilla, and Minilla) all support MANIFEST.SKIP.

Replies are listed 'Best First'.
Re^2: Exclude files and directories in tarfile for CPAN upload
by LanX (Saint) on Oct 25, 2024 at 10:11 UTC
      So do you used Module::Starter ?

      The short documentation of the module says:

      The ignores_type is a new feature that allows one to create SCM-specif +ic ignore files. These are the mappings: ignores_type => 'generic' # default, creates 'ignore.txt' ignores_type => 'cvs' # creates .cvsignore ignores_type => 'git' # creates .gitignore ignores_type => 'hg' # creates .hgignore ignores_type => 'manifest' # creates MANIFEST.SKIP

      Go canonical and use my guide ;)

      L*

      PS the above module ships with the module-starter program inside /bin and this is the suggested method to follow. The program has the option --ignores=type the sets the above mentioned ignores_type internal option. It defaults to txt creating ignore.txt

      There are no rules, there are no thumbs..
      Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
        > So do you used Module::Starter ?

        well yes, but I think it's for getting started only and not for publishing.

        > Go canonical and use my guide ;)

        Grazie mille,

        Tho I'm performing under pressure now to get my bohemian rapsody uploaded...

        Cheers Rolf
        (addicted to the Perl Programming Language :)
        see Wikisyntax for the Monastery

      Confusingly did Module::Starter create a README, but PAUSE says not to upload one...

      The PAUSE document is advising you not to upload a separate README file individually outside of the distribution tarball. That's a totally different thing from including a README inside the tarball which you absolutely should do.


      🦛

        What you shouldn't do, on the other hand, is to upload a README.pod file. It gets installed into a wrong path by cpan, see for example here.

        map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]