Skip to content

Commit 94df58f

Browse files
committed
ci: add 3.14, iOS
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 9d78c1e commit 94df58f

File tree

5 files changed

+68
-50
lines changed

5 files changed

+68
-50
lines changed

.github/workflows/cibw-cc.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CIBW cross-compile
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
branches:
7+
- master
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
build-pyodide:
15+
name: Pyodide
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- uses: actions/setup-python@v5
21+
with:
22+
python-version: "3.12"
23+
24+
- uses: pypa/[email protected]
25+
env:
26+
CIBW_PLATFORM: pyodide
27+
28+
- uses: actions/upload-artifact@v4
29+
with:
30+
name: wheels-pyodide
31+
path: dist/*.whl
32+
33+
build-ios:
34+
name: iOS
35+
runs-on: macos-latest
36+
steps:
37+
- uses: actions/checkout@v4
38+
39+
- uses: actions/setup-python@v5
40+
41+
- uses: pypa/[email protected]
42+
env:
43+
CIBW_PLATFORM: ios
44+
CIBW_ARCHS: all
45+
46+
- uses: actions/upload-artifact@v4
47+
with:
48+
name: wheels-ios
49+
path: dist/*.whl

.github/workflows/enscripten.yaml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/pip.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
platform: [windows-latest, macos-latest, ubuntu-latest]
18-
python-version: ["3.9", "3.13", "pypy-3.10"]
18+
python-version: ["3.9", "3.14", "pypy-3.10"]
1919

2020
steps:
2121
- uses: actions/checkout@v4
@@ -26,7 +26,7 @@ jobs:
2626
allow-prereleases: true
2727

2828
- name: Build and install
29-
run: pip install --verbose .[test]
29+
run: pip install --verbose . --group test
3030

3131
- name: Test
3232
run: pytest

.github/workflows/wheels.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
strategy:
4545
fail-fast: false
4646
matrix:
47-
os: [ubuntu-latest, macos-13, macos-latest, windows-latest]
47+
os: [ubuntu-latest, macos-13, macos-latest, windows-latest, ubuntu-24.04-arm, windows-11-arm]
4848

4949
steps:
5050
- uses: actions/checkout@v4
@@ -53,10 +53,7 @@ jobs:
5353

5454
- uses: astral-sh/setup-uv@v5
5555

56-
- uses: pypa/[email protected]
57-
env:
58-
CIBW_ENABLE: cpython-prerelease
59-
CIBW_ARCHS_WINDOWS: auto ARM64
56+
- uses: pypa/[email protected]
6057

6158
- name: Verify clean directory
6259
run: git diff --exit-code
@@ -95,5 +92,3 @@ jobs:
9592
subject-path: "dist/*"
9693

9794
- uses: pypa/gh-action-pypi-publish@release/v1
98-
with:
99-
attestations: true

pyproject.toml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
[build-system]
2-
requires = ["scikit-build-core>=0.10", "pybind11"]
2+
requires = ["scikit-build-core>=0.11", "pybind11>=3.0.0rc3"]
33
build-backend = "scikit_build_core.build"
44

55

66
[project]
77
name = "scikit_build_example"
88
version = "0.0.1"
9+
license = "MIT"
10+
license-files = ["LICENSE"]
911
description="A minimal example package (with pybind11)"
1012
readme = "README.md"
1113
authors = [
@@ -14,23 +16,23 @@ authors = [
1416
requires-python = ">=3.9"
1517
classifiers = [
1618
"Development Status :: 4 - Beta",
17-
"License :: OSI Approved :: MIT License",
1819
"Programming Language :: Python :: 3 :: Only",
19-
"Programming Language :: Python :: 3.7",
20-
"Programming Language :: Python :: 3.8",
2120
"Programming Language :: Python :: 3.9",
2221
"Programming Language :: Python :: 3.10",
2322
"Programming Language :: Python :: 3.11",
2423
"Programming Language :: Python :: 3.12",
2524
"Programming Language :: Python :: 3.13",
25+
"Programming Language :: Python :: 3.14",
26+
"Private :: Do Not Upload",
2627
]
2728

28-
[project.optional-dependencies]
29+
30+
[dependency-groups]
2931
test = ["pytest"]
32+
dev = [{ include-group = "test" }]
3033

3134

3235
[tool.scikit-build]
33-
wheel.expand-macos-universal-tags = true
3436
minimum-version = "build-system.requires"
3537

3638

@@ -48,12 +50,17 @@ testpaths = ["tests"]
4850

4951
[tool.cibuildwheel]
5052
build-frontend = "build[uv]"
51-
test-command = "pytest {project}/tests"
52-
test-extras = ["test"]
53+
enable = ["cpython-prerelease", "pypy"]
54+
test-command = "python -m pytest tests"
55+
test-sources = ["pyproject.toml", "tests"]
56+
test-groups = ["test"]
5357

5458
[tool.cibuildwheel.pyodide]
5559
build-frontend = {name = "build", args = ["--exports", "whole_archive"]}
5660

61+
[tool.cibuildwheel.ios]
62+
xbuild-tools = ["cmake", "ninja"]
63+
5764
[tool.ruff.lint]
5865
extend-select = [
5966
"B", # flake8-bugbear

0 commit comments

Comments
 (0)