-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml.jinja
101 lines (87 loc) · 2.79 KB
/
pyproject.toml.jinja
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
[build-system]
requires = [
"setuptools >= 64",
"setuptools_scm >= 6.4"
]
build-backend = "setuptools.build_meta"
[project]
name = "asphalt-{{ project_name }}"
description = "{{ short_description }}"
readme = "README.rst"
authors = [{name = "{{ author_name }}", email = "{{ author_email }}"}]
license = {text = "Apache License 2.0"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">=3.9"
dependencies = [
"asphalt ~= 4.8",
]
dynamic = ["version"]
[project.urls]
Documentation = "https://asphalt-{{ project_name }}.readthedocs.org/en/latest/"
"Source code" = "https://github.com/asphalt-framework/asphalt-{{ project_name }}"
"Issue tracker" = "https://github.com/asphalt-framework/asphalt-{{ project_name }}/issues"
"Help and support" = "https://github.com/asphalt-framework/asphalt/wiki/Help-and-support"
[project.optional-dependencies]
test = [
"anyio[trio] ~= 4.1",
"coverage >= 7",
"pytest >= 7.4",
]
doc = [
"Sphinx >= 7.0",
"sphinx-rtd-theme >= 3.0.1",
"sphinx-autodoc-typehints >= 1.22",
]
[project.entry-points."asphalt.components"]
{{ project_name }} = "asphalt.{{ project_name }}:{{ component_name }}"
[tool.setuptools_scm]
version_scheme = "post-release"
local_scheme = "dirty-tag"
[tool.ruff.lint]
extend-select = [
"ASYNC", # flake8-async
"G", # flake8-logging-format
"I", # isort
"ISC", # flake8-implicit-str-concat
"PGH", # pygrep-hooks
"RUF", # Ruff-specific rules
"UP", # pyupgrade
"W", # pycodestyle warnings
]
[tool.ruff.lint.isort]
known-first-party = ["asphalt.{{ project_name }}"]
known-third-party = ["asphalt.core"]
[tool.mypy]
python_version = "3.9"
strict = true
explicit_package_bases = true
mypy_path = ["src", "tests", "examples"]
[tool.pytest.ini_options]
addopts = ["-rsfE", "--tb=short"]
[tool.coverage.run]
source = ["asphalt.{{ project_name }}"]
relative_files = true
branch = true
[tool.coverage.report]
show_missing = true
[tool.tox]
env_list = ["py39", "py310", "py311", "py312", "py313", "pypy3"]
skip_missing_interpreters = true
[tool.tox.env_run_base]
commands = [["python", "-m", "pytest", { replace = "posargs", extend = true }]]
package = "editable"
extras = ["test"]
[tool.tox.env.docs]
commands = [["sphinx-build", "-W", "-n", "docs", "build/sphinx", { replace = "posargs", extend = true }]]
extras = ["doc"]