forked from lexiforest/curl_cffi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
100 lines (87 loc) · 2.64 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
[project]
name = "curl_cffi"
version = "0.5.6"
authors = [{ name = "Yifei Kong", email = "kong@yifei.me" }]
description = "libcurl ffi bindings for Python, with impersonation support"
license = { file = "LICENSE" }
dependencies = ["cffi>=1.12.0"]
readme = "README.md"
requires-python = ">=3.7"
urls = { "repository" = "https://github.com/yifeikong/curl_cffi" }
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"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",
]
[project.optional-dependencies]
dev = [
"autoflake==1.4",
"black==22.8.0",
"coverage==6.4.1",
"cryptography==38.0.3",
"flake8==6.0.0",
"flake8-bugbear==22.7.1",
"flake8-pie==0.15.0",
"httpx==0.23.1",
"isort==5.10.1",
"mypy==0.971",
"types-certifi==2021.10.8.2",
"pytest==7.1.2",
"pytest-asyncio==0.19.0",
"pytest-trio==0.7.0",
"trio==0.21.0",
"trio-typing==0.7.0",
"trustme==0.9.0",
"uvicorn==0.18.3",
]
build = [
"cibuildwheel",
"wheel"
]
test = [
"cryptography==38.0.3",
"httpx==0.23.1",
"types-certifi==2021.10.8.2",
"pytest==7.1.2",
"pytest-asyncio==0.19.0",
"pytest-trio==0.7.0",
"trio==0.21.0",
"trio-typing==0.7.0",
"trustme==0.9.0",
"uvicorn==0.18.3",
]
[tool.setuptools]
packages = ["curl_cffi", "curl_cffi.requests"]
# package-data = { curl_cffi = ["libcurl/*/*"] }
# include-package-data = true
[build-system]
requires = ["wheel", "setuptools", "cffi>=1.12.0"]
build-backend = "setuptools.build_meta"
[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 = ["cp37-macosx_x86_64", "cp37-win_amd64", "cp37-manylinux_x86_64", "cp37-manylinux_aarch64"]
before-all = "make preprocess"
test-requires = "pytest"
test-command = "pytest {project}/tests/unittest"
test-extras = ["test"]
test-skip = "pp*"
[tool.cibuildwheel.macos]
before-all = "gmake preprocess"
[tool.cibuildwheel.windows]
before-build = "pip install delvewheel"
repair-wheel-command = "delvewheel repair --add-path ./lib -w {dest_dir} {wheel}"
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
# pythonpath = [ "." ]
asyncio_mode = "auto"