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
9 changes: 8 additions & 1 deletion .github/workflows/cibuildwheel_config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
[tool.cibuildwheel]
skip = "cp36-*" # scikit-build-core requires >=3.7
build-verbosity = 3

[tool.cibuildwheel.linux]
Expand All @@ -15,6 +14,14 @@ repair-wheel-command = "auditwheel repair --exclude libEGL.so.1 -w {dest_dir} {w
[tool.cibuildwheel.environment.linux]
CMAKE_ARGS = "DPOLYSCOPE_BACKEND_OPENGL3_EGL=ON"

# Required by nanobind for C++17. Technically it should be 10.14
# for full support, but this seems to work and gets us somewhat older
# compatibility.
# There is a matching setting in pyproject.toml
# https://cibuildwheel.pypa.io/en/stable/cpp_standards/#macos-and-deployment-target-versions
[tool.cibuildwheel.macos.environment]
MACOSX_DEPLOYMENT_TARGET = "10.13"

# musllinux builds on an Alpinx Linux image, need different package names
[[tool.cibuildwheel.overrides]]
select = "*-musllinux*"
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: 'recursive'

- uses: actions/setup-python@v6
with:
python-version: '3.12'

- name: Package source distribution
# make sure this only happens on one of the runners, not repeated on all
Expand All @@ -35,7 +39,7 @@ jobs:
python -m build --sdist

- name: Run cibuildwheel
uses: pypa/cibuildwheel@v2.23.2
uses: pypa/cibuildwheel@v3.3.0
with:
config-file: ".github/workflows/cibuildwheel_config.toml"

Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/test_build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: Test Build

# NOTE: build logic is duplicated here and in publish.yml
Expand All @@ -22,7 +21,7 @@ jobs:
fail-fast: false
matrix:
# macos-13 is an intel runner, macos-14+ is apple silicon
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-13, macos-latest]
os: [ubuntu-latest, ubuntu-24.04-arm, windows-latest, macos-15-intel, macos-latest]

name: Build wheels ${{ matrix.os }}
runs-on: ${{ matrix.os }}
Expand All @@ -32,6 +31,10 @@ jobs:
with:
submodules: 'recursive'

- uses: actions/setup-python@v6
with:
python-version: '3.12'

- name: Package source distribution
# make sure this only happens on one of the runners, not repeated on all
if: matrix.os == 'ubuntu-latest'
Expand All @@ -40,7 +43,7 @@ jobs:
python -m build --sdist

- name: Run cibuildwheel
uses: pypa/cibuildwheel@v2.23.2
uses: pypa/cibuildwheel@v3.3.0
with:
config-file: ".github/workflows/cibuildwheel_config.toml"

Expand Down
10 changes: 8 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
]
requires-python = ">=3.7"
requires-python = ">=3.9"

dependencies = [
"numpy",
Expand All @@ -33,4 +33,10 @@ build-backend = "scikit_build_core.build"

[tool.scikit-build]
build.verbose = true
logging.level = "INFO"
logging.level = "INFO"

# Required by nanobind for C++17. Technically it should be 10.14
# for full support, but this seems to work and gets us somewhat older
# compatibility.
# There is a matching setting in cibuildwheel_config.toml
cmake.args = ["-DCMAKE_OSX_DEPLOYMENT_TARGET=10.13"]
Loading