-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpyproject.toml
139 lines (122 loc) · 3.08 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
[project]
name = "asynctnt"
description = "A fast Tarantool Database connector for Python/asyncio."
authors = [
{ name = "igorcoding", email = "igorcoding@gmail.com" }
]
license = {text = "Apache License, Version 2.0"}
dynamic = ["version"]
classifiers=[
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"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',
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Database :: Front-Ends"
]
requires-python = '>=3.7.0'
readme = "README.md"
dependencies = [
'PyYAML >= 5.0',
]
[project.urls]
github = "https://github.com/igorcoding/asynctnt"
[project.optional-dependencies]
test = [
'isort',
'black',
'ruff',
'uvloop>=0.12.3; platform_system != "Windows" and platform.python_implementation != "PyPy"',
'pytest',
'pytest-cov',
'coverage[toml]',
'pytz',
'python-dateutil',
"Cython==3.0.11", # for coverage
]
docs = [
'Sphinx>=5',
'sphinx_rtd_theme',
'sphinxcontrib-asyncio',
'myst-parser',
'sphinx-autodoc-typehints',
'sphinx-autoapi',
]
[build-system]
requires = [
"setuptools>=60",
"wheel",
"Cython==3.0.11",
]
build-backend = "setuptools.build_meta"
[tool.setuptools]
zip-safe = false
[tool.setuptools.packages.find]
include = ["asynctnt", "asynctnt.*"]
[tool.setuptools.exclude-package-data]
"*" = ["*.c", "*.h"]
[tool.pytest.ini_options]
addopts = "--strict --tb native"
testpaths = "tests"
filterwarnings = "default"
[tool.coverage.run]
branch = true
plugins = ["Cython.Coverage"]
parallel = true
source = ["asynctnt/", "tests/"]
omit = [
"*.pxd",
"asynctnt/_testbase.py",
"asynctnt/instance.py",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"def __repr__",
"if self\\.debug",
"if debug",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.",
]
show_missing = true
[tool.coverage.html]
directory = "htmlcov"
[tool.black]
extend-exclude = '(env|.env|venv|.venv).*'
[tool.isort]
profile = "black"
multi_line_output = 3
skip_glob = [
"env*",
"venv*",
]
[tool.ruff]
lint.select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
# "I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
lint.ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
extend-exclude = [
"app/store/migrations",
]