-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
107 lines (88 loc) · 2.23 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "e2xauthoring"
description = "Authoring app for e2xgrader"
readme = "README.md"
requires-python = ">=3.7"
license = "MIT"
authors = [
{ name = "Tim Metzler", email = "[email protected]"},
]
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
]
dependencies = [
"e2xcore>=0.0.5",
"GitPython"
]
dynamic = ["version"]
[project.urls]
Source = "https://github.com/Digiklausur/e2xauthoring"
Documentation = "https://e2xauthoring.readthedocs.io/en/latest/"
Issues = "https://github.com/Digiklausur/e2xauthoring/issues"
Pypi = "https://pypi.org/project/e2xauthoring/"
[project.optional-dependencies]
dev = [
"pre-commit",
"hatchling",
"tbump",
"sphinx",
"pydata-sphinx-theme",
"build",
"twine",
]
[tool.hatch.version]
path = "e2xauthoring/__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]
artifacts = [
"e2xauthoring/app/templates/"
]
[tool.tbump]
github_url = "https://github.com/Digiklausur/e2xauthoring/"
[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}"
[[tool.tbump.file]]
src = "e2xauthoring/__version__.py"
[[tool.tbump.file]]
src = "docs/source/conf.py"
[[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 = '"@e2xauthoring/[\w-]+": "{current_version}'
[[tool.tbump.before_commit]]
name = "Build"
cmd = "python -m build"
[[tool.tbump.before_commit]]
name = "Check with twine"
cmd = "twine check dist/*"
[tool.ruff]
line-length = 100
ignore-init-module-imports = true
select = ["E", "F", "I"]