Daniel Nouri's Old Blog

Note that this blog is discontinued. You can find my new blog here: Daniel Nouri's Blog.

Thu, 10 Aug 2006

Uploading a setuptools package to PyPI a.k.a. the CheeseShop

I'm writing this down because it's annoying me to death: Everytime I do this, I need to learn how to again.

So, Daniel, after you created a tag, get rid of the setup.cfg file that's there and commit. Then register the metadata for this package by running python setup.py register. After that, upload the package: python setup.py sdist bdist_egg upload -s (-s stands for sign). Upload other distribution formats the same way.

If you get this incredibly unhelpful error message, get yourself a pypirc file:

Submitting dist/your.egg to http://www.python.org/pypi
Upload failed (401): Authorization Required

The CheeseShop tutorial has useful pointers.

And next, be annoyed with doing this work again for getting your package into Plone.org's Products. (Sadly, the PloneSoftwareCenter developers decided not to support the PyPI API.)

posted at: 11:03 | 2 comments | category: /devel rss | permanent link | add to del.icio.us or digg it


< August 2006 >
SuMoTuWeThFrSa
   1 2 3 4 5
6 7 8 9101112
13141516171819
20212223242526
2728293031  

Feed of all categories: rss rss | atom

Categories: