Open onerandomusername opened 3 years ago
Tiangolo, the author of the lovely framework FastAPI has done one more lovely thing for your lovely issue.
He introduced a poetry plugin a while ago, which does exactly what you wish to have. It can read the version from an __init__.py
file:
# __init__.py
__version__ = "0.1.0"
or from a git tag, set with a GitHub release or with:
$ git tag 0.1.0
That isn't exactly what I'm looking for. That looks for a __version__
variable in the package and uses that for the package version, rather than what is in the pyproject.toml file. Meanwhile, poetry version
will bump the version in the pyproject.toml file,
Is there an existing issue for this?
What is the feature?
Configure a workflow or precommit check or something.
Some way to ensure that with all pull request merges, we follow semantic versioning.
Would you like to implement this yourself?
Yes, I'd like to implement this