Skip to content

DEP: upgrade cibw (4.0.0 -> 4.1.0)#404

Draft
neutrinoceros wants to merge 3 commits into
OpenAstronomy:mainfrom
neutrinoceros:dep/cibw-4.1
Draft

DEP: upgrade cibw (4.0.0 -> 4.1.0)#404
neutrinoceros wants to merge 3 commits into
OpenAstronomy:mainfrom
neutrinoceros:dep/cibw-4.1

Conversation

@neutrinoceros

Copy link
Copy Markdown
Contributor

Might as well include this too. It might make #345 obsolete.

@neutrinoceros

Copy link
Copy Markdown
Contributor Author

It might make #345 obsolete.

it doesn't. Let's see if I can get pyodide builds by rebasing atop that PR.

Sid and others added 3 commits June 15, 2026 15:17
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
@neutrinoceros

Copy link
Copy Markdown
Contributor Author

This now includes a slightly modified version of #345 (I only resolved a merge conflict and apply pre-commit autofixes)

runs-on: ubuntu-24.04-arm
- cp313-manylinux_x86_64
- target: cp314-pyodide_wasm32
runs-on: ubuntu-latest

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seem to me this line shouldn't be necessary but I empirically found that it was. Probably a defect lurking somewhere.

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.

1 participant