Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-13, macos-14, windows-2022]
os: [ubuntu-latest, macos-14, macos-15, windows-2025]

steps:
- uses: actions/checkout@v5
Expand Down
37 changes: 25 additions & 12 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,29 +34,34 @@ testpaths = ["test"]
wheel.packages = ["python/basix"]

[tool.cibuildwheel]
build-frontend = {name = "pip", args = ["--config-settings=wheel.py-api=cp312"] }
build = [
"cp{39,310,311,312}-manylinux_x86_64",
"cp{39,310,311,312}-manylinux_aarch64",
"cp{39,310,311,312}-macosx_x86_64",
"cp{39,310,311,312}-macosx_arm64",
"cp{39,310,311,312}-win_amd64",
"cp3{9,10,11,12,13}-manylinux_x86_64",
"cp3{9,10,11,12,13}-manylinux_aarch64",
"cp3{9,10,11,12,13}-macosx_x86_64",
"cp3{9,10,11,12,13}-macosx_arm64",
"cp3{9,10,11,12,13}-win_amd64",
]
test-command = [
"cmake -G Ninja -DPython3_EXECUTABLE=$(which python) -B build-dir -S {project}/test/test_cmake",
"cmake --build build-dir/",
"build-dir/a.out",
"python -m pytest -v -n auto --durations 20 {project}/test/",
"python -m pytest -n auto --durations 20 {project}/test/",
]
test-requires = ["pytest-xdist"]
test-extras = ["test"]
test-skip = "*-*linux_aarch64"
manylinux-x86_64-image = "quay.io/pypa/manylinux_2_28_x86_64:2024-09-16-ab73a4b"
manylinux-aarch64-image = "quay.io/pypa/manylinux_2_28_aarch64:2024-09-16-ab73a4b"
manylinux-x86_64-image = "quay.io/pypa/manylinux_2_28_x86_64:2025.08.29-1"
manylinux-aarch64-image = "quay.io/pypa/manylinux_2_28_aarch64:2025.08.29-1"

[tool.cibuildwheel.windows]
build-frontend = {name = "pip", args = ["--config-settings=cmake.args=-DINSTALL_RUNTIME_DEPENDENCIES=ON", "--config-settings=cmake.args=-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake"] }
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"] }
test-command = [
"python -m pytest -v -n auto --durations 20 {project}/test/",
"python -m pytest -n auto --durations 20 {project}/test/",
]
repair-wheel-command = [
"copy {wheel} {dest_dir}",
"pipx run abi3audit --strict --report {wheel}",
]

[tool.cibuildwheel.linux]
Expand All @@ -69,7 +74,11 @@ test-command = [
"cmake -G Ninja -DPython3_EXECUTABLE=$(which python) -B build-dir -S {project}/test/test_cmake",
"cmake --build build-dir/",
"build-dir/a.out",
"python -m pytest -v -n auto --durations 20 {project}/test/",
"python -m pytest -n auto --durations 20 {project}/test/",
]
repair-wheel-command = [
"auditwheel repair -w {dest_dir} {wheel}",
"pipx run abi3audit --strict --report {wheel}",
]

[tool.cibuildwheel.macos]
Expand All @@ -83,7 +92,11 @@ test-command = [
"cmake -G Ninja -DPython3_EXECUTABLE=$(which python) -B build-dir -S {project}/test/test_cmake",
"cmake --build build-dir/",
"build-dir/a.out",
"python -m pytest -v -n auto --durations 20 {project}/test/",
"python -m pytest -n auto --durations 20 {project}/test/",
]
repair-wheel-command = [
"delocate-wheel --require-archs {delocate_archs} -w {dest_dir} -v {wheel}",
"pipx run abi3audit --strict --report {wheel}",
]

[tool.mypy]
Expand Down
7 changes: 5 additions & 2 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ else()
find_package(Basix REQUIRED)
endif()

find_package(Python COMPONENTS Interpreter Development.Module REQUIRED)
find_package(Python COMPONENTS Interpreter Development.Module ${SKBUILD_SABI_COMPONENT} REQUIRED)

# Options
include(FeatureSummary)
Expand All @@ -38,7 +38,10 @@ list(APPEND CMAKE_PREFIX_PATH "${NB_DIR}")
find_package(nanobind CONFIG REQUIRED)

# Create the binding library
nanobind_add_module(_basixcpp NB_SUPPRESS_WARNINGS wrapper.cpp)
if(NOT "${SKBUILD_SABI_VERSION}" STREQUAL "")
set(NANOBIND_SABI "STABLE_ABI")
endif()
nanobind_add_module(_basixcpp NB_SUPPRESS_WARNINGS ${NANOBIND_SABI} wrapper.cpp)
target_compile_definitions(_basixcpp PRIVATE cxx_std_20)

if(ENABLE_CLANG_TIDY)
Expand Down
Loading