-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
227 lines (191 loc) · 5.63 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "edgy"
description = "🔥 The perfect ORM to work with complex databases 🔥"
long_description = "🔥 The perfect ORM to work with complex databases 🔥"
readme = "README.md"
requires-python = ">=3.9"
dynamic = ['version']
authors = [{ name = "Tiago Silva", email = "[email protected]" }]
classifiers = [
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python",
"Topic :: Database",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development",
"Typing :: Typed",
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Environment :: Console",
"Environment :: Other Environment",
"Framework :: AsyncIO",
"Framework :: AnyIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"monkay>=0.2.1",
"orjson",
"alembic>=1.11.3,<2.0.0",
"click>=8.1.3,<9.0.0",
"databasez>=0.10.3",
"loguru>=0.7.0,<0.10.0",
"pydantic>=2.5.3,<3.0.0",
"pydantic-settings>=2.0.0,<3.0.0",
"rich>=13.3.1,<14.0.0",
"blinker>=1.8,<2.0",
]
keywords = [
"api",
"rest",
"http",
"asgi",
"pydantic",
"starlette",
"fastapi",
"framework",
"esmerald",
"orm",
]
[project.urls]
Homepage = "https://github.com/dymmond/edgy"
Documentation = "https://edgy.dymmond.com"
Changelog = "https://edgy.dymmond.com/release-notes/"
Funding = "https://github.com/sponsors/tarsil"
Source = "https://github.com/dymmond/edgy"
[project.scripts]
edgy = "edgy.__main__:run_cli"
[project.optional-dependencies]
# we need it anyway in databasez
test = ["sqlalchemy_utils>=0.41.1"]
testing = [
"anyio>=4.0.0,<5",
"asyncpg>=0.27.0,<1",
"asyncmy>=0.2.7,<0.3.0",
"esmerald[test]>=3.2.0",
"pytest-timeout",
"ipdb",
"pytest-mock",
"mypy==1.10;python_version < '3.10'",
"mypy[faster-cache]>=1.13,<2.0; python_version >= '3.10'",
"httpx",
"types-orjson==3.6.2",
]
mime = ["python-magic"]
image = ["pillow"]
postgres = ["databasez[postgresql]"]
mysql = ["databasez[mysql]"]
sqlite = ["databasez[sqlite]"]
mssql = ["databasez[aioodbc]"]
jdbc = ["databasez[jdbc]"]
# all except testing
all = ["edgy[test,mime,image,postgres,mysql,sqlite,mssql,jdbc]", "ipython", "ptpython"]
[tool.hatch.envs.default]
dependencies = ["pre-commit>=4.0.0,<5.0.0", "edgy[sqlite]"]
[tool.hatch.envs.default.scripts]
clean_pyc = "find . -type f -name \"*.pyc\" -delete"
clean_pycache = "find . -type d -name \"*__pycache__*\" -delete"
lint = "hatch fmt {args}; hatch run test:check_types"
[tool.hatch.envs.docs]
dependencies = [
"griffe-typingdoc>=0.2.2",
"mkautodoc>=0.2.0,<0.3.0",
"mkdocs>=1.1.2,<2.0.0",
"mkdocs-material>=9.4.4,<10.0.0",
"mdx-include>=1.4.2,<2.0.0",
"mkdocs-macros-plugin>=1.0.0,<2.0.0",
"mkdocs-meta-descriptions-plugin>=2.3.0",
"mkdocstrings[python]>=0.23.0,<0.30.0",
"pyyaml>=6.0,<7.0.0",
# for signature cleaning
"ruff"
]
[tool.hatch.envs.docs.scripts]
build = "mkdocs build {args}"
serve = "mkdocs serve --dev-addr localhost:8000"
[tool.hatch.envs.test]
# required for cli tests and check_types
features = ["all", "testing"]
# for typings
extra-dependencies = ["pydantic>=2.10.1"]
[tool.hatch.envs.test.env-vars]
EDGY_TESTCLIENT_TEST_PREFIX = ""
EDGY_TESTCLIENT_USE_EXISTING = "true"
[tool.hatch.envs.test.scripts]
check_types = "mypy -p edgy {args}"
[tool.hatch.envs.hatch-test]
# needs docker services running
features = ["all", "testing"]
[tool.hatch.envs.hatch-test.env-vars]
EDGY_TESTCLIENT_TEST_PREFIX = ""
EDGY_TESTCLIENT_USE_EXISTING = "true"
[tool.hatch.version]
path = "edgy/__init__.py"
[tool.mypy]
plugins = [
"pydantic.mypy"
]
strict = true
warn_unused_configs = true
warn_unreachable = true
warn_return_any = true
disallow_untyped_decorators = true
disallow_any_generics = false
implicit_reexport = false
show_error_codes = true
disallow_incomplete_defs = true
disable_error_code = "attr-defined,has-type,override,misc,safe-super"
warn_unused_ignores = true
warn_redundant_casts = true
no_implicit_optional = false
strict_equality = false
strict_optional = false
[tool.ruff]
line-length = 99
fix = true
[tool.ruff.lint]
select = ["E", "W", "F", "C", "B", "I", "UP", "SIM"]
ignore = ["E501", "B008", "C901", "B026", "SIM115"]
exclude = ["docs_src/*", ".pdbrc"]
[tool.ruff.lint.isort]
known-third-party = ["esmerald", "pydantic", "starlette", "databasez"]
[tool.ruff.lint.pyupgrade]
keep-runtime-typing = true
[tool.ruff.lint.pycodestyle]
max-line-length = 99
max-doc-length = 120
[[tool.mypy.overrides]]
module = "edgy.tests.*"
ignore_missing_imports = true
check_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"sqlalchemy.*",
"asyncpg",
"alembic",
"ptpython.*",
]
ignore_missing_imports = true
ignore_errors = true
[[tool.mypy.overrides]]
module = "docs_src.*"
ignore_errors = true
[tool.pytest.ini_options]
timeout = 30
addopts = ["--strict-config", "--strict-markers", "--pdbcls=IPython.terminal.debugger:Pdb"]
xfail_strict = true
junit_family = "xunit2"
[tool.hatch.build.targets.sdist]
include = ["/edgy"]