-
Notifications
You must be signed in to change notification settings - Fork 3
Performing a Release
Nils Homer edited this page Oct 24, 2022
·
12 revisions
- Config the repository
$ poetry config repositories.testpypi https://test.pypi.org/legacy/
- build the package with
$ poetry build
- test run
$ poetry publish -r testpypi -u <username> -p <password> --dry-run
- publish with
$ poetry publish -r testpypi -u <username> -p <password>
- test install with
$ pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple fgpyo
- make sure you're on the
main
branch - remove the
-dev
suffix in the version in thepyproject.toml
file, for example to bump from0.0.3-dev
to0.0.4
:
$ poetry version 0.0.4
- commit and tag the release
- build the package with
$ poetry build
- test run
$ poetry publish --dry-run
- publish with
$ poetry publish
- update release notes on github
- bump the minor version in the
pyproject.toml
file, for example to bump from0.0.4
to0.0.5-dev
:
$ poetry version 0.0.5-dev