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 1c0372a commit d9a2a6e
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,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 d9a2a6e

Please sign in to comment.