jillrowe has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

I recently tried to submit a module to cpan, Annovar::Wrapper. I submitted another at the same-ish time, Runner-Init, and that one seemed to submit fine. However, Annovar::Wrapper never showed up in cpan. I think I submitted them both in the same fashion, so what could have gone wrong? I've emailed the module author list as well, but haven't gotten any response.

Help would be very appreciated!!

Best, Jillian

Replies are listed 'Best First'.
Re: Submitting a module to cpan
by Corion (Patriarch) on Jul 15, 2014 at 13:07 UTC

    Usually, you get mail back from CPAN after your upload gets processed.

    If you are really certain that you uploaded Annovar::Wrapper, look at that mail whether there were indexing problems.

    Also, I note that you use a different name for your distribution than you use for the modules. Your distribution was uploaded as "master", which is a really bad distribution name.

    This suggests that your upload never succeeded, because CPAN will only ever allow one file to be uploaded with the same name. I suggest you use a traditional naming scheme such as ExtUtils::MakeMaker produces when you execute make dist.

    There also has been a bug report opened for your distribution a long time ago hinting at your problematic choice of distribution name. Please consider fixing your tooling so it does use a better filename. The defaults are fine, so why don't you use them?

Re: Submitting a module to cpan
by hippo (Archbishop) on Jul 15, 2014 at 12:57 UTC

    Does the missing module appear in your directory at pause.perl.org? Did you receive the email from PAUSE that it had been uploaded and/or indexed?

Re: Submitting a module to cpan
by kcott (Archbishop) on Jul 15, 2014 at 17:40 UTC

    G'day Jillian,

    Welcome to the monastery.

    You may already be aware of this but, if not, you may find PAUSE: menu has useful information.

    -- Ken

Re: Submitting a module to cpan (Annovar::Wrapper Runner::Init )
by Anonymous Monk on Jul 15, 2014 at 21:16 UTC
Re: Submitting a module to cpan
by Anonymous Monk on Jul 16, 2014 at 08:25 UTC
    Hippo - I did get an email from Pause. It says this.
    The URL
    
        https://github.com/jerowe/Annovar-Wrapper/tree/Annovar-Wrapper-1.1
    
    has entered CPAN as
    
      file: $CPAN/authors/id/J/JI/JILLROWE/Annovar-Wrapper-1.1
      size: 1370 bytes
       md5: 8bce9b023a3dd8057a71bef931a11501
    
    No action is required on your part
    Request entered by: JILLROWE (Jillian Rowe)
    Request entered on: Mon, 07 Jul 2014 10:55:50 GMT
    Request completed:  Mon, 07 Jul 2014 10:56:53 GMT
    
    Thanks,
    

    Corion - I know master is a terrible name. I had to fiddle a bit with uploading things from github. I didn't see many resources out there. I have proper names now, promise. ;) I deleted the master from PAUSE just now.

    kCott - Thanks for the welcome! I'm a long time lurker, but first time poster. I've looked through the PAUSE menu, but probably not enough.

    Anonymous - Thanks for the tip about the File::FindLib. That clearly shouldn't have been in there. Lesson learned, will do it properly even in testing.

    I didn't want to make Annovar::Wrapper a part of the BioPerl distribution. I love bioperl, but its a pain to install and Annovar::Wrapper doesn't have a single bioperl dependency. Bio::Tools::Run also has a rather specific way of doing things that I didn't follow because I prefer to write my wrappers in Moose. It seems rather cruel to make users install both BioPerl and Moose. ;)

      I didn't want to make Annovar::Wrapper a part of the BioPerl distribution.

      Great, you don't have to, but since annovar is somekindof bio related module ...

      If you look on CPAN for Wrapper you'll find lots of existing namespaces with a bunch of related modules and then a ::Wrapper module

      You should drop ::Wrapper from the module name, add it to the description

      =head1 NAME Annovar - wrapper for bin/annovar

      There are no annovar things on cpan

      There are bioinformatics, gene reated modules

      There are things like BioX::CLPM - Perl Tools for Mass Spec Peptide Matching

      Which don't appear to depend on Bio::Perl

      I can't find guidlines about "...X::..." modules...

      And I'm not sure about Bio::Perl guidelines regarding BioX, but maybe BioX is like DBIx, where you can drop DBI/Bio adjacent modules

      So now for your consideration (with the caveats)

      BioX::Annovar - wrapper for openbioinformatics.org/annovar/ - functional annotation of genetic variants from high-throughput sequencing data

        Thanks! I think this is the BioX way to go with my naming. ;)
Re: Submitting a module to cpan
by tobyink (Canon) on Jul 16, 2014 at 12:22 UTC

      I did finally do it! I had a post describing how I did it, but it seems to be stuck somewhere or I didn't do it properly. I'll rewrite it if it doesn't come up soon.

      Can anyone shed some wisdom on why my pod is displaying the way it is?

      lib/Annovar
            -Examples.pod
            -Wrapper.pm
      

      When I look at the main Annovar::Wrapper page, I get the pod from Examples.pod instead of the inline pod from Annovar::Wrapper.pm. https://metacpan.org/pod/Annovar::Wrapper

      Any ideas for me?

        Check that the NAME sections of your pod match their module name. MetaCPAN places a lot of importance on the NAME section.

        For example Annovar/Examples.pod should contain the following NAME section:

        =head1 NAME Annovar::Examples - blah blah blah blah blah
Re: Submitting a module to cpan
by Anonymous Monk on Jul 16, 2014 at 08:41 UTC

    Ok, so looking at my cpan page, http://search.cpan.org/~jillrowe/, I don't think I have this whole submission thing down.

    I have two modules I want to submit. I have the Runner-Init, which has a few modules within it, and Annovar-Wrapper.

    They are here

    https://github.com/jerowe/Annovar-Wrapper

    https://github.com/jerowe/Runner-Init

    Where can I find a resource on submitting a module using git? There was a blog post that is referenced all over the place, but its not there anymore. There are plenty of resources on making a module best practices, but not so much on the actual submission of a module. Help, please!

        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!

      Most of the submission process is covered in the About PAUSE page. Have you read this? Specifically what more do you need to know than is covered in this document?

      The fact that you have chosen to use git as your version control system should not be relevant. Once you've built the distribution tarball and tested it yourself just follow the submission instructions which apply regardless of the repository.

      By the way, your last 2 posts have come in as Anonymous. It would probably help you to keep track of responses, etc. if you were to login.