Skip to content

Commit

Permalink
semantic versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Helveg committed Mar 29, 2024
1 parent dbf850a commit 4d7442f
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions pyproject.toml
Expand Up @@ -57,20 +57,8 @@ profile = "black"

[tool.bumpversion]
current_version = "4.0.0"
parse = """(?x)
(?P<major>0|[1-9]\\d*)\\.
(?P<minor>0|[1-9]\\d*)\\.
(?P<patch>0|[1-9]\\d*)
(?:
- # dash seperator for pre-release section
(?P<pre_l>[a-zA-Z-]+) # pre-release label
(?P<pre_n>0|[1-9]\\d*) # pre-release version number
)? # pre-release section is optional
"""
serialize = [
"{major}.{minor}.{patch}-{pre_l}{pre_n}",
"{major}.{minor}.{patch}",
]
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "{current_version}"
replace = "{new_version}"
regex = false
Expand Down

0 comments on commit 4d7442f

Please sign in to comment.