Skip to content

Commit dd657eb

Browse files
committed
MAINT: Add tbump configuration
1 parent a5c01e4 commit dd657eb

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed

.github/workflows/trigger_asv.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ jobs:
3030
ref: master
3131
wait_workflow: true
3232
client_payload: '{"pr_number": "${{ github.event.client_payload.slash_command.args.named.pr_number }}"}'
33-

tbump.toml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Uncomment this if your project is hosted on GitHub:
2+
github_url = "https://github.com/airspeed-velocity/asv_runner/"
3+
4+
[version]
5+
current = "0.0.6"
6+
7+
# Example of a semver regexp.
8+
# Make sure this matches current_version before
9+
# using tbump
10+
regex = '''
11+
(?P<major>\d+)
12+
\.
13+
(?P<minor>\d+)
14+
\.
15+
(?P<patch>\d+)
16+
'''
17+
18+
[git]
19+
message_template = "MAINT: Bump to {new_version}"
20+
tag_template = "v{new_version}"
21+
22+
# For each file to patch, add a [[file]] config
23+
# section containing the path of the file, relative to the
24+
# tbump.toml location.
25+
[[file]]
26+
src = "pyproject.toml"
27+
[[file]]
28+
src = "docs/source/conf.py"
29+
30+
# You can specify a list of commands to
31+
# run after the files have been patched
32+
# and before the git commit is made
33+
34+
[[before_commit]]
35+
name = "pre-commit"
36+
cmd = "pipx run pre-commit run -a"
37+
38+
# [[before_commit]]
39+
# name = "check changelog"
40+
# cmd = "grep -q {new_version} Changelog.rst"
41+
42+
# Or run some commands after the git tag and the branch
43+
# have been pushed:
44+
# [[after_push]]
45+
# name = "publish"
46+
# cmd = "./publish.sh"

0 commit comments

Comments
 (0)