Skip to content

Commit c687084

Browse files
committed
fix: fix bump version
1 parent 9f48cff commit c687084

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.bumpversion.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ commit = false
44
tag = false
55
tag_name = "v{new_version}"
66
allow_dirty = true
7+
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)((?P<release>a|b|rc)(?P<build>\\d+))?"
8+
serialize = [
9+
"{major}.{minor}.{patch}{release}{build}",
10+
"{major}.{minor}.{patch}"
11+
]
12+
13+
[[tool.bumpversion.files]]
14+
filename = ".bumpversion.toml"
15+
search = 'current_version = "{current_version}"'
16+
replace = 'current_version = "{new_version}"'
717

818
[[tool.bumpversion.files]]
919
filename = "pyproject.toml"

0 commit comments

Comments
 (0)