- Get the Nox:
pip install -U nox
- Update the release history in
CHANGELOG.md:- Change "Unreleased" to the current release version and date.
- Create empty "Unreleased" section.
- Add proper link to the new release (at the bottom of the file). Use GitHub compare feature between two tags.
- Update "Unreleased" link (at the bottom of the file).
- Run linters and tests:
export B2_TEST_APPLICATION_KEY=your_app_keyexport B2_TEST_APPLICATION_KEY_ID=your_app_key_idnox -x
- Build docs locally:
nox --non-interactive -xs doc
- Commit and push to GitHub, then wait for CI workflow to complete successfully.
- No need to make a branch. Push straight to
master.
- No need to make a branch. Push straight to
- Tag in git and push tag to origin. (Version tags look like "v0.4.6".)
git tag vx.x.xgit push origin vx.x.x
- Wait for CD workflow to complete successfully.
- Verify that the GitHub release is created
- Verify that the release has been uploaded to the PyPI
- Install using pip and verify that it gets the correct version:
pip install -U b2sdk