git checkout master
git fetch upstream
git merge --ff-only upstream/master
git clean -xfd
to clean out any old builds
git tag version-number
git push
git push --tags
python setup.py sdist
python setup.py bdist_wheel
twine upload dist/*
See https://packaging.python.org/tutorials/distributing-packages/#packaging-your-project for more information.