mtkennerly / poetry-dynamic-versioning

Plugin for Poetry to enable dynamic versioning based on VCS tags
MIT License
588 stars 36 forks source link

How to increase major/minor? #183

Closed efaj closed 3 weeks ago

efaj commented 3 weeks ago

When using dynamic versioning, automatically the patch version (0.0.x) is increased.... however, this has led to all my projects staying forever in 0.0.x, I'm not figuring out how to bump the major or minor

Example config:

[tool.poetry]
version = "1.0.0"  # ignored, as documented, started with 0.0.1 since my repos didn't have tags

[tool.poetry-dynamic-versioning]
enable = true
vcs = "git"
style = "semver"
pattern = "default-unprefixed"
mtkennerly commented 3 weeks ago

Just make a new tag when you're ready to release a new version :)

git tag 1.0.0 -m "Release"

Don't forget to git push --tags afterwards as well.

When the current commit has a version tag, the plugin will use that version as-is. For subsequent commits, it will use that version as the basis for the dynamic version.

efaj commented 3 weeks ago

Thank you for the response, yeah this is good to close