Skip to content

Conversation

@Alearner12
Copy link

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

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
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

1 participant