Repository navigation
ci: honor cython pin under build[uv] with UV_CONSTRAINT - #249
Merged
Merged
Conversation
bdraco
marked this pull request as ready for review
May 22, 2026 13:55
bdraco
enabled auto-merge (squash)
May 22, 2026 13:55
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.
What do these changes do?
Add
UV_CONSTRAINTandUV_BUILD_CONSTRAINTto the[tool.cibuildwheel.environment]block, mirroring the existingPIP_CONSTRAINTentry (and addingPIP_BUILD_CONSTRAINTforparity). All four point at
requirements/cython.txt.Since the cibuildwheel build frontend was switched to
build[uv],the
PIP_CONSTRAINTenv var is silently ignored during the wheelbuild;
uv pipreads onlyUV_CONSTRAINT/UV_BUILD_CONSTRAINT.Empirically, with
python -m build --installer=uvandPIP_CONSTRAINTset to pin an older Cython, uv still resolves thelatest release; setting
UV_CONSTRAINTto the same file pins itcorrectly. The
PIP_variants are kept because the odd-arch matrixin
ci-cd.ymloverridesCIBW_BUILD_FRONTEND=build(pip frontend)on containers that do not ship
uv.Are there changes in behavior for the user?
No user-facing change; the Cython version pin used at wheel build
time is now actually enforced under the
build[uv]frontend,matching the intent of the existing
PIP_CONSTRAINTline.Is it a substantial burden for the maintainers to support this?
No; a few extra env vars in
pyproject.toml.Related issue number
Port of aio-libs/yarl#1729.
Checklist
CHANGES/folder