-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
163 lines (148 loc) · 3.58 KB
/
Copy pathpyproject.toml
File metadata and controls
163 lines (148 loc) · 3.58 KB
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
150
151
152
153
154
155
156
157
158
159
160
161
162
[project]
name = "velithon"
version = "0.6.10"
description = "Velithon is a lightweight, high-performance, asynchronous web framework for Python, built on top of the RSGI protocol"
authors = [
{name = "Dang Van Nghiem",email = "vannghiem848@gmail.com"}
]
license = {text = "BSD-3-Clause"}
readme = "README.md"
requires-python = ">=3.11"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Rust",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Server",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
"Framework :: AsyncIO",
"Environment :: Web Environment",
"Typing :: Typed",
]
dependencies = [
"granian[asyncio,reload,rloop,uvloop] (>=2.7.4,<3.0.0)",
"orjson (>=3.10.16,<4.0.0)",
"pydantic[email] (>=2.11.7,<3.0.0)",
"pyferris (>=0.5.0,<1.0.0)",
]
[project.optional-dependencies]
docs = [
"markdown (>=3.6,<4.0.0)",
"weasyprint (>66.0)",
"jinja2 (>=3.1.0,<4.0.0)",
]
auth = [
"pyjwt (>=2.13.0,<3.0.0)",
"bcrypt (>=5.0.0,<6.0.0)",
]
database = [
"sqlalchemy[asyncio] (>=2.0.0,<3.0.0)",
"alembic (>=1.13.0,<2.0.0)",
]
postgres = [
"asyncpg (>=0.29.0,<1.0.0)",
]
mysql = [
"aiomysql (>=0.2.0,<1.0.0)",
]
sqlite = [
"aiosqlite (>=0.20.0,<1.0.0)",
]
[tool.poetry.dependencies]
python = ">=3.11,<4.0"
[project.scripts]
velithon = "velithon.cli:cli"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
pytest = "^9.0.3"
pytest-codspeed = "^4.0.0"
pytest-cov = "^7.0.0"
ruff = "^0.13.0"
black = "^26.3.1"
isort = "^6.0.1"
bandit = "^1.8.0"
coverage = "^7.6.0"
pytest-asyncio = "^1.3.0"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.6.0"
mkdocs-material = "^9.5.0"
mkdocs-mermaid2-plugin = "^1.1.0"
mkdocs-awesome-pages-plugin = "^2.9.0"
mkdocs-git-revision-date-localized-plugin = "^1.2.0"
pymdown-extensions = "^11.0.0"
[build-system]
requires = ["maturin>=1.0,<2.0"]
build-backend = "maturin"
[tool.maturin]
module-name = 'velithon._velithon'
bindings = 'pyo3'
[[tool.mypy.overrides]]
module = [
"granian.*",
"orjson.*",
"pydash.*",
"zeroconf.*",
"consul.*",
]
ignore_missing_imports = true
[tool.coverage.run]
source = ["velithon"]
omit = [
"*/tests/*",
"*/benchmarks/*",
"*/__pycache__/*",
"*/target/*",
"*/build/*",
"*/dist/*",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
]
[tool.black]
line-length = 88
target-version = ['py310']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
| target
)/
'''
[tool.isort]
profile = "black"
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
line_length = 88
known_first_party = ["velithon"]