Closed
Description
Description
I have a monorepo with multiple poetry projects. I would like configure version_provider=poetry
and version_files
in .cz.toml
in the root. When I run cz bump
all pyproject.toml
files should be updated.
Possible Solution
[tool.commitizen]
tag_format = "v$version"
version_scheme = "pep440"
version_provider = "poetry"
version_files = [ "paths/to/pyproject.tomls"]
Additional context
I figured that following works, so maybe this request could be closed:
[tool.commitizen]
tag_format = "v$version"
version = "0.1.0"
version_scheme = "pep440"
version_files = [ "paths/to/pyproject.toml:version"]
Activity
noirbizarre commentedon Apr 17, 2024
#1070 should even allow this;
If you use
git
and are tagging versions, you can also rely onversion_provider = "scm"
and remove the hard-codedversion
(but you might need to check for properscm
versioning support inpoetry
)(If this is working for you, don't forget to close the issue, please 🙏🏼)
jzazo commentedon Apr 17, 2024
Yes, using
version_provider = "scm"
allowed me to remove the bareversion
in the config. It seems to be working in a quick test, I still need to test it for dev versions (still need to figure that out). Thank you!