Deploy on PyPI
Publishing on PyPI is very easy with Poetry. If needed, everything is detailed here in their documentation.
Note
Before publishing a new version of your package, we advise you to ensure all your tests run properly.
Configure your PyPI account
This step has to be done only once.
(Optional) Setting a new version and release
- Update the
version
attribute under the[tool.poetry]
group of yourpyproject.toml
file to set a new version, e.g.version = "1.3.2"
- Create a new tag associated with this version on GitHub (for the tag name, we advise adding a
v
before the version): - On the GitHub interface, go to the "Release" section of your repository and "Draft a new release" (choose the tag defined above).
Publish on PyPI
Note
If you already published on PyPI: you should make a new version, i.e. at least change the version
in your pyproject.toml
file, as written above.