- Remove any old dists
rm -rf ./dist
- Add and commit any unsaved changes with a generic commit message
git add .
git commit -m 'About to bump version'
- Bump the version (with $releasetype = 'patch', 'minor' or 'major')
pipenv run bumpversion $releasetype
- Make the dist
pipenv run python setup.py sdist
- Upload to PyPI
pipenv run twine upload ./dist/*
- Clean up the dists
rm -rf ./dist
- Push to GitHub
git push
git push --tags