-
Notifications
You must be signed in to change notification settings - Fork 403
/
pyproject.toml
148 lines (133 loc) · 3.53 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
[project]
name = "asyncpg"
description = "An asyncio PostgreSQL driver"
authors = [{name = "MagicStack Inc", email = "[email protected]"}]
requires-python = '>=3.8.0'
readme = "README.rst"
license = {text = "Apache License, Version 2.0"}
dynamic = ["version"]
keywords = [
"database",
"postgres",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3 :: Only",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Database :: Front-Ends",
]
dependencies = [
'async_timeout>=4.0.3; python_version < "3.11.0"',
]
[project.urls]
github = "https://github.com/MagicStack/asyncpg"
[project.optional-dependencies]
gssauth = [
'gssapi; platform_system != "Windows"',
'sspilib; platform_system == "Windows"',
]
test = [
'flake8~=6.1',
'flake8-pyi~=24.1.0',
'distro~=1.9.0',
'uvloop>=0.15.3; platform_system != "Windows" and python_version < "3.14.0"',
'gssapi; platform_system == "Linux"',
'k5test; platform_system == "Linux"',
'sspilib; platform_system == "Windows"',
'mypy~=1.8.0',
]
docs = [
'Sphinx~=8.1.3',
'sphinx_rtd_theme>=1.2.2',
]
[build-system]
requires = [
"setuptools>=60",
"wheel",
"Cython(>=0.29.24,<4.0.0)"
]
build-backend = "setuptools.build_meta"
[tool.setuptools]
zip-safe = false
[tool.setuptools.packages.find]
include = ["asyncpg", "asyncpg.*"]
[tool.setuptools.exclude-package-data]
"*" = ["*.c", "*.h"]
[tool.cibuildwheel]
build-frontend = "build"
test-extras = "test"
[tool.cibuildwheel.macos]
before-all = ".github/workflows/install-postgres.sh"
test-command = "python {project}/tests/__init__.py"
[tool.cibuildwheel.windows]
test-command = "python {project}\\tests\\__init__.py"
[tool.cibuildwheel.linux]
before-all = """
.github/workflows/install-postgres.sh \
&& .github/workflows/install-krb5.sh \
"""
test-command = """\
PY=`which python` \
&& chmod -R go+rX "$(dirname $(dirname $(dirname $PY)))" \
&& su -l apgtest -c "$PY {project}/tests/__init__.py" \
"""
[tool.pytest.ini_options]
addopts = "--capture=no --assert=plain --strict-markers --tb=native --import-mode=importlib"
testpaths = "tests"
filterwarnings = "default"
[tool.coverage.run]
branch = true
plugins = ["Cython.Coverage"]
parallel = true
source = ["asyncpg/", "tests/"]
omit = ["*.pxd"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if debug",
"raise NotImplementedError",
"if __name__ == .__main__.",
]
show_missing = true
[tool.mypy]
exclude = [
"^.eggs",
"^.github",
"^.vscode",
"^build",
"^dist",
"^docs",
"^tests",
]
incremental = true
strict = true
implicit_reexport = true
[[tool.mypy.overrides]]
module = [
"asyncpg._testbase",
"asyncpg._testbase.*",
"asyncpg.cluster",
"asyncpg.connect_utils",
"asyncpg.connection",
"asyncpg.connresource",
"asyncpg.cursor",
"asyncpg.exceptions",
"asyncpg.exceptions.*",
"asyncpg.pool",
"asyncpg.prepared_stmt",
"asyncpg.transaction",
"asyncpg.utils",
]
ignore_errors = true