Fix cibuildwheel build package shadowing - #465
Merged
Merged
Conversation
luke-e-schaefer
approved these changes
Jun 17, 2026
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.
Summary
build.pytonative_build.pyso it does not shadow the PyPIbuildpackage imported bycibuildwheelnative_build.pyin the sdist and update the Poetry build script path0.18.7for a new publish tag after the failedv0.18.6tag workflowValidation
poetry buildpytest tests/test_local_deduplication.py -qpre-commit run --all-filespython -c "from build import ProjectBuilder; print(ProjectBuilder.__module__)"printsbuild._builderfrom repo rootpython -m cibuildwheel --platform macos --print-build-identifiersstarts successfully from repo rootRelease note
The pushed
v0.18.6tag points at the commit with the publishing bug, so after merging this fix, publish with a newv0.18.7tag.Greptile Summary
build.pytonative_build.pyso it no longer shadows the PyPIbuildpackage.pyproject.tomlto use and include the renamed build hook in source distributions.poetry.lockand bumps the package/changelog version to0.18.7for the corrected publish workflow.Confidence Score: 5/5
The build hook rename and packaging metadata updates are narrow and align with the stated cibuildwheel import-shadowing fix.
The changed files are limited to release metadata, lockfile refresh, and the renamed build hook path; no review comments are needed.
What T-Rex did
Reviews (2): Last reviewed commit: "Refresh Poetry lockfile" | Re-trigger Greptile