Release ProcessΒΆ
Checkout the current
master
branch, with a clean working directory.Modify the
CHANGELOG.rst
to include changes made since the last release and update the section header for the new release.Bump the version in
packaging/__about__.py
Install the latest
setuptools
,wheel
andtwine
packages from PyPI:$ pip install --upgrade setuptools wheel twine
Ensure no
dist/
folder exists and then create the distribution files:$ python setup.py sdist bdist_wheel
Check the built distribution files with
twine
:$ twine check dist/*
If all goes well, upload the build distribution files:
$ twine upload dist/*
Create a release on GitHub and include the artifacts uploaded to PyPI.
Bump the version for development in
packaging/__about__.py
andCHANGELOG.rst
.Notify the other project owners of the release.