-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.bumpversion.toml
More file actions
88 lines (77 loc) 路 2.7 KB
/
Copy path.bumpversion.toml
File metadata and controls
88 lines (77 loc) 路 2.7 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[tool.bumpversion]
current_version = "0.0.1-alpha.7"
parse = """(?x)
(?P<major>0|[1-9]\\d*)\\.
(?P<minor>0|[1-9]\\d*)\\.
(?P<patch>0|[1-9]\\d*)
(?:
-
(?P<pre_l>alpha|beta|rc)
\\.
(?P<pre_n>0|[1-9]\\d*)
)?
"""
serialize = [
"{major}.{minor}.{patch}-{pre_l}.{pre_n}",
"{major}.{minor}.{patch}",
]
search = "{current_version}"
replace = "{new_version}"
regex = false
ignore_missing_version = false
ignore_missing_files = false
tag = true
sign_tags = false
tag_name = "v{new_version}"
tag_message = "chore: release v{new_version}"
allow_dirty = false
commit = true
message = "chore: release v{new_version}"
commit_args = ""
pre_commit_hooks = [
"uv run scripts/update_debian_changelog.py",
# sync newly bumped version to lockfiles
"uv sync",
"cargo check",
"git add uv.lock Cargo.lock debian/changelog",
]
[tool.bumpversion.parts.pre_l]
values = ["alpha", "beta", "rc", "final"]
optional_value = "final"
[[tool.bumpversion.files]]
filename = "packages/debmagic/pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
[[tool.bumpversion.files]]
filename = "packages/debmagic-pkg/pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
[[tool.bumpversion.files]]
filename = "packages/debmagic/Cargo.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
[[tool.bumpversion.files]]
filename = "packages/debmagic-common/Cargo.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
# Promote notes under [Unreleased] into a dated release section; keep [Unreleased] for the next cycle.
[[tool.bumpversion.files]]
filename = "packages/debmagic/CHANGELOG.md"
search = "## [Unreleased]"
replace = """## [Unreleased]
## [{new_version}] - {now:%Y-%m-%d}"""
[[tool.bumpversion.files]]
filename = "packages/debmagic/CHANGELOG.md"
search = "[Unreleased]: https://github.com/SFTtech/debmagic/compare/v{current_version}...HEAD"
replace = """[Unreleased]: https://github.com/SFTtech/debmagic/compare/v{new_version}...HEAD
[{new_version}]: https://github.com/SFTtech/debmagic/compare/v{current_version}...v{new_version}"""
[[tool.bumpversion.files]]
filename = "packages/debmagic-pkg/CHANGELOG.md"
search = "## [Unreleased]"
replace = """## [Unreleased]
## [{new_version}] - {now:%Y-%m-%d}"""
[[tool.bumpversion.files]]
filename = "packages/debmagic-pkg/CHANGELOG.md"
search = "[Unreleased]: https://github.com/SFTtech/debmagic/compare/v{current_version}...HEAD"
replace = """[Unreleased]: https://github.com/SFTtech/debmagic/compare/v{new_version}...HEAD
[{new_version}]: https://github.com/SFTtech/debmagic/compare/v{current_version}...v{new_version}"""