Debian Codegraph @

pyproject.toml

raw
1 [build-system]
2 requires = ["Cython>=3.2.9,<3.3", "setuptools"]
3
4 [tool.cibuildwheel]
5 build-verbosity = 1
6 environment = {STATIC_DEPS="true", ZLIB_VERSION = "1.3.2", LIBICONV_VERSION = "1.18", LIBXML2_VERSION = "2.14.6", LIBXSLT_VERSION = "1.1.43"}
7 enable = [
8 "pypy",
9 "pypy-eol",
10 "cpython-prerelease",
11 ]
12 # "pypy"
13 # "cpython-prerelease"
14 # "cpython-freethreading"
15 skip = [
16 "cp36-*",
17 "pp36-",
18 "cp37-*",
19 "pp37-*",
20 "pp38-*",
21 "pp*-manylinux_i686",
22 "*-musllinux_i686",
23 "cp315*_i686",
24 # Py3.8 wheel for macos is not universal: https://bugs.launchpad.net/lxml/+bug/2055404
25 "cp38-macosx_universal2",
26 # Reduce job load and HTTP hit rate on library servers.
27 "cp38-*_aarch64",
28 "cp38-*_armv7l",
29
30 "cp38-*_ppc64le",
31 "cp39-*_ppc64le",
32 "cp310-*_ppc64le",
33 "cp311-*_ppc64le",
34
35 "cp38-*_riscv64",
36
37 "cp38-*_s390x",
38 "cp39-*_s390x",
39 ]
40 #test-command = "python {package}/test.py -vv"
41
42 [tool.cibuildwheel.linux]
43 #archs = ["x86_64", "aarch64", "i686", "ppc64le", "s390x", "armv7l"]
44 archs = ["x86_64", "aarch64", "i686", "ppc64le", "armv7l", "riscv64"]
45 repair-wheel-command = "auditwheel repair --strip -w {dest_dir} {wheel}"
46
47 [[tool.cibuildwheel.overrides]]
48 select = "*linux_*"
49 inherit.environment = "append"
50 environment.CFLAGS = "-O3 -g1 -pipe -fPIC -flto"
51 environment.AR = "gcc-ar"
52 environment.NM = "gcc-nm"
53 environment.RANLIB = "gcc-ranlib"
54 environment.LDFLAGS = "-fPIC -flto"
55 environment.STATIC_DEPS = "true"
56
57 [[tool.cibuildwheel.overrides]]
58 select = "*linux_i686"
59 inherit.environment = "append"
60 environment.CFLAGS = "-O3 -g1 -pipe -fPIC -flto -march=core2 -mtune=generic"
61
62 [[tool.cibuildwheel.overrides]]
63 select = "*linux_x86_64"
64 inherit.environment = "append"
65 environment.CFLAGS = "-O3 -g1 -pipe -fPIC -flto -march=core2 -mtune=generic"
66
67 [[tool.cibuildwheel.overrides]]
68 select = "*linux_aarch64"
69 inherit.environment = "append"
70 environment.CFLAGS = "-O3 -g1 -pipe -fPIC -flto -march=armv8-a -mtune=cortex-a72"
71
72 [tool.cibuildwheel.windows]
73 archs = ["AMD64", "x86"]
74 environment = {STATIC_DEPS="true", ZLIB_VERSION = "1.3.2", LIBICONV_VERSION = "1.17.1", LIBXML2_VERSION = "2.11.9", LIBXSLT_VERSION = "1.1.45"}
75
76 [tool.cibuildwheel.macos]
77 # https://cibuildwheel.readthedocs.io/en/stable/faq/#what-to-provide suggests to provide
78 # x86_64 and one of universal2 or arm64 wheels. x86_64 is still required by older pips,
79 # so additional arm64 wheels would suffice. However, since the library build uses a mixed
80 # amd64/arm64 setup, we build universal2 wheels regardless.
81 archs = ["x86_64", "universal2"]