Skip to content

Commit dcb9076

Browse files
cibuildwheel: move config to pyproject.toml
1 parent 1724e82 commit dcb9076

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,13 @@ jobs:
88
runs-on: ${{ matrix.os }}
99
strategy:
1010
matrix:
11-
os: [ubuntu-22.04, macos-13, macos-14, windows-2019]
11+
os: [ubuntu-latest, macos-13, macos-14, windows-2019]
1212

1313
steps:
1414
- uses: actions/checkout@v4
1515

1616
- name: Build wheels
17-
uses: pypa/cibuildwheel@v2.19.2
18-
env:
19-
CIBW_BUILD: "cp38-* cp39-* cp310-* cp311-* cp312-*"
20-
# Skip Python 2.7 and 3.5, 32 bit Linux, and PyPy
21-
CIBW_SKIP: "*-manylinux_i686 *musllinux* pp*"
22-
CIBW_ENVIRONMENT_MACOS: MACOSX_DEPLOYMENT_TARGET=10.12
23-
CIBW_BEFORE_BUILD: pip install cython
24-
CIBW_ARCHS_MACOS: "x86_64 arm64 universal2"
25-
CIBW_REPAIR_WHEEL_COMMAND_LINUX: auditwheel repair --strip -w {dest_dir} {wheel}
26-
CIBW_TEST_COMMAND: python -m spherogram.test
17+
uses: pypa/cibuildwheel@v2.22
2718

2819
- uses: actions/upload-artifact@v4
2920
with:

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
version: [9.3, 9.4, 9.5, 9.6, 9.7, 9.8, 10.1, 10.2, 10.3, latest]
12+
version: [9.3, 9.4, 9.5, 9.6, 9.7, 9.8, 10.1, 10.2, 10.3, 10.4, latest]
1313

1414
container:
1515
image: sagemath/sagemath:${{ matrix.version }}
@@ -20,7 +20,7 @@ jobs:
2020
run: sage --version
2121

2222
- name: Checkout
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2424

2525
- name: Install snappy_manifolds
2626
run: sage -pip install -U https://github.com/3-manifolds/snappy_manifolds/archive/master.zip

pyproject.toml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
11
[build-system]
22
requires = ["setuptools", "wheel", "cython"]
3-
build-backend = "setuptools.build_meta"
3+
build-backend = "setuptools.build_meta"
4+
5+
[tool.cibuildwheel]
6+
build = "cp38* cp39* cp310* cp311* cp312* cp313*"
7+
skip = "*musllinux*"
8+
test-command = "python -m spherogram.test"
9+
10+
[tool.cibuildwheel.macos]
11+
archs = "x86_64 arm64 universal2"
12+
13+
[tool.cibuildwheel.linux]
14+
archs = "native"
15+
repair-wheel-command = "auditwheel repair --strip -w {dest_dir} {wheel}"
16+
17+
[tool.cibuildwheel.windows]
18+
archs = "native"

0 commit comments

Comments
 (0)