-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
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 --tagsthen put that version in the pyproject.toml file like
poetry version $(git describe --tags --abbrev=0)and finally
poetry build
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.
Metadata
Metadata
Assignees
Labels
No labels