Skip to content

Add support for pyodide wheels (#308) - #345

Merged
Cadair merged 3 commits into
OpenAstronomy:mainfrom
Alearner12:add-pyodide-support
Oct 1, 2026
Merged

Cadair merged 3 commits into
OpenAstronomy:mainfrom
Alearner12:add-pyodide-support

Conversation

@Alearner12

Copy link
Copy Markdown
Contributor

This commit adds automatic support for Pyodide/WebAssembly wheels to the OpenAstronomy publish workflow.

Changes:

  • Added 'pyodide' to MACHINE_TYPE dictionary (runs on ubuntu-latest)
  • Added get_cibw_platform() function to detect pyodide targets and set CIBW_PLATFORM environment variable
  • Modified get_os() to detect pyodide targets before other platforms
  • Updated get_matrix_item() to include CIBW_PLATFORM when needed
  • Added CIBW_PLATFORM to the cibuildwheel step in publish.yml

With this change, users can now simply specify:

targets: |
- cp*-pyodide_wasm32

And the workflow will automatically set CIBW_PLATFORM=pyodide without requiring manual env configuration.

Fixes #308

@astrofrog

astrofrog commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Rebased and fixed pre-commit, added CI job

Sid and others added 2 commits October 1, 2026 00:13
This commit adds automatic support for Pyodide/WebAssembly wheels to the
OpenAstronomy publish workflow.

Changes:
- Added 'pyodide' to MACHINE_TYPE dictionary (runs on ubuntu-latest)
- Added get_cibw_platform() function to detect pyodide targets and set
  CIBW_PLATFORM environment variable
- Modified get_os() to detect pyodide targets before other platforms
- Updated get_matrix_item() to include CIBW_PLATFORM when needed
- Added CIBW_PLATFORM to the cibuildwheel step in publish.yml

With this change, users can now simply specify:

  targets: |
    - cp*-pyodide_wasm32

And the workflow will automatically set CIBW_PLATFORM=pyodide without
requiring manual env configuration.

Fixes OpenAstronomy#308
@Cadair
Cadair merged commit 3a3dcf3 into OpenAstronomy:main Oct 1, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for pyodide wheels

3 participants