forked from asphalt-framework/asphalt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
124 lines (108 loc) · 3.2 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
[build-system]
requires = [
"setuptools >= 64",
"setuptools_scm >= 6.4"
]
build-backend = "setuptools.build_meta"
[project]
name = "asphalt"
description = "A microframework for network oriented applications"
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",
"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 = [
"importlib_metadata >= 4.4; python_version < '3.10'",
"typing_extensions; python_version < '3.10'",
"ruamel.yaml >= 0.15",
"async-generator ~= 1.4",
"asyncio_extras ~= 1.3",
"async_timeout >= 2.0",
"click >= 6.6",
]
dynamic = ["version"]
[project.urls]
"Component projects" = "https://github.com/asphalt-framework"
Documentation = "https://asphalt.readthedocs.org/en/latest/"
"Help and support" = "https://github.com/asphalt-framework/asphalt/wiki/Help-and-support"
"Source code" = "https://github.com/asphalt-framework/asphalt"
"Issue tracker" = "https://github.com/asphalt-framework/asphalt/issues"
[project.optional-dependencies]
uvloop = ["uvloop >= 0.4.10"]
tokio = ["tokio"]
test = [
"coverage >= 7",
"pytest >= 3.9",
"pytest-asyncio",
"uvloop; python_version < '3.12' and python_implementation == 'CPython' and platform_system != 'Windows'",
]
doc = [
"Sphinx >= 7.0",
"sphinx-rtd-theme >= 1.3.0",
"sphinx-autodoc-typehints >= 1.22",
]
[project.entry-points."asphalt.core.event_loop_policies"]
uvloop = "uvloop:EventLoopPolicy"
tokio = "tokio:TokioLoopPolicy"
[project.scripts]
asphalt = "asphalt.core.cli:main"
[tool.setuptools_scm]
version_scheme = "post-release"
local_scheme = "dirty-tag"
[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.lint.isort]
known-first-party = ["asphalt.core"]
[tool.pytest.ini_options]
addopts = "-rsx --tb=short"
asyncio_mode = "strict"
testpaths = ["tests"]
[tool.mypy]
show_error_codes = true
[tool.coverage.run]
source = ["asphalt"]
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}
package = editable
[testenv:docs]
extras = doc
commands = sphinx-build -n docs build/sphinx {posargs}
package = editable
"""