forked from aminalaee/sqladmin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
148 lines (128 loc) · 3.34 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "sqladmin-litestar"
description = 'SQLAlchemy admin for Litestar'
readme = "README.md"
requires-python = ">=3.8"
license = "BSD-3-Clause"
keywords = ["sqlalchemy", "litestar", "admin"]
authors = [
{ name = "Amin Alaee", email = "me@aminalaee.dev" },
{ name = "Cemrehan Çavdar", email = "cemrehancavdar@hotmail.com" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"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",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Topic :: Internet :: WWW/HTTP",
"Operating System :: OS Independent",
]
dependencies = [
"litestar",
"sqlalchemy >=1.4",
"wtforms >=3.1, <3.2",
"jinja2",
"python-multipart",
]
dynamic = ["version"]
[project.optional-dependencies]
full = ["itsdangerous"]
[project.urls]
Documentation = "https://aminalaee.dev/sqladmin"
Issues = "https://github.com/aminalaee/sqladmin/issues"
Source = "https://github.com/aminalaee/sqladmin"
[tool.hatch.version]
path = "sqladmin/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["/sqladmin"]
[tool.hatch.build.targets.sdist]
include = ["/sqladmin"]
[tool.hatch.build]
exclude = ["tests/*"]
[tool.hatch.envs.test]
dependencies = [
"aiosqlite==0.19.0",
"arrow==1.3.0",
"asyncpg==0.29.0",
"babel==2.13.1",
"build==1.0.3",
"colour==0.1.5",
"coverage==7.3.2",
"email-validator==2.1.0",
"fastapi-storages==0.1.0",
"greenlet==3.0.1",
"httpx==0.25.1",
"itsdangerous==2.1.2",
"phonenumbers==8.13.24",
"pillow==10.1.0",
"psycopg2-binary==2.9.9",
"pytest==7.4.2",
"python-dateutil==2.8.2",
"sqlalchemy_utils==0.41.1",
]
[[tool.hatch.envs.test.matrix]]
python = ["38", "39", "310", "311", "3.12"]
[tool.hatch.envs.lint]
dependencies = [
"mypy==1.8.0",
"ruff==0.1.5",
"sqlalchemy~=1.4", # MyPy issues with SQLAlchemy V2
]
[tool.hatch.envs.docs]
dependencies = [
"mkdocs-material==9.1.3",
"mkdocs==1.4.2",
"mkdocstrings[python]==0.20.0",
]
[tool.hatch.envs.test.scripts]
cov = [
"coverage report --show-missing --skip-covered --fail-under=99",
"coverage xml",
]
test = "coverage run -a --concurrency=thread,greenlet -m pytest {args}"
[tool.hatch.envs.lint.scripts]
check = ["ruff .", "ruff format --check .", "mypy sqladmin"]
format = ["ruff format .", "ruff --fix ."]
[tool.hatch.envs.docs.scripts]
build = "mkdocs build"
serve = "mkdocs serve --dev-addr localhost:8080"
deploy = "mkdocs gh-deploy --force"
[[tool.hatch.envs.test.matrix]]
sqlalchemy = ["1.4", "2.0"]
[tool.hatch.envs.test.overrides]
matrix.sqlalchemy.dependencies = [
{ value = "sqlalchemy==1.4.41", if = [
"1.4",
] },
{ value = "sqlmodel==0.0.8", if = [
"1.4",
] },
{ value = "sqlalchemy==2.0", if = [
"2.0",
] },
]
[tool.mypy]
disallow_untyped_defs = true
ignore_missing_imports = true
show_error_codes = true
[tool.ruff]
select = ["E", "F", "I"]
[tool.coverage.run]
source_pkgs = ["sqladmin", "tests"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"pragma: nocover",
"except NotImplementedError",
"raise NotImplementedError",
"if TYPE_CHECKING:",
]