Sunday, December 31, 2006

Python Cheese Shop

It has been a while since I released a new open source project. The last time I dealt with the Python project registry it required a highly manual through-the-web registration process. The Cheese Shop is so much nicer, and the integration with distutils makes it so easy to register a project and release that there is no reason in the world not to do it. There are just a few basic steps to getting started:
  1. Create a user at http://cheeseshop.python.org/pypi by clicking on the "Register" link and following the instructions.
  2. Create a setup.py file for your Python project. You're doing this already, aren't you, so your users can install your app or library with disutils?
  3. Type: python setup.py register
The CheeseShopTutorial has more details, but once you've registered it really is just that simple. It turns out they will even host downloads of the source releases, if you want. I don't mind hosting my own releases, and they will only host Python (so none of my AppleScript projects could go there). But that's a nice commitment on their part.

4 comments:

Anonymous said...

I'm new to this cheese shop thing as a user. I ran into it recently when installing django at work. The setup script wanted to download a python egg from the cheeseshop site, which turned out to be down for at least 30 minutes when I was doing my install. I was kind of bummed that they didn't have a mirroring mechanism built into the process. -Steve

Doug Hellmann said...

It certainly isn't as sophisticated as CPAN, but it isn't as old either. I believe they discussed adding mirroring at one point. The Catalog SIG archives have some recent discussion of establishing mirrors, but it isn't clear that anything was done.

Anonymous said...

see http://pypi.python.org/pypi/DITrack/0.6-alpha

Doug said...

DITrack looks interesting. I like the tight integration of Trac with svn, so DITrack may be even better. I'll check it out when there is a web interface.