Writing down these instructions because invariably I will forget them...thanks to the great MontyTaylor for his assistance in all things packaging :)

Before You Start

# Contact one of the existing PyPI maintainers for Glance (JayPipes, EwanMellor or MontyTaylor) and get them to add you to the release admins. # Create a login/password and set your PGP key on your PyPI account details area

Registering with PyPI

If this is the first time you are making a release on a local machine:

python setup.py register

Answer (1) to use your existing PyPI login/password.

Bump Version

Only if the version has not been updated to a version that is not already released.

Edit setup.py and change the version, bumping minor version or major version numbers as appropriate. Also edit doc/source/conf.py and match the version number.

Then, do:

bzr commit -m "Versioning"

Tag the Release

bzr tag <VERSION>

Uploading to PyPI

Then, push to PyPI:

python setup.py sdist upload -s

Creating the Release in Launchpad

For launchpad, you go to the series, for example: https://launchpad.net/glance/bexar

Click the link "Create Release"

In theory you should have a milestone already for every release you want to make, but if you don't, the Create Release process will let you create one.

Make sure to set a download file by clicking "Add download file" and selecting the /dist/<VERSION>.tar.gz file and use the /dist/<VERSION>.asc as the GPG signature file

After the Release

Once the release is cut, then edit setup.py and doc/source/conf.py again. We want to up the version of Glance to the next logical version, so edit setup.py and change the version again and bzr commit -m "Version up". This means that anyone pulling trunk after a release will have the version set correctly to a version after the release version...

Wiki: GlanceReleaseInstructions (last edited 2011-01-24 15:01:32 by JayPipes)