Skip to content

Release Procedure

Joseph Martinot-Lagarde edited this page Feb 20, 2022 · 2 revisions

Release Procedure

Preparation

  • Prepare local git repo

    git restore . && git switch master && git pull origin master
    git clean -xfdi
  • Update __version__ in __init__.py (remove ".dev")

  • Build wheel and archive

    python -m build

Release

  • Upload distribution packages to PyPI

    twine upload dist/*
  • Commit

    git commit -am "Release X.Y.Z"
    git tag -a vX.Y.Z -m "Release X.Y.Z"

Post-release

  • Update __version__ in __init__.py (increment and add .dev)

    git commit -am "Set __version__ to dev"
    git push origin master --tags
  • Create a GitHub release from the tag

Clone this wiki locally