-
Notifications
You must be signed in to change notification settings - Fork 233
/
pyproject.toml
109 lines (91 loc) · 2.52 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
[build-system]
requires = ["setuptools >=61", "wheel", "Cython >=3.0.5"]
[project]
name = "aiokafka"
description = "Kafka integration with asyncio"
readme = "README.rst"
requires-python = ">=3.8"
license = { file = "LICENSE" }
authors = [
{ name = "Andrew Svetlov", email = "[email protected]" },
]
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"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",
"Operating System :: OS Independent",
"Topic :: System :: Networking",
"Topic :: System :: Distributed Computing",
"Framework :: AsyncIO",
"Development Status :: 4 - Beta",
]
dynamic = ["version"]
dependencies = [
"async-timeout",
"packaging",
]
[project.optional-dependencies]
snappy = ["cramjam"]
# v2.8.0 adds support for independent-block mode
lz4 = ["cramjam >=2.8.0"]
zstd = ["cramjam"]
gssapi = ["gssapi"]
all = ["cramjam >=2.8.0", "gssapi"]
[tool.setuptools.dynamic]
version = { attr = "aiokafka.__version__" }
[tool.setuptools]
include-package-data = false
[tool.setuptools.packages.find]
include = [
"aiokafka",
"aiokafka.*",
]
[project.urls]
Documentation = "http://aiokafka.readthedocs.org"
Source = "https://github.com/aio-libs/aiokafka"
Changes = "https://github.com/aio-libs/aiokafka/blob/master/CHANGES.rst"
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
addopts = ["--strict-config", "--strict-markers"]
markers = [
"ssl: Tests that require SSL certificates to run",
]
filterwarnings = [
"error",
# FIXME Until we fix socket leaks in tests
"default:unclosed event loop:ResourceWarning",
]
[tool.coverage.run]
branch = true
source_pkgs = ["aiokafka", "tests"]
[tool.coverage.report]
show_missing = true
skip_covered = true
skip_empty = true
[tool.ruff]
target-version = "py38"
line-length = 88
# For the reference, check https://beta.ruff.rs/docs/rules/
select = [
"F", # pyflakes
"E", "W", # pycodestyle
"I", # isort
]
[tool.ruff.format]
docstring-code-format = true
[tool.mypy]
python_version = "3.8"
ignore_missing_imports = true
check_untyped_defs = true
disallow_any_generics = true
disallow_untyped_defs = true
strict_equality = true
warn_redundant_casts = true
warn_unused_ignores = true
follow_imports = "silent" # FIXME Remove after adding annotations