How do I get the "python setup.py" to send information on fresh measures?

This can provide information about your pypi software:

python setup.py register

      

But there is no similar command to send information to freshmeat. How could I write distutils.Command that would allow me to do the following?

python setup.py freshmeat-submit

      

0


source to share


1 answer


This should be pretty easy; I'd say the freshmeat API will be simple.

For python site for setup () function in setup.py provide this argument:

entry_points = {
    'distutils.commands' : [
        'freshmeat-submit = freshsubmitter.submit:SubmitToFreshMeat',
    ],
},

      



where freshsubmitter is your new pakcage, submit is the module inside it, and SubmitToFreshMeat is a subclass of distutils.command.config.config.

Remember that entry_points are global, so you must distribute your command as a separate package; associating it with every packet will cause conflicts.

0


source







All Articles