update
This commit is contained in:
@@ -1,38 +1,19 @@
|
|||||||
[tool.bumpversion]
|
[tool.bumpversion]
|
||||||
current_version = "0.1.1"
|
current_version = "0.2.0"
|
||||||
parse = """(?x)
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
||||||
(?P<major>0|[1-9]\\d*)\\.
|
serialize = ["{major}.{minor}.{patch}"]
|
||||||
(?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}",
|
|
||||||
]
|
|
||||||
search = "{current_version}"
|
search = "{current_version}"
|
||||||
replace = "{new_version}"
|
replace = "{new_version}"
|
||||||
regex = false
|
regex = false
|
||||||
ignore_missing_version = false
|
ignore_missing_version = false
|
||||||
ignore_missing_files = false
|
tag = false
|
||||||
tag = true
|
|
||||||
sign_tags = false
|
sign_tags = false
|
||||||
tag_name = "v{new_version}"
|
tag_name = "v{new_version}"
|
||||||
tag_message = "Bump version: {current_version} → {new_version}"
|
tag_message = "Bump version: {current_version} → {new_version}"
|
||||||
allow_dirty = false
|
allow_dirty = false
|
||||||
commit = true
|
commit = false
|
||||||
message = "Bump version: {current_version} → {new_version}"
|
message = "Bump version: {current_version} → {new_version}"
|
||||||
commit_args = ""
|
commit_args = ""
|
||||||
setup_hooks = []
|
|
||||||
pre_commit_hooks = []
|
|
||||||
post_commit_hooks = []
|
|
||||||
[tool.bumpversion.parts.pre_l]
|
|
||||||
values = ["dev", "rc", "final"]
|
|
||||||
optional_value = "final"
|
|
||||||
[[tool.bumpversion.files]]
|
[[tool.bumpversion.files]]
|
||||||
filename = ".version"
|
filename = ".version"
|
||||||
[[tool.bumpversion.files]]
|
[[tool.bumpversion.files]]
|
||||||
|
|||||||
Reference in New Issue
Block a user