Hello,

I have uploaded my module Net::Netconf in cpan, but now I want to make some 
changes in some of the files as they are not behaving as expected. I am trying 
to make changes from "Edit Module Metadata" link, but its saying no module 
registered under my name. Kindly help me, how can I edit and upload modified 
file in cpan.

Also "Bundle::Expect" is one of the dependency of my module that I mentioned in 
Makefile.Pl along with other dependencies. But its giving error. Is there some 
problem with this module or I have to mention dependency somewhere else.

My complete module is here 
http://search.cpan.org/search?mode=all&query=net%3A%3Anetconf


Thank You,
Regards
Priyal Jain

-----Original Message-----
From: Priyal Jain 
Sent: Friday, May 02, 2014 10:27 AM
To: David Golden
Cc: netconf-support
Subject: RE: Failed: PAUSE indexer report JPRIYAL/NET-NETCONF.zip

Hello,

Thank you so much for your help. Will update the module as suggested.

Thank You,
Regards
Priyal Jain

-----Original Message-----
From: David Golden [mailto:x...@xdg.me] 
Sent: Wednesday, April 30, 2014 7:55 PM
To: Priyal Jain
Cc: netconf-support; modules@perl.org
Subject: Re: Failed: PAUSE indexer report JPRIYAL/NET-NETCONF.zip

Hi, Priyal.

I'll answer your questions the best I can.

On Wed, Apr 30, 2014 at 8:41 AM, Priyal Jain <jpri...@juniper.net> wrote:
> I am registering for namespace NET::NETCONF, for uploading a new module in 
> CPAN, but I have confusion in selecting support-level. I want users to 
> contribute to this module, but it should be under Juniper Networks 
> supervision. Juniper Networks will provide all the maintenance of this 
> module. Kindly help me in selecting appropriate support-level option.

You don't need to register the namespace.  Namespace registration is in the 
process of being deprecated.  Just document your support intent in your module 
documentation and upload your distribution.

> Also I was trying to upload my module in CPAN without registering, but I got 
> below mail. I am not getting why it is giving failure. Kindly help me in 
> resolving this issue.

In looking at your distribution, I see several "problems" that you might want 
to address.  First, your distribution naming is not consistent with typical 
Perl conventions.  For a module Foo::Bar with version 1.23, you would ship a 
tarball called Foo-Bar-1.23.tar.gz containing the directory Foo-Bar-1.23. That 
directory should contain your Makefile.PL, a lib directory containing your .pm 
files and so on.

The error message you saw is because you uploaded NET-NETCONF and you don't 
have a NET::NETCONF package in your distribution.

My suggestions:

In your Makefile.PL, set the 'NAME' parameter to "Net-Netconf".  Then, add 
lib/Net/Netconf.pm that contains the "package Net::Netconf"
statement.  That top-level .pm file will claim the Net::Netconf namespace for 
you and will allow you to upload a tarball starting with "Net-Netconf".  It is 
also a good place to put introductory documentation, support information, etc.

It doesn't have to have any real code.  E.g.:

    package Net::Netconf;
    our $VERSION = '0.01';
    1;

    =head1 NAME

    Net::Netconf -- Netconf Perl client

    =head1 SYNOPSIS
    ... etc ...

Then, use your Makefile.PL to generate your tarball for upload:

    perl Makefile.PL
    make
    make test
    make dist

Looking at the Makefile.PL, I see some other things that might go awry, but I 
don''t have time to diagnose all of them for you.  I suggest finding a good 
resource on shipping modules to CPAN and following the guidelines there.  The 
latest edition of Intermediate Perl by brian d foy includes a very good chapter 
on the subject and I encourage you to read it.

I hope this helps.

Regards,
David Golden
PAUSE Admin for IDs

Reply via email to