Skip to content

Commit

Permalink
add new bump-my-version config
Browse files Browse the repository at this point in the history
  • Loading branch information
sigven committed Nov 19, 2024
1 parent cb8ebe3 commit a86f5a5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .bumpversion.cfg

This file was deleted.

26 changes: 26 additions & 0 deletions .bumpversion.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[tool.bumpversion]
current_version = "0.8.0"
search = "{current_version}"
replace = "{new_version}"
message = "Bump version: {current_version} → {new_version}"
regex = false
ignore_missing_version = false
ignore_missing_files = false
commit = true
parse = """(?x)
(?P<major>0|[1-9]\\d*)\\.
(?P<minor>0|[1-9]\\d*)\\.
(?P<patch>0|[1-9]\\d*)
(?:\\.(?P<dev>\\d+))?
"""

serialize = [
"{major}.{minor}.{patch}.{dev}",
"{major}.{minor}.{patch}",
]

[[tool.bumpversion.files]]
filename = "DESCRIPTION"
search = "Version: {current_version}"
replace = "Version: {new_version}"

0 comments on commit a86f5a5

Please sign in to comment.