Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 748 Bytes

File metadata and controls

35 lines (28 loc) · 748 Bytes

PyPi release instructions

Install dist dependencies in venv:

python3 -m pip install --upgrade build
python3 -m pip install --upgrade twine

PyPi API token

Get a PyPi/Test PyPi API token(s) and save to $HOME/.pypirc

Manual checks

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

Build for upload to PyPi

Use build to build:

rm -rf dist && python3 -m build

Upload to PyPi

Upload to Test PyPi:

python3 -m twine upload --repository testpypi dist/*

Upload to PyPi:

python3 -m twine upload dist/*