-
Notifications
You must be signed in to change notification settings - Fork 4
Performing a Release
Nils Homer edited this page Jul 13, 2024
·
12 revisions
- Ensure you have an account on both PyPi and test PyPi
- Ensure you have created a token for both PyPi and test PyPi
- Ensure you are using your Rosetta or intel-enabled terminal if using an M-class Mac
- Use
__token__for the username in the below commands and your token for the password
- Configure the repository
$ poetry config repositories.testpypi https://test.pypi.org/legacy/ - Build the package with
$ poetry build - Test run
$ poetry publish -r testpypi -u "__token__" -p <token> --dry-run - publish with
$ poetry publish -r testpypi -u "__token__" -p <token> - 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
mainbranch - remove the
-devsuffix in the version in thepyproject.tomlfile, for example to bump from0.0.4-devto0.0.4:
$ poetry version 0.0.4
- commit and tag the release, push to github
- build the package with
$ poetry build - test run
$ poetry publish --dry-run - publish with
$ poetry publish -u "__token__" -p <token> - update release notes on github
- bump the minor version in the
pyproject.tomlfile, for example to bump from0.0.4to0.0.5-dev:
$ poetry version 0.0.5-dev
- commit and push to github