Hedley Roos wrote:
Hi all

How do you submit an egg and tarball of your product in the collective to pypi? Remember and a whole bunch of products do this, but I can't find a tutorial on how to do this.

pypi mentions "python setup.py register", but I'm afraid to just run a command and possibly upload crap to the cheeseshop.

0) make sure your product is packaged in a setuptools-compatible way (i.e. it is installable via 'python setup.py install').

1) check the metadata in your package's setup.py file to make sure you've got the basic required information included so people will know what your package does.

2) run 'python setup.py register' to register your product with the pypi 
database.

3) run 'python setup.py sdist upload' to simultaneously create a "source distribution" (i.e. a tarball) and upload it to pypi. AFAICT, this has to be done as one command... running 'python setup.py sdist' followed by 'python setup.py upload' won't actually perform the upload.

there are options other than sdist, if you want to upload in a different format, including 'bdist' (binary distribution), 'bdist_rpm' (rpm file), 'bdist_wininst' (windows installer), and 'bdist_egg' (binary egg file). in most cases, sdist is the best choice, and the only one necessary.

hope this helps,

-r


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to