forked from MagicStack/asyncpg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
104 lines (90 loc) · 2.6 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
[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.12.0"'
]
[project.urls]
github = "https://github.com/MagicStack/asyncpg"
[project.optional-dependencies]
test = [
'flake8~=6.1',
'uvloop>=0.15.3; platform_system != "Windows" and python_version < "3.12.0"',
]
docs = [
'Sphinx~=5.3.0',
'sphinxcontrib-asyncio~=0.3.0',
'sphinx_rtd_theme>=1.2.2',
]
[build-system]
requires = [
"setuptools>=60",
"wheel",
"Cython(>=0.29.24,<3.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]
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"
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