Making a release as a maintainer¶
This document guides a maintainer through creating a release of the Jupyter console.
Clean the repository¶
Remove all non-tracked files with:
git clean -xfdi
This will ask you for confirmation before removing all untracked files. Make
sure the dist/ folder is clean and does not contain any stale builds from
previous attempts.
Create the release¶
Set Environment variables
Set environment variables to document current release version, and git tag:
VERSION=4.1.0
Update version number in
jupyter_console/_version.py. Make sure that a valid PEP 440 version is being used.Commit and tag the release with the current version number:
git commit -am "release $VERSION" git tag $VERSION
You are now ready to build the
sdistandwheel:python setup.py sdist --formats=gztar python setup.py bdist_wheel
You can now test the
wheeland thesdistlocally before uploading to PyPI. Make sure to use twine to upload the archives over SSL.twine upload dist/*
If all went well, change the
jupyter_console/_version.pyto the next release.Push directly on master, not forgetting to push
--tagstoo.