- Update the version number in setup.py
- Delete
dist/
to ensure no stale packages:rm -rf dist/
- Build the source distribution:
python setup.py sdist
- Build the wheel distribution:
python setup.py bdist_wheel
- Push packages to PyPi:
python3 -m twine upload dist/*