Preparation:
- increment version in
setup.py
- add new changelog section in
CHANGES.rst
- commit/push all changes
Commands for releasing on pypi.org (requires twine >= 1.8.0):
find -name "*~" -delete
rm dist/*
./venv/bin/python setup.py clean
./venv/bin/python setup.py sdist
./venv/bin/twine upload dist/*
Generate Debian package with the following commands (requires python3-all
and python3-stdeb
):
rm -Rf deb_dist/*
python3 setup.py --command-packages=stdeb.command bdist_deb
Steps:
- start new release (version:
vX.Y.Z
) - enter release notes, i.e., significant changes since last release
- upload
docker-banner-gen-X.Y.Z.tar.gz
previously generated withsetup.py
- upload
deb_dist/python3-docker-banner-gen_X.Y.Z-1_all.deb
previously generated withstdeb
- publish