-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
149 lines (134 loc) · 3.69 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
[build-system]
requires = [
"setuptools >= 64",
"setuptools_scm[toml] >= 6.4"
]
build-backend = "setuptools.build_meta"
[project]
name = "asphalt-web"
description = "Web framework integrations for the Asphalt framework"
readme = "README.rst"
authors = [{name = "Alex Grönholm", email = "[email protected]"}]
license = {text = "Apache License 2.0"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Environment :: Web Environment",
"Framework :: AsyncIO",
"Typing :: Typed",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.8"
dependencies = [
"asphalt ~= 4.8",
]
dynamic = ["version"]
[project.urls]
Documentation = "https://asphalt-web.readthedocs.org/en/latest/"
"Source code" = "https://github.com/asphalt-framework/asphalt-web"
"Issue tracker" = "https://github.com/asphalt-framework/asphalt-web/issues"
"Help and support" = "https://github.com/asphalt-framework/asphalt/wiki/Help-and-support"
[project.optional-dependencies]
aiohttp = [
"aiohttp >= 3.8"
]
asgi3 = [
"asgiref ~= 3.5",
"uvicorn >= 0.17.6",
]
django = [
"asgiref ~= 3.5",
"Django >= 3.2",
"uvicorn >= 0.17.6",
]
fastapi = [
"asgiref ~= 3.5",
"fastapi >= 0.75",
"uvicorn >= 0.17.6",
]
litestar = [
"asgiref ~= 3.5",
"litestar >= 2.2",
"uvicorn >= 0.17.6",
]
starlette = [
"asgiref ~= 3.5",
"starlette >= 0.17",
"uvicorn >= 0.17.6",
]
test = [
"coverage >= 7",
"pytest >= 7.4",
"pytest-asyncio",
"httpx",
"websockets",
"aiohttp >= 3.8; python_version < '3.12'",
"Django >= 3.2; python_implementation == 'CPython'",
"asphalt-web[asgi3,fastapi,starlette]",
"litestar >= 2.2; python_implementation == 'CPython'",
]
doc = [
"Sphinx >= 7.0",
"sphinx_rtd_theme >= 1.3.0",
"sphinx-autodoc-typehints >= 1.22",
"sphinx-tabs >= 3.3.1",
"asphalt-web[aiohttp,asgi3,django,fastapi,litestar,starlette]",
]
[project.entry-points."asphalt.components"]
aiohttp = "asphalt.web.aiohttp:AIOHTTPComponent"
asgi3 = "asphalt.web.asgi3:ASGIComponent"
django = "asphalt.web.django:DjangoComponent"
fastapi = "asphalt.web.fastapi:FastAPIComponent"
litestar = "asphalt.web.litestar:LitestarComponent"
starlette = "asphalt.web.starlette:StarletteComponent"
[tool.setuptools_scm]
version_scheme = "post-release"
local_scheme = "dirty-tag"
[tool.pytest.ini_options]
addopts = "-rsx --tb=short"
asyncio_mode = "strict"
testpaths = ["tests"]
[tool.ruff]
line-length = 99
[tool.ruff.lint]
select = [
"ASYNC", # flake8-async
"E", "F", "W", # default Flake8
"G", # flake8-logging-format
"I", # isort
"ISC", # flake8-implicit-str-concat
"PGH", # pygrep-hooks
"RUF100", # unused noqa (yesqa)
"UP", # pyupgrade
]
[tool.ruff.isort]
known-first-party = ["asphalt.web"]
[tool.mypy]
python_version = "3.8"
[tool.coverage.run]
source = ["asphalt.web"]
relative_files = true
branch = true
[tool.coverage.report]
show_missing = true
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py38, py39, py310, py311, py312, pypy3
skip_missing_interpreters = true
minversion = 4.0
[testenv]
extras = test
commands = python -m pytest {posargs}
[testenv:docs]
extras = doc
commands = sphinx-build -n docs build/sphinx
"""