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
43 changes: 43 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,49 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: wheelhouse/
build_emscripten:
name: Build wheels for Pyodide (Emscripten)
runs-on: ubuntu-latest
environment: release
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.12'
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-emscripten
components: rust-src
- name: Install cibuildwheel
run: |
python -m pip install cibuildwheel==4.1.0
- name: Build wheels
run: |
python -m cibuildwheel --platform pyodide --output-dir wheelhouse
env:
CIBW_BUILD: cp314-pyodide_wasm32
CIBW_BUILD_VERBOSITY: 3
- uses: actions/upload-artifact@v4
with:
path: ./wheelhouse/*.whl
name: wheel-builds-emscripten
upload_emscripten:
name: Upload wheels for Pyodide (Emscripten)
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
needs: ["build_emscripten", "upload_shared_wheels"]
steps:
- uses: actions/download-artifact@v4
with:
name: wheel-builds-emscripten
path: wheelhouse
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: wheelhouse/
build-win32-wheels:
name: Build wheels on win32
runs-on: windows-latest
Expand Down
2 changes: 1 addition & 1 deletion docs/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ Tier Experimental
-----------------

Tier Experimental platforms are not tested upstream as part of the development process.
Pre-compiled binaries are built by the external community in separate repositories. Not all of rustworkx might compile for
Pre-compiled binaries are built and published to PyPI as part of the release process. Not all of rustworkx might compile for
platforms of this tier and features can be removed. Often, platforms in this tier use unstable features
from the Rust compiler and might break at any time. Support for these platforms are best effort only.

Expand Down
7 changes: 7 additions & 0 deletions releasenotes/notes/pyodide-pypi-wheels-06f63330094bac2b.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
features:
- |
Experimental Pyodide wheels are now published to PyPI. These wheels use the
``pyemscripten`` platform tag defined by `PEP 783 <https://peps.python.org/pep-0783/>`__,
allowing compatible Pyodide environments to install ``rustworkx`` from PyPI.
Pyodide support remains best effort.
Loading