Skip to content
Open
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
28 changes: 24 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]

steps:
- uses: actions/checkout@v6
Expand Down Expand Up @@ -57,12 +57,12 @@ jobs:
python-version: "3.12"

- name: Install cibuildwheel
run: pip install cibuildwheel==2.21.0
run: pip install cibuildwheel==2.23.4

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-*"
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-* cp314-*"
CIBW_SKIP: "*-win32 *-manylinux_i686 *-musllinux_i686"
CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_ARCHS_LINUX: "x86_64"
Expand All @@ -75,6 +75,26 @@ jobs:
name: wheels-${{ matrix.os }}
path: ./wheelhouse/*.whl

build_pyodide:
name: Build Pyodide wheel
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'release'

steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0

- uses: pypa/cibuildwheel@v3.4.0
env:
CIBW_PLATFORM: pyodide

- uses: actions/upload-artifact@v4
with:
name: wheels-pyodide
path: wheelhouse/*.whl

build_sdist:
name: Build source distribution
runs-on: ubuntu-latest
Expand All @@ -100,7 +120,7 @@ jobs:

publish:
name: Publish to PyPI
needs: [build_wheels, build_sdist]
needs: [build_wheels, build_pyodide, build_sdist]
runs-on: ubuntu-latest
if: github.event_name == 'release'
steps:
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,9 @@ clean-test: ## remove test and coverage artifacts
dist: clean ## builds source and wheel package
python3 -m build
ls -l dist

.PHONY: dist-pyodide
dist-pyodide: clean ## builds Pyodide/emscripten wheel (requires Linux or macOS)
pip install pyodide-build
pyodide build --outdir dist
ls -l dist
Loading
Loading