-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
63 lines (53 loc) · 1.44 KB
/
pyproject.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
53
54
55
56
57
58
59
60
61
62
63
[build-system]
requires = ["setuptools>=61.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "elommr"
authors = [{ name = "duhby" }]
description = "A minimal, Python implementation of the Elo-MMR rating system."
readme = "README.rst"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Natural Language :: English",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
]
license = { file = "LICENSE" }
dynamic = ['version']
[project.urls]
Source = "https://github.com/duhby/elommr/"
Changelog = "https://github.com/duhby/elommr/blob/master/CHANGELOG.md"
"Bug Tracker" = "https://github.com/duhby/elommr/issues/"
[tool.setuptools]
packages = ["elommr"]
[tool.setuptools.dynamic]
version = { attr = "elommr.__version__" }
[tool.tbump]
github_url = "https://github.com/duhby/elommr/"
[tool.tbump.version]
current = "1.2.1"
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
(.
(?P<extra>.+)
)?
'''
[tool.tbump.git]
message_template = "Bump to {new_version}"
tag_template = "v{new_version}"
[[tool.tbump.file]]
src = "elommr/__init__.py"
search = '__version__ = "{current_version}"'
[[tool.tbump.before_commit]]
name = "check changelog"
cmd = "git grep -q {new_version} CHANGELOG.md"
[[tool.tbump.after_push]]
name = "publish"
cmd = "./publish.sh"