Add support for pyodide wheels (#308)#345
Open
Alearner12 wants to merge 1 commit intoOpenAstronomy:mainfrom
Open
Add support for pyodide wheels (#308)#345Alearner12 wants to merge 1 commit intoOpenAstronomy:mainfrom
Alearner12 wants to merge 1 commit intoOpenAstronomy:mainfrom
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit adds automatic support for Pyodide/WebAssembly wheels to the OpenAstronomy publish workflow.
Changes:
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