A different fridge to store your eggs

Today I wanted to release a new version of ImageRepository. For quite some time now, I didn’t update the product pages at plone.org, because it was very time consuming and cumbersome. But recently plone.org was upgraded to a newer Plone version and the PloneSoftwareCenter was updated to a version which supports the PyPI API for egg uploads.

Python 2.6 contains updates which add the mupload and mregister commands to distutils. For older versions, which are still in common use in the Zope/Plone world, there is collective.dist which adds the same commands. After I followed the instructions to update my ~/.pypirc file, I tried to register. Unfortunately by default the egg name is normalized to “products-imagerepository”, but the original location is named just “imagerepository”. I was told by David Glick that there is a tab for distutils settings in the project edit page. After I set the primary distutils id to “Products.ImageRepository”, the mregister command worked fine! Now I just had to remove the download_url setting from setup.py, so there would be no external link created on each registration.

So, after all these steps I finally made a 0.9 release of ImageRepository and it was easily uploaded to both plone.org and PyPI.

Advertisements
Published in: on February 12, 2009 at 4:32 pm  Comments (3)  

3 CommentsLeave a comment

  1. Thank you for writing this Florian, and glad to hear you were successful! We’re now working on minor bug fixes, and hope to announce this functionality officially very soon. In the meantime, people are generally encouraged to give it a try!

  2. Thanks for the tip about the Distutils tab! I used distutils to upload a new RedirectionTool the other day, but, of course, it went to the wrong place. With luck, that’s the last time I’ll ever have to manually frob a product page.

  3. Hi guys, take a look at http://plone.org/documentation/tutorial/how-to-upload-your-package-to-plone.org

    Cheers


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: