Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling


by liz (Monsignor)
on Aug 13, 2003 at 16:07 UTC ( #283594=modulereview: print w/replies, xml ) Need Help??

Item Description: Upload one or more files to CPAN, using PAUSE

Review Synopsis: A must have for every module author

This is not a module, it's a script.

After going through most of my modules on CPAN to make sure that they will work on the soon to be Perl 5.8.1, I again realized that the low profile, but very handy cpan-upload utility script is a must-have for a module author.

What does it do? Well, not a lot, but it does it quickly and quietly. It uploads your files to CPAN as simple as:

    cpan-upload Your-Module-1.07.tar.gz
You get your confirmation mails just the way as you would normally if you would upload files to CPAN "manually".

What do you need to do? Well, download it, then:

perl Makefile.PL
make test
make install
then, in you home directory, create a file named ".pause" that you can only read and write to (-rw------), and put your configuration information in there. This is usually very simple, such as:
password xyuolskhj
mailto your@address.tld
and voila, you're set!

Neil Bowers has made a very nice utility script that is well documented. Kudo's to Neil!


Replies are listed 'Best First'.
Re: cpan-upload
by Anonymous Monk on Aug 13, 2003 at 17:35 UTC

    I like release

    It checks my dist is complete and passes tests. It also checks that CVS is up-to-date and then tags everything with the current version. And it releases to sourceforge

Re: cpan-upload
by hsmyers (Canon) on Aug 14, 2003 at 05:14 UTC
    For ActiveState fans out there, don't bother---get it from CPAN. There are dependancies:

    Checking if your kit is complete... Looks good Warning: prerequisite AppConfig::Std failed to load: Can't locate AppConfig/ in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib .) at (eval 4) line 3. Warning: prerequisite Term::ReadKey failed to load: Can't locate Term/ in @INC (@INC contains: C:/Perl/lib C:/Perl/site/lib . ) at (eval 15) line 3. Writing Makefile for cpan-upload

    The README details a few more:
    • AppConfig $CPAN/authors/id/ABW/
    • Pod::Usage In the PodParser distribition
    • Net::FTP in the libnet distribution
    • LWP $CPAN/modules/by-module/LWP/
    And there hasn't been a lot of feedback from the CPAN testers yet, but it's early days!


    "Never try to teach a pig to wastes your time and it annoys the pig."
Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: modulereview [id://283594]
[Corion]: Hi choroba, Discipulus!
[Corion]: Yesterday I've been mulling over how to best generate HTTP requests from permutations of values but I haven't found a nice API for passing in the "template" of the HTTP request yet. I guess I'll have to do a SoPW for that
[Corion]: The API itself will basically be my $iter = generate_http_requ ests(method => 'GET', url => '/settings/:name', headers => ???, get_params => ['foo','bar']), but I'm not sure how to parametrize values in the headers and how to specify lists of ...
[choroba]: On the other hand, lots of options to receive the requests :-)
[Corion]: ... values to be used. For example, I think for headers, one would want to have various kinds of Content-Encoding headers, but for the get_parameters one would have various kinds of Bobby Tables
[choroba]: What about [metadoc:// Algorithm::Loops]?
[Corion]: choroba: Yeah, but handing off the request to Dancer,Plack, Mojolicious,LWP is easy once I have the data filled into some structure ;))
[choroba]: Algorithm::Loops
[Corion]: choroba: I'm using that to generate the permutations, but I don't know how the user can pass the intended values to my function in a sane way
[Corion]: I have a prototype that permutes the get_parameters, but the values used for the get parameters should be different from the values used for the headers and potentially for parts of the URL

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2017-01-17 08:16 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (152 votes). Check out past polls.