Skip to content
Snippets Groups Projects
Commit 37dd40b0 authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

fixed parsing to support possible 3 or 4 digit versioning

parent a60906fc
No related branches found
No related tags found
3 merge requests!1605Merge 2.8.2.3 work to main,!1581catch up with 2.8.2.3,!1579updating and testing Sam's bumpversion work
Pipeline #14288 passed
# Config for bump-my-version
# Docs: https://callowayproject.github.io/bump-my-version/
[tool.bumpversion]
current_version = "2.8.2.1rc1"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)\\.(?P<smallpatch>\\d+)(rc(?P<rc>\\d+))?"
current_version = "2.8.2.3rc1"
parse = """(?x)
(?P<major>0|[1-9]\\d*)\\.
(?P<minor>0|[1-9]\\d*)\\.
(?P<patch>0|[1-9]\\d*)
(?:
\\.(?P<smallpatch>0|[1-9]\\d*)
)?
(?:
(?P<pre_l>[a-zA-Z-]+) # pre-release label
(?P<pre_n>[1-9]\\d*) # pre-release version number
)? # pre-release section is optional
"""
serialize = [
"{major}.{minor}.{patch}.{smallpatch}rc{rc}",
"{major}.{minor}.{patch}{pre_l}{pre_n}",
"{major}.{minor}.{patch}.{smallpatch}{pre_l}{pre_n}",
"{major}.{minor}.{patch}.{smallpatch}",
"{major}.{minor}.{patch}rc{rc}",
"{major}.{minor}.{patch}"
"{major}.{minor}.{patch}",
]
allow_dirty = true
[tool.bumpversion.parts.pre_l]
values = ["dev", "rc", "final"]
optional_value = "final"
[[tool.bumpversion.files]]
glob = "apps/cli/executables/pexable/*/pyproject.toml"
excluded_paths = "apps/cli/executables/pexable/pycapo/*"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment