-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.tbump.main.toml
52 lines (41 loc) · 1.08 KB
/
.tbump.main.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# SPDX-FileCopyrightText: 2022 Carnegie Mellon University
# SPDX-License-Identifier: 0BSD
# github_url = "https://github.com/cmusatyalab/sinfonia/"
[version]
current = "0.4.10.post.dev0"
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
(?P<extra>\.post\.dev\d+)?
'''
[[field]]
name = "extra"
default = ""
[git]
message_template = "Bumping to {new_version}"
tag_template = "v{new_version}"
[[file]]
src = "pyproject.toml"
search = 'version = "{current_version}"'
[[file]]
src = "charts/sinfonia/Chart.yaml"
version_template = "v{major}.{minor}.{patch}"
search = 'appVersion: "{current_version}"'
[[file]]
src = "src/sinfonia/__init__.py"
search = '__version__ = "{current_version}"'
[[before_commit]]
name = "run pre-commit checks and unit tests"
cmd = "poetry run poe check"
[[before_commit]]
name = "build sdist and wheels"
cmd = "poetry run poe build"
[[before_commit]]
name = "bump helm chart version"
cmd = "poetry run tbump --config=.tbump.helm.toml --non-interactive --only-patch {new_version}"
# [[after_push]]
# name = "publish"
# cmd = "./publish.sh"