Consider a new approach for version updates and tagging (using CI):
As an illustration, in a poetry-managed package, I would set the git tag first,
git tag x.y.z
git push --tags
then put that version in the pyproject.toml file like
poetry version $(git describe --tags --abbrev=0)
and finally
to build the package. Put the poetry part in a github action and you have an automated workflow.
To correctly show the version number within the package, you put
from importlib import metadata
__version__ = metadata.version("package-name")
in the main __init__.py file.
Consider a new approach for version updates and tagging (using CI):
As an illustration, in a poetry-managed package, I would set the git tag first,
then put that version in the pyproject.toml file like
poetry version $(git describe --tags --abbrev=0)and finally
to build the package. Put the poetry part in a github action and you have an automated workflow.
To correctly show the version number within the package, you put
in the main
__init__.pyfile.