-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
111 lines (91 loc) · 2.31 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "e2xgrader"
description = "An addon for nbgrader"
readme = "README.md"
requires-python = ">=3.8"
license = "MIT"
authors = [
{ name = "Tim Metzler", email = "[email protected]" },
]
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
dependencies = [
"e2xcore>=0.0.5",
"e2xauthoring>=0.2.1",
"pandas"
]
dynamic = ["version"]
[project.urls]
Source = "https://github.com/Digiklausur/e2xgrader"
Documentation = "https://e2xgrader.readthedocs.io/en/latest/"
Issues = "https://github.com/Digiklausur/e2xgrader/issues"
Pypi = "https://pypi.org/project/e2xgrader/"
[project.optional-dependencies]
dev = [
"pre-commit",
"pytest-cov",
"hatchling",
"tbump"
]
[project.scripts]
e2xgrader = "e2xgrader.apps.e2xgraderapp:main"
[tool.hatch.version]
path = "e2xgrader/__version__.py"
[tool.hatch.build.hooks.jupyter-builder]
dependencies = ["hatch-jupyter-builder"]
build-function = "hatch_jupyter_builder.npm_builder"
[tool.hatch.build.hooks.jupyter-builder.build-kwargs]
build_cmd = "build"
[tool.hatch.build.targets.sdist]
artifacts = [
"e2xgrader/static"
]
[tool.hatch.build.targets.wheel]
artifacts = [
"e2xgrader/static"
]
[tool.tbump]
github_url = "https://github.com/Digiklausur/e2xgrader/"
[tool.tbump.version]
current = "0.3.0"
regex = '''
(?P<major>\d+)
\.
(?P<minor>\d+)
\.
(?P<patch>\d+)
(?P<dev>-dev\d+)?
'''
[tool.tbump.git]
message_template = "Bump to {new_version}"
tag_template = "v{new_version}"
# Files with the version present
[[tool.tbump.file]]
src = "e2xgrader/__version__.py"
[[tool.tbump.file]]
src = "docs/source/conf.py"
[[tool.tbump.file]]
src = "lerna.json"
[[tool.tbump.file]]
src = "package.json"
search = '"version": "{current_version}'
[[tool.tbump.file]]
src = "packages/*/package.json"
search = '"version": "{current_version}'
[[tool.tbump.file]]
src = "packages/*/package.json"
search = '"@e2xgrader/[\w-]+": "{current_version}'
[tool.ruff]
line-length = 100
exclude = ["nbgrader_config.py"]
ignore-init-module-imports = true
select = ["F", "E", "I"]