Skip to content

Commit de8a730

Browse files
authored
Merge pull request #69 from remyroy/master
Update and fix build process. Include Python 3.13 and pypy 3.11 targets.
2 parents 6243917 + 927fbe0 commit de8a730

File tree

2 files changed

+19
-12
lines changed

2 files changed

+19
-12
lines changed

.github/workflows/build-and-deploy.yml

+13-10
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,32 @@ jobs:
88
runs-on: ${{ matrix.os }}
99
strategy:
1010
matrix:
11-
os: [ubuntu-22.04, windows-2022, macOS-11]
11+
os: [ubuntu-22.04, windows-2022, macos-14]
1212

1313
steps:
1414
- uses: actions/checkout@v4
1515
- name: Set up QEMU
1616
if: runner.os == 'Linux'
17-
uses: docker/setup-qemu-action@v2
17+
uses: docker/setup-qemu-action@v3
1818
with:
1919
platforms: all
2020
# Used to host cibuildwheel
2121
- name: Build wheels
22-
uses: pypa/cibuildwheel@v2.16.2
22+
uses: pypa/cibuildwheel@v2.23.0
2323
env:
2424
# configure cibuildwheel to build native archs ('auto'), and some emulated ones
2525
CIBW_ARCHS_LINUX: auto aarch64 ppc64le
2626
CIBW_ARCHS_MACOS: x86_64 arm64 universal2
2727
CIBW_TEST_REQUIRES: .[test]
2828
CIBW_TEST_COMMAND: pytest {project}
29-
# arm64 cannot be tested on a x86_64 CI runner
30-
CIBW_TEST_SKIP: "*-macosx_arm64"
31-
- uses: actions/upload-artifact@v3
29+
# cannot test the arm64 part for CPython 3.8 universal2/arm64, see https://github.com/pypa/cibuildwheel/pull/1169
30+
CIBW_TEST_SKIP: cp38-macosx_arm64
31+
# pypy will need to be enabled for cibuildwheel 3
32+
CIBW_ENABLE: pypy
33+
- uses: actions/upload-artifact@v4
3234
with:
3335
path: ./wheelhouse/*.whl
36+
name: wheels-${{ matrix.os }}
3437

3538
build_sdist:
3639
name: Build source distribution
@@ -39,20 +42,20 @@ jobs:
3942
- uses: actions/checkout@v4
4043
- name: Build sdist
4144
run: pipx run build --sdist
42-
- uses: actions/upload-artifact@v3
45+
- uses: actions/upload-artifact@v4
4346
with:
4447
path: dist/*.tar.gz
48+
name: source-dist
4549

4650
pypi_upload:
4751
name: Publish to PyPI
4852
needs: [build_wheels, build_sdist]
4953
runs-on: ubuntu-latest
5054
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
5155
steps:
52-
- uses: actions/setup-python@v4
53-
- uses: actions/download-artifact@v3
56+
- uses: actions/setup-python@v5
57+
- uses: actions/download-artifact@v4
5458
with:
55-
name: artifact
5659
path: dist
5760
- name: Publish package
5861
uses: pypa/gh-action-pypi-publish@release/v1

.github/workflows/tests.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@ jobs:
1414
"3.10",
1515
"3.11",
1616
"3.12",
17+
"3.13",
1718
"pypy-3.8",
1819
"pypy-3.9",
1920
"pypy-3.10",
21+
"pypy-3.11",
2022
]
2123

2224
steps:
2325
- uses: actions/checkout@v4
24-
- uses: actions/setup-python@v4
26+
- uses: actions/setup-python@v5
2527
with:
2628
python-version: ${{ matrix.python }}
2729
- run: pip install .[test]
@@ -38,14 +40,16 @@ jobs:
3840
"3.10",
3941
"3.11",
4042
"3.12",
43+
"3.13",
4144
"pypy-3.8",
4245
"pypy-3.9",
4346
"pypy-3.10",
47+
"pypy-3.11",
4448
]
4549

4650
steps:
4751
- uses: actions/checkout@v4
48-
- uses: actions/setup-python@v4
52+
- uses: actions/setup-python@v5
4953
with:
5054
python-version: ${{ matrix.python }}
5155
- run: pip install .

0 commit comments

Comments
 (0)