Skip to content

Commit

Permalink
Revert "remove prereleases"
Browse files Browse the repository at this point in the history
This reverts commit 4118d62.
  • Loading branch information
lfoppiano committed Dec 25, 2024
1 parent 4118d62 commit 20b8cb7
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .bumpversion.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ commit = "true"
tag = "true"
tag_name = "v{new_version}"

#parse = """(?x)
# (?P<major>0|[1-9]\\d*)\\.
# (?P<minor>0|[1-9]\\d*)\\.
# (?P<patch>0|[1-9]\\d*)
# (?:
# - # dash separator 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 = """(?x)
(?P<major>0|[1-9]\\d*)\\.
(?P<minor>0|[1-9]\\d*)\\.
(?P<patch>0|[1-9]\\d*)
(?:
- # dash separator 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
"""

#[tool.bumpversion.parts.pre_l]
#values = ["dev", "rc", "final"]
#optional_value = "final"
serialize = [
"{major}.{minor}.{patch}-{pre_l}{pre_n}",
"{major}.{minor}.{patch}",
]

[tool.bumpversion.parts.pre_l]
values = ["dev", "rc", "final"]
optional_value = "final"

0 comments on commit 20b8cb7

Please sign in to comment.