-
Notifications
You must be signed in to change notification settings - Fork 61
Cutting a release
We endeavor to follow PEP 440 for how we version our releases.
Creating a new Proteuslib release is broken down into a few (possibly repeating) steps:
-
First on github, create a new "release" branch, named after just the major and minor versions for the release. For example if preparing for a
1.1.0
release, create a branch named1.1_rel
. Release candidate tags (i.e.1.1.0rc0
), final release tags (i.e.1.1.0
) and patch release tags (i.e.1.1.1
) will all exist on this branch. -
Clone/checkout that new branch and update the version number in
./docs/conf.py
and./setup.py
on this release branch (to version used above) -
Update
install_requires
insetup.py
, change:*SPECIAL_DEPENDENCIES_FOR_PRERELEASE
to
*SPECIAL_DEPENDENCIES_FOR_RELEASE
-
Commit and push those changes to the release branch up to github.
-
Create the new release in github on the release branch using the github releases page to create a new tag and release on the new release branch (not main). Fill in the new tag to create, the name of the release, the release notes, select the "pre-release" checkbox for release candidates then publish.
-
Back in your clone of the release branch,
git pull
to bring down the new release tag. Agit describe --tags --dirty
should show the correct release tag now. -
Now on main, if not already done, change the same
./docs/conf.py
and./setup.py
to have the dev version of the next release, i.e1.2.0dev
and push that up to main, since that is now the dev version of the next release. -
For final (non-release candidate) releases I will also delete any outdated release candidates on github - which will NOT remove the tags created but will remove the headings for the old releases. I do this just to make that page a little cleaner and to avoid confusion with older releases.
-
Update readthedocs so that it builds the tags (the new release) that you want it to. For final releases make sure that RTD's
stable
tag now points to the new final release. Thelatest
tag always should build from main. -
Follow the instructions on the Creating a PyPi Package page
-
Announce the release: