Skip to content

Performing a Release

Nils Homer edited this page Nov 29, 2021 · 12 revisions

Publishing to test.pypi

  1. Config the repository $ poetry config repositories.testpypi https://test.pypi.org/legacy/
  2. build the package with $ poetry build
  3. test run $ poetry publish -r testpypi -u <username> -p <password> --dry-run
  4. publish with $ poetry publish -r testpypi -u <username> -p <password>

Publishing to PyPi

  1. make sure you're on the main branch
  2. build the package with $ poetry build
  3. test run $ poetry publish --dryrun
  4. publish with $ poetry publish
  5. tag the release, and update release notes on github
  6. bump the minor version in the pyproject.toml file, for example to bump from 0.0.1 to 0.0.2:
poetry version 0.0.2
Clone this wiki locally