Skip to content

Commit

Permalink
remove complicated numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Aug 6, 2024
1 parent 5dfec5f commit 2f54a70
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .bumpversion.toml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
[tool.bumpversion]
current_version = "0.0.16-dev1"
current_version = "0.0.15"
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}",
]

[tool.bumpversion.parts.pre_l]
values = ["dev", "rc", "final"]
optional_value = "final"
#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}",
#]
#
#[tool.bumpversion.parts.pre_l]
#values = ["dev", "rc", "final"]
#optional_value = "final"

0 comments on commit 2f54a70

Please sign in to comment.