-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
59 lines (50 loc) · 1.18 KB
/
Copy pathpyproject.toml
File metadata and controls
59 lines (50 loc) · 1.18 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
[build-system]
requires = ["maturin>=1.5,<2.0"]
build-backend = "maturin"
[project]
name = "cmtk"
dynamic = ["version"]
description = "A CMake formatter and static analyzer"
readme = "README.md"
requires-python = ">=3.8"
license = { text = "MIT" }
authors = [
{ name = "Alex Reinking" }
]
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: MIT License",
]
[dependency-groups]
dev = [
"tbump>=6.10.0",
]
[tool.maturin]
bindings = "bin"
manifest-path = "Cargo.toml"
[tool.tbump.version]
current = "0.2.1"
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
'''
[tool.tbump.git]
# Template for the git tag
tag_template = "v{new_version}"
# Template for the git commit message
message_template = "Bump to {new_version}"
# Files to update with the new version
[[tool.tbump.file]]
src = "Cargo.toml"
search = 'version = "{current_version}"'
[[tool.tbump.file]]
src = "pyproject.toml"
search = 'current = "{current_version}"'
[[tool.tbump.before_commit]]
name = "Update Cargo.lock"
cmd = "cargo check && git add Cargo.lock"