-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
pyproject.toml
110 lines (101 loc) · 2.88 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
[tool.poetry]
name = "xpresso"
version = "0.46.0"
description = "A developer centric, performant Python web framework"
authors = ["Adrian Garcia Badaracco <[email protected]>"]
readme = "README.md"
repository = "https://github.com/adriangb/xpresso"
documentation = "https://www.xpresso-api.dev"
keywords = ["web-framework", "http", "openapi"]
license = "MIT"
classifiers = [
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python",
"Topic :: Internet",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development",
"Typing :: Typed",
"Development Status :: 3 - Alpha",
"Environment :: Web Environment",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Internet :: WWW/HTTP",
]
[tool.poetry.dependencies]
python = ">=3.7,<4"
di = "0.75.0"
anyio = ">=3.4.0,<5"
starlette = ">=0.21.0,<1"
typing-extensions = { version = ">=3", python = "<3.9" }
pydantic = "^1.10.2"
[tool.poetry.dev-dependencies]
# linting
black = "~22"
flake8 = "~3"
isort = "~5"
mypy = ">=v0.930"
pre-commit = "~2"
# testing
pytest = "~6"
pytest-cov = { version = "~3" }
pytest-sugar = "~0"
coverage = { extras = ["toml"], version = "~6" }
requests = "~2"
python-multipart = "~0"
trio = "^0.19.0"
# same problem as https://github.com/encode/httpcore/pull/590
importlib-metadata = {version = "4.13.0", python = ">=3.7"}
# docs
mkdocs = "~1"
mkdocs-material = "~8"
mike = "~1"
# doc examples
msgpack = "^1.0.3"
# benchmarks
# fastapi = ">=0.75.0" # incompatible with the latest starlette
httpx = ">=0.23.0"
asgi-lifespan = "~1"
gunicorn = "^20.1.0"
uvicorn = { version = "^0.15.0" }
pyinstrument = "^4.1.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.isort]
profile = "black"
[tool.coverage.run]
branch = true
source = ["xpresso", "tests", "docs"]
dynamic_context = "test_function"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
'\.\.\.',
"raise NotImplementedError",
"TYPE_CHECKING",
"__repr__",
"import",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.black]
exclude = 'docs\/.*\.py$'
[tool.mypy]
files = "xpresso/**/*.py,tests/**/*.py"
no_implicit_optional = true
allow_redefinition = false
implicit_reexport = false
warn_unreachable = true
show_error_codes = true