use bump-my-version

This commit is contained in:
Karl 2025-05-17 11:11:00 +01:00
parent 5b1fc11100
commit 64d0c7bbab
2 changed files with 21 additions and 11 deletions

View File

@ -1,10 +1,21 @@
[bumpversion]
current_version = "0.1.1"
commit = true
tag = true
tag_name = "{new_version}"
[[file]]
filename = "./__version__.py"
search = '__version__ = "{current_version}"'
replace = '__version__ = "{new_version}"'
[tool.bumpversion]
current_version = "0.1.0"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
search = "{current_version}"
replace = "{new_version}"
regex = false
ignore_missing_version = false
ignore_missing_files = false
tag = false
sign_tags = false
tag_name = "v{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
allow_dirty = false
commit = false
message = "Bump version: {current_version} → {new_version}"
moveable_tags = []
commit_args = ""
setup_hooks = []
pre_commit_hooks = []
post_commit_hooks = []

View File

@ -1 +0,0 @@
__version__ = "0.1.0"