-
Notifications
You must be signed in to change notification settings - Fork 24
/
pyproject.toml
118 lines (98 loc) · 2.95 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
[tool.poetry]
name = "muffin"
version = "0.102.3"
description = "Muffin is a fast, simple and asyncronous web-framework for Python 3 (asyncio, trio, curio)"
readme = "README.rst"
license = "MIT"
authors = ["Kirill Klenov <[email protected]>"]
keywords = ["asgi", "web", "web framework", "asyncio", "trio", "curio"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT 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 :: Implementation :: PyPy",
"Topic :: Internet :: WWW/HTTP",
"Framework :: AsyncIO",
"Framework :: Trio",
]
homepage = "https://github.com/klen/muffin"
repository = "https://github.com/klen/muffin"
documentation = "https://klen.github.io/muffin"
packages = [{ include = "muffin" }]
[tool.poetry.urls]
changelog = "https://raw.githubusercontent.com/klen/muffin/master/CHANGELOG.md"
[tool.poetry.dependencies]
python = "^3.9"
asgi-tools = "^1"
modconfig = "^1"
ujson = "*"
# Optional
gunicorn = { version = "^20.1.0", optional = true }
uvicorn = { version = "^0.21.1", optional = true, extras = ["standard"] }
[tool.poetry.scripts]
muffin = "muffin.manage:cli"
[tool.poetry.plugins]
pytest11 = { muffin_pytest = "muffin.pytest" }
[tool.poetry.extras]
standard = ["gunicorn", "uvicorn"]
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
aiofile = "*"
pytest = "*"
pytest-mypy = "*"
ruff = "*"
pytest-aio = { extras = ["curio", "trio"], version = "*" }
pre-commit = "*"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
sphinx = "*"
pydata-sphinx-theme = "*"
sphinx-copybutton = "*"
[tool.pytest.ini_options]
addopts = "-xsvl"
muffin_app = "tests:app"
[tool.mypy]
packages = ["muffin"]
ignore_missing_imports = true
[tool.ruff]
line-length = 100
target-version = "py39"
exclude = [".venv", "docs", "example"]
[tool.ruff.lint]
select = ["ALL"]
ignore = ["D", "UP", "ANN", "DJ", "EM", "RSE", "SLF", "RET", "S101", "PLR2004", "N804", "COM"]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["ARG", "TRY", "F", "PGH", "PLR", "PLW", "PTH", "SIM", "RET504", "T20"]
[tool.black]
line-length = 100
target-version = ["py39", "py310", "py311", "py312"]
preview = true
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = true
envlist = py39,py310,py311,py312,pypy310
[testenv]
allowlist_externals = poetry
commands_pre =
poetry install --no-root --sync --with dev
commands =
poetry run pytest --mypy tests --import-mode importlib
[testenv:pypy310]
allowlist_externals = poetry
commands_pre =
poetry install --no-root --sync --with dev
commands =
poetry run pytest tests --import-mode importlib
"""
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"