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
# This file configures wheels compilation for `cibuilwheel` for StringZilla CPython bindings.
# On a good day it will produce:
# - `manylinux` and `musllinux` wheels for Linux on x86_64, aarch64, i686, ppc64le, s390x;
# - `macos` wheels for x86_64, arm64, and universal2;
# - `windows` wheels for AMD64, x86, and ARM64.
# * for Python versions from 3.6 to 3.12.
# * running over 5,000 tests on each wheel.
# = meaning 16 platforms * 7 Python versions = 112 builds.
# = meaning over 500,000 tests.
[]
= ["setuptools>=42", "wheel", "cmake>=3.22"]
= "setuptools.build_meta"
[]
= "6.0"
= ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
= true
= ["error"]
[]
= ["pytest", "pytest-repeat"]
= "pytest {project}/scripts/test.py -x"
= 0
# We need to build for all platforms:
# - on Linux: x86_64, aarch64, i686, ppc64le, s390x
# - on MacOS: x86_64, arm64, universal2
# - on Windows: AMD64, x86, ARM64
# https://cibuildwheel.readthedocs.io/en/stable/options/#archs
#
# Important to note, not all those paltforms have recent images.
# The `manylinux_2_28` seems to be missing for `i686`.
# The `i686` is 32-bit x86, and `x86_64` is 64-bit x86.
= ["all"]
# Add "pp*" to skip PyPy builds, but they should work fine these days :)
# https://cibuildwheel.readthedocs.io/en/stable/options/#build-skip
# https://cibuildwheel.readthedocs.io/en/stable/#what-does-it-do
= []
[]
= ["rm -rf {project}/build"]
= "auditwheel repair --lib-sdir . -w {dest_dir} {wheel}"
# Use more recent images for the most popular SIMD-capable CPU architectures, to have access to newer compilers.
# Otherwise, prepare yourself to all kinds of AVX-512 issues and other SIMD-related pain.
# You can keep track of the most recent images on Quay:
# - for `manylinux`: https://quay.io/search?q=manylinux
# - for `musllinux`: https://quay.io/search?q=musllinux
= "manylinux_2_28"
= "manylinux_2_28"
= "manylinux_2_28"
= "manylinux_2_28"
= "musllinux_1_2"
= "musllinux_1_2"
= "musllinux_1_2"
= "musllinux_1_2"
= "musllinux_1_2"
# On CentOS we have to use `yum`.
# The healthy version would be: `apt-get update && apt-get install -y libc6-dev wget python3-dev`.
= ["yum update -y && yum install -y glibc-devel wget python3-devel"]
# With `musl` builds, we obviously don't need the `glibc` and can't use `yum`.
# This may also be handy for using custom dependencies for different Python versions:
# https://cibuildwheel.readthedocs.io/en/stable/options/#overrides
[[]]
= "*-musllinux*"
= "apk add --update wget python3-dev"
[]
= ["rm -rf {project}/build"]
= "delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}"
[]
= ["rd /s /q {project}\\build || echo Done"]