Skip to content

Commit 45714f0

Browse files
jhalejorgensd
andauthored
Backports from release branch (#964)
* Backport fixes from release. * cibuildwheel stuff --------- Co-authored-by: Jørgen Schartum Dokken <[email protected]>
1 parent 32ea19d commit 45714f0

File tree

5 files changed

+269
-268
lines changed

5 files changed

+269
-268
lines changed

.github/workflows/build-wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || '');
6363
6464
- name: Build wheels
65-
uses: pypa/cibuildwheel@v2.21.3
65+
uses: pypa/cibuildwheel@v3.2.1
6666

6767
- name: Upload artifacts
6868
uses: actions/upload-artifact@v4

pyproject.toml

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ testpaths = ["test"]
3434
wheel.packages = ["python/basix"]
3535

3636
[tool.cibuildwheel]
37-
build-frontend = {name = "pip", args = ["--config-settings=wheel.py-api=cp312"] }
37+
build-frontend = { name = "pip", args = [
38+
"--config-settings=wheel.py-api=cp312",
39+
] }
3840
build = [
3941
"cp3{10,11,12,13}-manylinux_x86_64",
4042
"cp3{10,11,12,13}-manylinux_aarch64",
@@ -51,17 +53,20 @@ test-command = [
5153
test-requires = ["pytest-xdist"]
5254
test-extras = ["test"]
5355
test-skip = "*-*linux_aarch64"
54-
manylinux-x86_64-image = "quay.io/pypa/manylinux_2_28_x86_64:2025.08.29-1"
55-
manylinux-aarch64-image = "quay.io/pypa/manylinux_2_28_aarch64:2025.08.29-1"
5656

5757
[tool.cibuildwheel.windows]
58-
build-frontend = {name = "pip", args = ["--config-settings=wheel.py-api=cp312", "--config-settings=cmake.args=-DINSTALL_RUNTIME_DEPENDENCIES=ON", "--config-settings=cmake.args=-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake"] }
59-
test-command = [
60-
"python -m pytest -n auto --durations 20 {project}/test/",
61-
]
58+
build-frontend = { name = "pip", args = [
59+
"--config-settings=wheel.py-api=cp312",
60+
"--config-settings=cmake.args=-DINSTALL_RUNTIME_DEPENDENCIES=ON",
61+
"--config-settings=cmake.args=-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake",
62+
] }
63+
test-command = ["python -m pytest -n auto --durations 20 {project}/test/"]
64+
65+
[[tool.cibuildwheel.overrides]]
66+
select = "cp3{12,13}-win_amd64"
6267
repair-wheel-command = [
63-
"copy {wheel} {dest_dir}",
64-
"pipx run abi3audit --strict --report {wheel}",
68+
"copy {wheel} {dest_dir}",
69+
"pipx run abi3audit --verbose --strict --report {wheel}",
6570
]
6671

6772
[tool.cibuildwheel.linux]
@@ -70,15 +75,12 @@ archs = [
7075
"aarch64",
7176
] # Forces arm64 build on x86_64 runner using emulation (and vice-versa).
7277
before-build = "yum -y update && yum install -y epel-release && yum install -y openblas-devel ninja-build"
73-
test-command = [
74-
"cmake -G Ninja -DPython3_EXECUTABLE=$(which python) -B build-dir -S {project}/test/test_cmake",
75-
"cmake --build build-dir/",
76-
"build-dir/a.out",
77-
"python -m pytest -n auto --durations 20 {project}/test/",
78-
]
78+
79+
[[tool.cibuildwheel.overrides]]
80+
select = "cp3{12,13}-manylinux*"
7981
repair-wheel-command = [
80-
"auditwheel repair -w {dest_dir} {wheel}",
81-
"pipx run abi3audit --strict --report {wheel}",
82+
"auditwheel repair -w {dest_dir} {wheel}",
83+
"pipx run abi3audit --verbose --strict --report {wheel}",
8284
]
8385

8486
[tool.cibuildwheel.macos]
@@ -88,15 +90,12 @@ archs = [
8890
"arm64",
8991
] # Forces x86_64 build on arm64 runner using cross-compilation (and vice-versa).
9092
before-build = "export HOMEBREW_AUTO_UPDATING=0 && brew update && brew install ninja"
91-
test-command = [
92-
"cmake -G Ninja -DPython3_EXECUTABLE=$(which python) -B build-dir -S {project}/test/test_cmake",
93-
"cmake --build build-dir/",
94-
"build-dir/a.out",
95-
"python -m pytest -n auto --durations 20 {project}/test/",
96-
]
93+
94+
[[tool.cibuildwheel.overrides]]
95+
select = "cp3{12,13}-macosx*"
9796
repair-wheel-command = [
98-
"delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}",
99-
"pipx run abi3audit --strict --report {wheel}",
97+
"delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}",
98+
"pipx run abi3audit --verbose --strict --report {wheel}",
10099
]
101100

102101
[tool.mypy]

0 commit comments

Comments
 (0)