The workflow in .github/workflows/upload_pip.yml publishes the package to the PyPI. Create a release in Github with the tag to published in PyPI and the action will be triggered.
Requires twine
pip install twine
Delete the dist
and build
directories, if present.
Build the package:
TAG=v1.2.3 python setup.py sdist bdist_wheel
Check the contents of the distribution:
twine check dist/*
Upload the package to PyPI (credentials are required):
twine upload dist/*
Or upload to a test PyPI server:
twine upload --repository-url https://test.pypi.org/legacy/ dist/*