-
Notifications
You must be signed in to change notification settings - Fork 0
Performing a Release
Nils Homer edited this page Aug 2, 2024
·
7 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 pybedlite
- 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.2-dev
to0.0.3
:
$ poetry version 0.0.3
- build the package with
$ poetry build
- test run
$ poetry publish --dry-run
- publish with
$ poetry publish -u "__token__" -p <token>
- tag the release, and update release notes on github
- bump the minor version in the
pyproject.toml
file, for example to bump from0.0.2
to0.0.3-dev
:
$ poetry version 0.0.3-dev