forked from aiokitchen/hasql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
176 lines (156 loc) · 3.92 KB
/
Copy pathpyproject.toml
File metadata and controls
176 lines (156 loc) · 3.92 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
[build-system]
requires = ["setuptools>=69", "wheel", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "hasql"
dynamic = ["version"]
description = "hasql is a module for acquiring actual connections with masters and replicas"
readme = { file = "README.rst", content-type = "text/x-rst" }
requires-python = ">=3.10"
license = { text = "Apache 2" }
authors = [
{ name = "Vladislav Bakaev", email = "vlad@bakaev.tech" },
{ name = "Dmitry Orlov", email = "me@mosquito.su" },
{ name = "Pavel Mosein", email = "me@pavkazzz.ru" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: Russian",
"Operating System :: MacOS",
"Operating System :: Microsoft",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"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 :: Python :: Implementation :: PyPy",
"Programming Language :: Python",
]
dependencies = ["packaging"]
[dependency-groups]
aiopg = ["aiopg"]
aiopg_sa = ["aiopg[sa]"]
asyncpg = ["asyncpg"]
asyncpgsa = ["asyncpgsa"]
psycopg = ["psycopg[pool]>=3,<4"]
test = [
"async_timeout",
"psycopg[pool]>=3.0,<4",
"aiopg[sa]~=1.4.0",
"asyncpg~=0.30.0",
"pytest~=8.2.0",
"pytest-cov~=3.0.0",
"pytest-asyncio~=0.26.0",
"aiomisc~=17.7.7",
"aiomisc-pytest~=1.2.1",
"mock~=5.2",
"sqlalchemy[asyncio]~=1.4.27",
]
develop = [
"async_timeout",
"psycopg[pool]>=3.0,<4",
"aiopg[sa]~=1.4.0",
"asyncpg~=0.30.0",
"pytest~=8.2.0",
"pytest-cov~=3.0.0",
"pytest-asyncio~=0.26.0",
"aiomisc~=17.7.7",
"aiomisc-pytest~=1.2.1",
"mock~=5.2",
"sqlalchemy[asyncio]~=1.4.27",
"mypy>=1.19",
"tox>=4.49",
"ruff>=0.15",
"twine",
"wheel",
"types-psycopg2",
]
[project.urls]
Source = "https://github.com/aiokitchen/hasql"
Tracker = "https://github.com/aiokitchen/hasql/issues"
Documentation = "https://github.com/aiokitchen/hasql/blob/master/README.rst"
[tool.setuptools.dynamic]
version = { attr = "hasql.version.__version__" }
[tool.setuptools.packages.find]
include = ["hasql*"]
[tool.setuptools.package-data]
hasql = ["py.typed"]
[tool.ruff]
line-length = 80
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"C90", # mccabe
"F", # pyflakes
]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = lint,mypy,py3{10,11,12,13,14}{,-uvloop}
[testenv]
passenv =
COVERALLS_*
FORCE_COLOR
PG_DSN
allowlist_externals = coveralls
dependency_groups =
test
commands=
pytest -vv \
--cov=hasql --cov-report=term-missing \
--doctest-modules \
--aiomisc-test-timeout=30 \
tests
- coveralls
[testenv:lint]
allowlist_externals = ruff
skip_install = true
deps =
ruff
commands=
ruff check hasql tests
[testenv:mypy]
allowlist_externals = mypy
basepython = python3.10
package = editable
dependency_groups =
test
deps =
mypy==1.17.1
commands =
mypy --install-types --non-interactive hasql tests
"""
[tool.pytest.ini_options]
filterwarnings = [
"ignore::DeprecationWarning",
]
python_classes = "TestSuite*"
asyncio_mode = "auto"
[tool.mypy]
check_untyped_defs = false
disallow_any_generics = false
disallow_incomplete_defs = false
disallow_subclassing_any = false
disallow_untyped_calls = false
disallow_untyped_decorators = false
disallow_untyped_defs = false
follow_imports = "silent"
no_implicit_reexport = true
strict_optional = true
warn_redundant_casts = true
warn_unused_configs = true
warn_unused_ignores = true
[[tool.mypy.overrides]]
module = ["tests.*"]
ignore_errors = true
[[tool.mypy.overrides]]
module = ["sqlalchemy.*"]
ignore_missing_imports = true