-
-
Notifications
You must be signed in to change notification settings - Fork 269
/
pyproject.toml
142 lines (122 loc) · 3.78 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
140
141
142
[project]
name = "curl_cffi"
version = "0.8.0b7"
authors = [{ name = "Lyonnet", email = "[email protected]" }]
description = "libcurl ffi bindings for Python, with impersonation support."
license = { file = "LICENSE" }
dependencies = [
"cffi>=1.12.0",
"certifi>=2024.2.2",
]
readme = "README.md"
requires-python = ">=3.8"
urls = { "repository" = "https://github.com/lexiforest/curl_cffi" }
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"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",
"Programming Language :: Python :: 3.13",
]
[project.optional-dependencies]
dev = [
"charset_normalizer>=3.3.2,<4.0",
"coverage>=6.4.1,<7.0",
"cryptography>=42.0.5,<43.0",
"httpx==0.23.1", # don't change, tests will raise "httpx.InvalidURL: Invalid URL component 'path'"
"mypy>=1.9.0,<2.0",
"pytest>=8.1.1,<9.0",
"pytest-asyncio>=0.23.6,<1.0",
"pytest-trio>=0.8.0,<1.0",
"ruff>=0.3.5,<1.0",
"trio>=0.25.0,<1.0",
"trustme>=1.1.0,<2.0",
"uvicorn>=0.29.0,<1.0",
"websockets>=12.0,<13.0",
"typing_extensions",
]
build = [
"cibuildwheel",
"wheel",
]
test = [
"charset_normalizer>=3.3.2,<4.0",
"cryptography>=42.0.5,<43.0",
"fastapi==0.110.0,<1.0",
"httpx==0.23.1", # don't change, tests will raise "httpx.InvalidURL: Invalid URL component 'path'"
"proxy.py>=2.4.3,<3.0",
"pytest>=8.1.1,<9.0",
"pytest-asyncio>=0.23.6,<1.0",
"pytest-trio>=0.8.0,<1.0",
"python-multipart>=0.0.9,<1.0",
"trio>=0.25.0,<1.0",
"trustme>=1.1.0,<2.0",
"uvicorn>=0.29.0,<1.0",
"websockets>=12.0,<13.0",
"typing_extensions",
]
[build-system]
requires = ["wheel", "setuptools", "cffi>=1.12.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["curl_cffi", "curl_cffi.requests"]
package-data = { curl_cffi = ["libcurl.dll"] }
[tool.cibuildwheel]
# musllinux(alpine) is not supported because we download the binaries from upstream.
# TODO build binaries inside musllinux/manylinux
# skip = ["*-musllinux_*", "*-win32", "*-manylinux_i686"]
# Building for these platforms is enough since we are using abi3 packages
build = [
"cp38-macosx_x86_64",
"cp39-macosx_arm64",
"cp38-win_amd64",
"cp38-win32",
"cp38-manylinux_x86_64",
"cp38-manylinux_aarch64",
"cp38-manylinux_i686",
"cp38-musllinux_x86_64",
"cp38-musllinux_aarch64",
]
before-all = "make preprocess"
test-requires = "pytest"
test-command = "python -bb -m pytest {project}/tests/unittest"
test-extras = ["test"]
test-skip = "cp38-manylinux_i686" # trustme not available
build-verbosity = 1
# configure cibuildwheel to build native archs ('auto'), and some emulated ones
[tool.cibuildwheel.linux]
archs = ["auto", "aarch64"]
environment = { LD_LIBRARY_PATH="$HOME/.local/lib" }
environment-pass = ["LD_LIBRARY_PATH"]
[tool.cibuildwheel.macos]
before-all = "gmake preprocess"
[tool.cibuildwheel.windows]
before-build = "pip install delvewheel"
repair-wheel-command = "delvewheel repair --add-path ./lib64;./lib32 -w {dest_dir} {wheel}"
[tool.pytest.ini_options]
# pythonpath = [ "." ]
asyncio_mode = "auto"
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # Pyflakes
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
]
[tool.isort]
profile = "black"
line_length = 100
[tool.mypy]
python_version = "3.8"
ignore_missing_imports = true
#warn_unused_ignores = true
#strict = true
exclude = ["benchmark/", "docs/", "examples/", "scripts/", "tests/", "build/"]