-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathpyproject.toml
131 lines (121 loc) · 3.66 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
[project]
name = "aiotieba"
version = "4.5.1"
description = "Asynchronous I/O Client for Baidu Tieba"
authors = [{ name = "lumina37", email = "[email protected]" }]
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.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Internet :: WWW/HTTP :: Session",
]
requires-python = ">=3.9,<3.14"
dependencies = [
"aiohttp>=3.11.0,<4;python_version>='3.9' and python_version<'3.12'",
"aiohttp>=3.11.0,<4;python_version=='3.12'",
"aiohttp>=3.11.0,<4;python_version>='3.13'",
"beautifulsoup4>=4.5.2,<5;python_version=='3.9'",
"beautifulsoup4>=4.7.1,<5;python_version>='3.10'",
"lxml>=4.6.0,<6;python_version=='3.9'",
"lxml>=4.6.4,<6;python_version=='3.10'",
"lxml>=4.9.2,<6;python_version=='3.11'",
"lxml>=4.9.3,<6;python_version=='3.12'",
"lxml>=5.3.0,<6;python_version>='3.13'",
"protobuf>=4.21.1,<6",
"cryptography>=35.0.0,<41;python_version>='3.9' and python_version<'3.12'",
"cryptography>=35.0.0,<45;python_version>='3.12'",
"async-timeout>=4.0,<5;python_version<'3.11'",
"StrEnum>=0.4.0,<0.5;python_version<'3.11'",
]
[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>=2.2.0,<4;python_version=='3.9'",
"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'",
"uvloop>=0.15.0,<1.0;python_version=='3.9' and sys_platform!='win32'",
"uvloop>=0.16.0,<1.0;python_version=='3.10' and sys_platform!='win32'",
"uvloop>=0.17.0,<1.0;python_version=='3.11' and sys_platform!='win32'",
"uvloop>=0.18.0,<1.0;python_version=='3.12' and sys_platform!='win32'",
"uvloop>=0.21.0,<1.0;python_version>='3.13' and sys_platform!='win32'",
]
[build-system]
requires = ["scikit-build-core<0.11,>=0.8"]
build-backend = "scikit_build_core.build"
[tool.uv]
managed = true
dev-dependencies = [
"pytest==8.3.4",
"pytest-asyncio==0.25.0",
"pytest-rerunfailures==15.0",
"mkdocs-material",
"mkdocstrings[python]",
]
[tool.scikit-build]
sdist.exclude = ["*.proto", "*.md", ".*", "docs", "scripts", "tests", "mkdocs.yml"]
wheel.exclude = ["*.c", "*.h", "*.txt"]
[[tool.scikit-build.generate]]
path = "aiotieba/__version__.py"
template = '''__version__ = "${version}"'''
[tool.cibuildwheel]
build = "cp38-* cp39-* cp310-* cp311-* cp312-* cp313-* cp313t-* pp38-* pp39-* pp310-*"
skip = "*-win32 *_i686 *_s390x *_ppc64le"
enable = ["pypy", "cpython-freethreading"]
[tool.ruff]
line-length = 120
target-version = "py39"
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"