-
-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Move non-package files out of curl_cffi directory - Consolidate library download and build to build.py - Store building targets to a json file --------- Co-authored-by: Yifei Kong <[email protected]>
- Loading branch information
Showing
6 changed files
with
148 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
recursive-include tests * | ||
|
||
include ffi/* | ||
include curl_cffi/_wrapper.* | ||
include curl_cffi/include/curl/* | ||
include include/curl/* | ||
include scripts/build.py | ||
include Makefile | ||
include libs.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
[ | ||
{ | ||
"system": "Windows", | ||
"machine": "AMD64", | ||
"pointer_size": 64, | ||
"libdir": "./lib64", | ||
"sysname": "win32", | ||
"so_name": "libcurl.dll", | ||
"so_arch": "x86_64" | ||
}, | ||
{ | ||
"system": "Windows", | ||
"machine": "AMD64", | ||
"pointer_size": 32, | ||
"libdir": "./lib32", | ||
"sysname": "win32", | ||
"so_name": "libcurl.dll", | ||
"so_arch": "i686" | ||
}, | ||
{ | ||
"system": "Darwin", | ||
"machine": "x86_64", | ||
"pointer_size": 64, | ||
"libdir": "/Users/runner/work/_temp/install/lib", | ||
"sysname": "macos", | ||
"so_name": "libcurl-impersonate-chrome.4.dylib", | ||
"so_arch": "x86_64" | ||
}, | ||
{ | ||
"system": "Darwin", | ||
"machine": "arm64", | ||
"pointer_size": 64, | ||
"libdir": "/Users/runner/work/_temp/install/lib", | ||
"sysname": "macos", | ||
"so_name": "libcurl-impersonate-chrome.4.dylib", | ||
"so_arch": "arm64" | ||
}, | ||
{ | ||
"system": "Linux", | ||
"machine": "x86_64", | ||
"pointer_size": 64, | ||
"libdir": "~/.local/lib", | ||
"sysname": "linux-gnu", | ||
"so_name": "libcurl-impersonate-chrome.so", | ||
"so_arch": "x86_64" | ||
}, | ||
{ | ||
"system": "Linux", | ||
"machine": "aarch64", | ||
"pointer_size": 64, | ||
"libdir": "~/.local/lib", | ||
"sysname": "linux-gnu", | ||
"so_name": "libcurl-impersonate-chrome.so", | ||
"so_arch": "aarch64" | ||
}, | ||
{ | ||
"system": "Linux", | ||
"machine": "armv6l", | ||
"pointer_size": 32, | ||
"libdir": "~/.local/lib", | ||
"sysname": "linux-gnu", | ||
"so_name": "libcurl-impersonate-chrome.so", | ||
"so_arch": "armv6l" | ||
}, | ||
{ | ||
"system": "Linux", | ||
"machine": "armv7l", | ||
"pointer_size": 32, | ||
"libdir": "~/.local/lib", | ||
"sysname": "linux-gnu", | ||
"so_name": "libcurl-impersonate-chrome.so", | ||
"so_arch": "armv7l" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ authors = [{ name = "Yifei Kong", email = "[email protected]" }] | |
description = "libcurl ffi bindings for Python, with impersonation support" | ||
license = { file = "LICENSE" } | ||
dependencies = [ | ||
"cffi >=1.12.0", | ||
"cffi>=1.12.0", | ||
"certifi", | ||
] | ||
readme = "README.md" | ||
|
@@ -27,14 +27,12 @@ classifiers = [ | |
[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", | ||
|
@@ -49,7 +47,7 @@ dev = [ | |
] | ||
build = [ | ||
"cibuildwheel", | ||
"wheel" | ||
"wheel", | ||
] | ||
test = [ | ||
"cryptography==38.0.3", | ||
|
@@ -68,20 +66,15 @@ test = [ | |
"fastapi==0.100.0", | ||
] | ||
|
||
[tool.ruff.lint] | ||
# Enable the isort rules. | ||
extend-select = ["I"] | ||
|
||
[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"] } | ||
# include-package-data = true | ||
|
||
|
||
[build-system] | ||
requires = ["wheel", "setuptools", "cffi>=1.12.0"] | ||
build-backend = "setuptools.build_meta" | ||
|
||
|
||
[tool.cibuildwheel] | ||
|
@@ -103,6 +96,7 @@ test-command = "python -bb -m pytest {project}/tests/unittest" | |
test-extras = ["test"] | ||
test-skip = "pp*" | ||
|
||
|
||
# configure cibuildwheel to build native archs ('auto'), and some emulated ones | ||
[tool.cibuildwheel.linux] | ||
archs = ["auto", "aarch64"] | ||
|
@@ -117,3 +111,8 @@ before-all = "gmake preprocess" | |
[tool.pytest.ini_options] | ||
# pythonpath = [ "." ] | ||
asyncio_mode = "auto" | ||
|
||
|
||
[tool.ruff.lint] | ||
# Enable the isort rules. | ||
extend-select = ["I"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters