-
Notifications
You must be signed in to change notification settings - Fork 170
BuildingA Release
Joe Gregorio edited this page Feb 6, 2014
·
2 revisions
Releasing a new download requires a few steps to be performed. For each release, the changes are listed in the release notes, pydocs are updated to reflect changes in the code, and the library source code, tests, etc. are packaged up in tar.gz files and .zip archives. The archives are then added to the Downloads section of this project. See detailed step by step instructions below.
- Create a new release tracking bug to track this release.
- Once the issue is submitted, and you're ready to cut the release, add a comment to the issue giving the exact commit hash at which you're cutting the release. This ensures people know exactly what is and is not in the release.
- Write release notes for the new release.
- Update the version number in
setup.py
. - Update the version number in version in
__init__.py
for both Python 2.x and 3.x. - Regenerate the pydoc documentation pages.
- Add new packages and files to the indexes so that they will be included in the archives and installed.
- Edit the list of packages in
setup.py
. This list determines which packages will be compiled and installed on the user's system. - Run the unit tests.
- Tag the version in git: `$ git tag -a 0.x.yy -m 'Release of 0.x.yy'
- Commit everything that's changed in your local copy. Push your changes.
- Generate the archives, upload the packages, and update PyPi.
$ make release
- Update the release bug you created at the beginning of this, noting the tag of the commit containing all of the updated release files.
- Update the release bug, marking it as fixed.
- Send an email to the list announcing the release.