Skip to content

Commit 0e4e97b

Browse files
build: replace bump-version script with tbump setup
1 parent 9f01689 commit 0e4e97b

3 files changed

Lines changed: 30 additions & 20 deletions

File tree

bin/bump-version.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/edit_python_pe/__about__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.0"
1+
__version__ = "0.2.10"

tbump.toml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[version]
2+
current = "0.2.10"
3+
regex = '''
4+
(?P<major>\d+)
5+
\.
6+
(?P<minor>\d+)
7+
\.
8+
(?P<patch>\d+)
9+
'''
10+
11+
[git]
12+
message_template = "bump version to {new_version}"
13+
tag_template = "v{new_version}"
14+
15+
[[file]]
16+
src = "pyproject.toml"
17+
search = 'version = "{current_version}"'
18+
19+
[[file]]
20+
src = "pyproject.toml"
21+
search = 'tags/v{current_version}.tar.gz'
22+
23+
[[file]]
24+
src = "src/edit_python_pe/__about__.py"
25+
search = '__version__ = "{current_version}"'
26+
27+
[[before_commit]]
28+
name = "Lock dependencies"
29+
cmd = "uv lock && git add uv.lock"

0 commit comments

Comments
 (0)