- Update the version number in
setup.py
. - Run this command to package the new version into the
dist
directory:
python3 setup.py sdist bdist_wheel
- Run to check that the package contains the correct files:
tar tzf dist/sootty-<version>.tar.gz
- Run to check whether the package will correctly render to PyPI:
twine check dist/*
- Upload the newly created files to PyPI:
twine upload dist/sootty-<version>.tar.gz dist/sootty-<version>-py3-none-any.whl
python3 -m pip install .
python3 -m unittest test