-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtbump.toml
More file actions
46 lines (38 loc) · 988 Bytes
/
tbump.toml
File metadata and controls
46 lines (38 loc) · 988 Bytes
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
[version]
current = "0.4.0"
# Example of a semver regexp.
# Make sure this matches current_version before
# using tbump
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
(
-
(?P<channel>alpha|beta|rc)
(?P<release>\d+)
)?
'''
[git]
message_template = "Bump to {new_version}"
tag_template = "v{new_version}"
[[file]]
src = 'pyproject.toml'
search = 'version = "{current_version}"'
[[file]]
src = 'pyproject.toml'
search = 'v{current_version}'
[[before_commit]]
name = "Update version.py"
cmd = "echo $(echo \"{new_version}\" | sed -r 's/([0-9]+)\\.([0-9]+)\\.([0-9]+)/VERSION = (\"\\1\", \"\\2\", \"\\3\")/g') > src/lark_parser_language_server/version.py"
[[before_commit]]
name = "Update changelog"
cmd = "sed -z \"s/## \\[Unreleased\\]/## [Unreleased]\\n\\n## [{new_version}] - $(date '+%Y-%m-%d')/g\" -i CHANGELOG.md"
[[after_push]]
name = "Build package"
cmd = "poetry build"
[[after_push]]
name = "Publish to PyPI"
cmd = "poetry publish"