Releases¶
The project follows semantic versioning for releases.
Release Process¶
Initial Release Candidate¶
Checkout
master
branch.Pull from upstream to ensure all changes have been synced.
Checkout new release branch:
release-<major>.<minor>
.Bump alpha to release candidate. Commit.
hatch --env develop version rc
Tag.
git tag v${rc_version}
Push release branch and tag to upstream with tracking enabled.
Checkout
master
branch.Bump alpha to next minor version on
master
branch. Commit.hatch --env develop version minor,alpha
- Tag start of development for next release.
git tag i${next_release_version}
Release¶
Checkout release branch.
Bump release candidate to release. Commit.
hatch --env develop version release
Run Towncrier. Commit.
hatch --env develop run towncrier build --keep --version ${release_version}
Tag.
git tag v${release_version}
Push release branch and tag to upstream.
Wait for the release workflow to complete successfully.
Clean up news fragments to prevent recycling in future releases. Commit.
git rm documentation/towncrier/*.rst git commit -m "Clean up news fragments."
Push cleanup commit to upstream.
Cherry-pick Towncrier commits back to
master
branch.
Postrelease Patch¶
Checkout release branch.
Develop and test patch against branch. Add Towncrier entry. Commit.
Bump release to patch or increment patch number. Commit.
hatch --env develop version patch
Run Towncrier. Commit.
hatch --env develop run towncrier build --keep --version ${patch_version}
Tag.
git tag v${patch_version}
Push release branch and tag to upstream.
Wait for the release workflow to complete successfully.
Clean up news fragments to prevent recycling in future releases. Commit.
git rm documentation/towncrier/*.rst git commit -m "Clean up news fragments."
Push cleanup commit to upstream.
Cherry-pick patch and Towncrier commits back to
master
branch, resolving conflicts as necessary.