mbarkhau / bumpver

BumpVer: Automatic Versioning
https://github.com/mbarkhau/bumpver
MIT License
199 stars 36 forks source link

Examples for versioning release candidates #236

Closed geyang closed 3 months ago

geyang commented 6 months ago

Hi @mbarkhau ,

Thanks for this nice library.

Is there a way to pattern versions such as 0.0.1-rc1?

mbarkhau commented 6 months ago

Hi @geyang,

yes, you can give this a try:

# pyproject.toml
[bumpver]
current_version = "1.5.2-rc1"
version_pattern = "MAJOR.MINOR.PATCH[-TAGNUM]"