How do I get the "python setup.py" to send information on fresh measures?
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 to share