-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathpyproject.toml
More file actions
121 lines (110 loc) · 3.06 KB
/
pyproject.toml
File metadata and controls
121 lines (110 loc) · 3.06 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
[project]
name = "aiotieba"
version = "4.6.5a6"
description = "Asynchronous I/O Client for Baidu Tieba"
authors = [{ name = "lumina37", email = "starry.qvq@gmail.com" }]
urls = { Repository = "https://github.com/lumina37/aiotieba/", Documentation = "https://aiotieba.cc/" }
readme = "README.md"
keywords = ["baidu", "tieba"]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"License :: OSI Approved :: The Unlicense (Unlicense)",
"Operating System :: OS Independent",
"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",
"Topic :: Internet :: WWW/HTTP :: Session",
]
requires-python = ">=3.10,<3.15"
dependencies = [
"aiohttp>=3.11.0,<4;python_version>='3.10' and python_version<'3.14'",
"aiohttp>=3.13.0,<4;python_version>='3.14'",
"beautifulsoup4>=4.7.1,<5",
"lxml>=4.6.4,<7;python_version=='3.10'",
"lxml>=4.9.2,<7;python_version=='3.11'",
"lxml>=4.9.3,<7;python_version=='3.12'",
"lxml>=5.3.0,<7;python_version=='3.13'",
"lxml>=6.0.1,<7;python_version>='3.14'",
"protobuf>=4.21.1,<8",
"cryptography>=35.0.0,<47",
"async-timeout>=4.0,<6;python_version=='3.10'",
"StrEnum>=0.4.0,<0.5;python_version=='3.10'",
]
[project.optional-dependencies]
img = [
"opencv-contrib-python-headless>=4.6.0.66,<5;sys_platform=='linux'",
"opencv-contrib-python>=4.6.0.66,<5;sys_platform!='linux'",
]
speedup = [
"orjson>=3.4.7,<4;python_version=='3.10'",
"orjson>=3.7.10,<4;python_version=='3.11'",
"orjson>=3.9.10,<4;python_version=='3.12'",
"orjson>=3.10.7,<4;python_version=='3.13'",
"orjson>=3.11.1,<4;python_version>='3.14'",
]
[dependency-groups]
dev = ["pytest==9.0.3", "pytest-asyncio==1.3.0", "pytest-rerunfailures==16.1"]
docs = ["mkdocs-material", "mkdocstrings[python]"]
[build-system]
requires = ["scikit-build-core>=0.12.2,<0.13"]
build-backend = "scikit_build_core.build"
[tool.uv]
managed = true
[tool.scikit-build]
sdist.exclude = ["*.proto", ".*", "docs", "scripts", "tests", "mkdocs.yml"]
wheel.exclude = ["*.c", "*.h", "*.txt"]
[[tool.scikit-build.generate]]
path = "aiotieba/__version__.py"
template = '''__version__ = "${version}"'''
[tool.cibuildwheel]
build = "cp310* cp311* cp312* cp313* cp314* pp310* pp311*"
skip = "*-win32 *_i686 *_s390x *_ppc64le"
enable = ["pypy"]
build-frontend = "uv"
[tool.ruff]
line-length = 120
target-version = "py310"
preview = true
[tool.ruff.lint]
select = [
"F",
"E",
"W",
"I",
"UP",
"YTT",
"ASYNC",
"B",
"A",
"C4",
"FA",
"ICN",
"LOG",
"G",
"PIE",
"T20",
"PT",
"Q",
"RSE",
"SLOT",
"TC",
"PTH",
"NPY",
"PERF",
"FURB",
]
ignore = ["A005", "E402", "E501", "E266"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"]
"typing.py" = ["F401"]
"*_pb2.py" = ["F401"]
[tool.pytest.ini_options]
addopts = "-q"
testpaths = ["tests"]
required_plugins = "pytest-asyncio pytest-rerunfailures"
asyncio_mode = "strict"
asyncio_default_fixture_loop_scope = "function"