in reply to Re: Submitting a module to cpan
in thread Submitting a module to cpan

Where can I find a resource on submitting a module using git?

:) good question that should be in the FAQ

I can't help, I've long given up the PAUSE, but I did find these which probably wont help much

mentions git and pause :) Authoring CPAN modules

paths stuff http://blogs.perl.org/users/john_mcnamara/2009/12/uploading-to-cpan-from-github.html

?? Perl modules on CPAN and github - oylenshpeegul's blog

eww :) Dist::Zilla - Tutorial - Integrating Dist::Zilla with Git

preparing for CPAN from github, Minilla::Tutorial says minil can push to CPAN from git repository

  • Comment on Re^2: Submitting a module to cpan (releasing using git)

Replies are listed 'Best First'.
Re^3: Submitting a module to cpan (releasing using git)
by jillrowe (Initiate) on Jul 16, 2014 at 10:10 UTC

    Everything for git and uploading a module references this blog post http://blog.usarundbrief.com/?p=36

    Which clearly no longer exists.

    The milla tool looks very promising. I will look into that. I used the module-start to set up my skeleton and just went from there, but maybe I should have looked into the Dist::Zilla too.

    When I get this figured out I will definitely thoroughly document it someplace!

      Everything for git and uploading a module references this blog post http://blog.usarundbrief.com/?p=36

      Yes, but it still gives away the secret :)

      1) have the cpan distrbution layout (module-starter guarantees this)

      2) tag a release on github

      3) give pause regular github tarball url with with a cpan dist style filename at end, ie give it http://github.com/username/perl-module-dist/tarball/tagname/Perl-Module-Dist-1.22.tgz

      And thats it, then press “Upload this URL” and you're done

      The caveats are, don't forgot to make manifest... so you have a MANIFEST and META.yml in the git repo

        hahah, I clicked the archive link ... sleep time :)

      Thank you so much for the reference to milla! It is a lifesaver!

      So for anyone who was wondering when I was using PAUSE I was using the upload a url option. Using a git I created a branch for each version (like the git workflow best practices recommends) and was using the URL to that branch.

      I think that what happened is that it needs to be an archive, tar or zip. So if I had used https://github.com/jerowe/Annovar-Wrapper/archive/Annovar-Wrapper-1.1.zip maybe that would have been ok, but just giving PAUSE https://github.com/jerowe/Annovar-Wrapper/tree/Annovar-Wrapper-1.1 did not work. As it turns out the PAUSE upload form says archives only, but I thought that it had a utility for git since I saw that referenced.

      I'm going to just use milla, but its nice to know how to do it both ways. ;) A big thanks to everyone for your help!