-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy path.bumpversion.toml
30 lines (27 loc) · 1.11 KB
/
.bumpversion.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[tool.bumpversion]
current_version = "0.10.0"
commit = true
message = "Update version {current_version} -> {new_version}"
parse = "^(?P<major>0|[1-9]\\d*)\\.(?P<minor>0|[1-9]\\d*)\\.(?P<patch>0|[1-9]\\d*)(?P<prerelease>[a|b|rc](?:0|[1-9]\\d*))?(?P<devrelease>(?:\\.dev)(?:0|[1-9]\\d*))?(?P<buildmetadata>\\+[0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*)?$"
serialize = [
"{major}.{minor}.{patch}{prerelease}{devrelease}{buildmetadata}",
"{major}.{minor}.{patch}{prerelease}{devrelease}",
"{major}.{minor}.{patch}{prerelease}{buildmetadata}",
"{major}.{minor}.{patch}{prerelease}",
"{major}.{minor}.{patch}{devrelease}{buildmetadata}",
"{major}.{minor}.{patch}{devrelease}",
"{major}.{minor}.{patch}{buildmetadata}",
"{major}.{minor}.{patch}",
]
[[tool.bumpversion.files]]
filename = "ibmcloudant/version.py"
search = "__version__ = '{current_version}'"
replace = "__version__ = '{new_version}'"
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = "version = \"{current_version}\""
replace = "version = \"{new_version}\""
[[tool.bumpversion.files]]
filename = "README.md"
search = "{current_version}"
replace = "{new_version}"