python3 -m pip install --upgrade build
python3 -m pip install --upgrade twineGet a PyPi/Test PyPi API token(s) and save to $HOME/.pypirc
Do the following before releasing:
- Make sure pyproject.toml is up-to-date
- Make sure README.md is up-to-date
- Make sure $id URI elements of all schema documents are correct and resolve.
- Create new release on GitHub
Use build to build:
rm -rf dist && python3 -m buildUpload to Test PyPi:
python3 -m twine upload --repository testpypi dist/*Upload to PyPi:
python3 -m twine upload dist/*