Skip to content

workflows: add PyPI sdist source mode - #5002

Merged
luhenry merged 1 commit into
mainfrom
cibuildwheel-reusable-source-preparation
Nov 20, 2026
Merged

luhenry merged 1 commit into
mainfrom
cibuildwheel-reusable-source-preparation

Conversation

@luhenry

@luhenry luhenry commented Nov 20, 2026

Copy link
Copy Markdown
Member

Summary

  • add an opt-in pypi-sdist source mode to _build-cibuildwheel.yml
  • resolve the exact release through the PyPI JSON API and verify the published SHA-256 digest
  • safely extract the sdist into the existing package workspace layout before preparation and patching
  • convert ujson as a proof of concept while preserving checkout as the default source mode

Validation

  • downloaded, verified, and extracted the ujson 6.0.0 sdist
  • confirmed the extracted source includes pyproject.toml and the test suite
  • validated reusable-workflow inputs and changed workflow YAML
  • confirmed all existing checkout-mode callers still provide a repository

@luhenry
luhenry force-pushed the cibuildwheel-reusable-source-preparation branch from 2d5fad8 to f158f66 Compare November 20, 2026 19:24
@luhenry
luhenry marked this pull request as ready for review November 20, 2026 19:28
@luhenry
luhenry merged commit 729e93b into main Nov 20, 2026
121 checks passed
@luhenry
luhenry deleted the cibuildwheel-reusable-source-preparation branch November 20, 2026 19:53
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