You have been made the maintainer of pgcli? Congratulations!
To release a new version of the package:
-
Set the version number (that should follow SemVer) in
changelog.rstby turning the "Upcoming" section title into something like "4.7.0 (2026-09-19)" (i.e. the version number followed by the date of the release, most probably today); and add a new empty "Upcoming" section. -
Set the same version number in
__init__.py. -
-
Click on "Select tag", input the new tag name (it should start with "v", for example "v4.7.0") and click "Create new tag".
-
Select target branch:
main. -
Input release title: the version number (without "v"), for example "4.7.0".
-
In the release notes, copy the corresponding section from
changelog.rst. Double-check the rendered text. Warning: changelog is in reSTructuredText, release notes are in Markdown, syntax is similar but not exactly compatible. -
No binary file to upload, default release label ("Latest"), no "discussion for this release".
-
Click on "Publish release".
This will trigger a GitHub action that runs all the tests, builds the package and uploads it to PyPI.
-