File: pyproject.toml

package info (click to toggle)
pycurl 7.45.7-4
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,780 kB
  • sloc: python: 8,663; ansic: 6,891; makefile: 202; sh: 183
file content (70 lines) | stat: -rw-r--r-- 2,590 bytes parent folder | download | duplicates (2)
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
[tool.cibuildwheel]
build = "cp3*"
skip = ["cp38-*", "*-musllinux*"]
manylinux-aarch64-image = "manylinux_2_28"
manylinux-x86_64-image = "manylinux_2_28"
build-frontend = "build"
build-verbosity = 1
test-command = "pytest -v -ra {project}/tests"

[tool.cibuildwheel.linux]
before-all = [
    "dnf install -y git zip perl-IPC-Cmd perl-Time-Piece",
    "dnf copr enable -y swt2c/vcpkg-epel8",
    "dnf install -y vcpkg",
    "export VCPKG_ROOT=$HOME/.local/share/vcpkg",
    "git clone https://github.com/microsoft/vcpkg.git $VCPKG_ROOT",
    "vcpkg install curl[brotli,core,gssapi,http2,non-http,openssl,ssh] --triplet=$VCPKG_TRIPLET",
]
before-test = [
    "pip install flake8 -r requirements-dev.txt",
    "make -C {package}/tests/fake-curl/libcurl",
]
repair-wheel-command = "LD_LIBRARY_PATH=$VCPKG_ROOT/installed/$VCPKG_TRIPLET/lib auditwheel repair -w {dest_dir} {wheel}"

[tool.cibuildwheel.linux.environment]
VCPKG_ROOT = "$HOME/.local/share/vcpkg"
VCPKG_FORCE_SYSTEM_BINARIES = "true"
PATH = "$VCPKG_ROOT/installed/$VCPKG_TRIPLET/tools/curl/bin:$PATH"
PYCURL_AUTODETECT_CA = "true"

[[tool.cibuildwheel.overrides]]
select = "cp*-manylinux_x86_64"
inherit.environment = "prepend"
environment.VCPKG_TRIPLET = "x64-linux-dynamic"

[[tool.cibuildwheel.overrides]]
select = "cp*-manylinux_aarch64"
inherit.environment = "prepend"
environment.VCPKG_TRIPLET = "arm64-linux-dynamic"

[tool.cibuildwheel.macos]
before-all = [
    "if ! which vcpkg >/dev/null 2>&1; then brew install vcpkg && git clone https://github.com/microsoft/vcpkg.git $HOME/vcpkg; fi",
    "vcpkg install curl[brotli,core,http2,non-http,openssl,ssh] --triplet=$VCPKG_TRIPLET",
]
before-test = [
    "pip install flake8 -r requirements-dev.txt",
    "make -C {package}/tests/fake-curl/libcurl",
]
repair-wheel-command = "DYLD_LIBRARY_PATH=$VCPKG_ROOT/installed/$VCPKG_TRIPLET/lib delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"

[tool.cibuildwheel.macos.environment]
PYCURL_CURL_CONFIG = "$VCPKG_ROOT/installed/$VCPKG_TRIPLET/tools/curl/bin/curl-config"
PYCURL_SSL_LIBRARY = "openssl"

[[tool.cibuildwheel.overrides]]
select = "cp*-macosx_x86_64"
inherit.environment = "prepend"
environment.VCPKG_ROOT = "/usr/local/share/vcpkg"
environment.VCPKG_TRIPLET = "x64-osx-dynamic"

[[tool.cibuildwheel.overrides]]
select = "cp*-macosx_arm64"
inherit.environment = "prepend"
environment.VCPKG_ROOT = "/usr/local/share/vcpkg"
environment.VCPKG_TRIPLET = "arm64-osx-dynamic"

[tool.cibuildwheel.windows]
before-build = "pip install delvewheel"
before-test = "pip install flake8 -r requirements-dev.txt"