mtkennerly / dunamai

Dynamic versioning library and CLI
https://dunamai.readthedocs.io/en/latest
MIT License
312 stars 24 forks source link

using CalVer #49

Closed zacharyburnett closed 1 year ago

zacharyburnett commented 1 year ago

What would be the best way to use dunamai for getting a calendar version with CalVer?

mtkennerly commented 1 year ago

Since Dunamai just operates on VCS tags, you can use CalVer (or any system you like) when you create your tags, and then Dunamai will use them as-is. For example, a tag like v2022.08.01 or v8.1 would be recognized with the default config. As long as the tag matches Dunamai's tag --pattern (which can be customized), then it'll work.

The --bump functionality wouldn't be applicable to CalVer, but everything else should be.

zacharyburnett commented 1 year ago

ah ok, thank you! That is simple!