Include repo-level wheelhouse/ in GitHub Pages deployment#20
Merged
Creeper19472 merged 3 commits intomainfrom Feb 24, 2026
Merged
Include repo-level wheelhouse/ in GitHub Pages deployment#20Creeper19472 merged 3 commits intomainfrom
Creeper19472 merged 3 commits intomainfrom
Conversation
…ment Co-authored-by: Creeper19472 <38857196+Creeper19472@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add check for .whl file in wheelhouse folder during deployment
Include repo-level wheelhouse/ in GitHub Pages deployment
Feb 24, 2026
There was a problem hiding this comment.
Pull request overview
This PR fixes the GitHub Pages deployment to include pre-built wheel files from the repository's wheelhouse/ directory, which were previously ignored during the deployment process.
Changes:
- Modified
.gitignoreto allow committing wheel files in thewheelhouse/directory - Added a workflow step to copy pre-built wheels from
wheelhouse/into the deployment directory before index generation
Reviewed changes
Copilot reviewed 1 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| .gitignore | Removes exclusion of wheelhouse/ directory and *.whl files to allow committing pre-built wheels |
| .github/workflows/wheels.yml | Adds step to include pre-built wheels from wheelhouse/ directory in the Pages deployment |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+799
to
+802
| if [ -d wheelhouse ] && [ -n "$(find wheelhouse -maxdepth 1 -name '*.whl' -print -quit)" ]; then | ||
| echo "Found pre-built wheels in wheelhouse/:" | ||
| find wheelhouse -maxdepth 1 -name '*.whl' -exec ls -lh {} \; | ||
| find wheelhouse -maxdepth 1 -name '*.whl' -exec cp {} wheels/ \; |
There was a problem hiding this comment.
The workflow runs find twice over the same directory structure. Capture the list once and reuse it for both operations to avoid redundant filesystem traversal.
Suggested change
| if [ -d wheelhouse ] && [ -n "$(find wheelhouse -maxdepth 1 -name '*.whl' -print -quit)" ]; then | |
| echo "Found pre-built wheels in wheelhouse/:" | |
| find wheelhouse -maxdepth 1 -name '*.whl' -exec ls -lh {} \; | |
| find wheelhouse -maxdepth 1 -name '*.whl' -exec cp {} wheels/ \; | |
| if [ -d wheelhouse ]; then | |
| mapfile -t wheel_files < <(find wheelhouse -maxdepth 1 -name '*.whl' -type f) | |
| if [ "${#wheel_files[@]}" -gt 0 ]; then | |
| echo "Found pre-built wheels in wheelhouse/:" | |
| ls -lh "${wheel_files[@]}" | |
| cp "${wheel_files[@]}" wheels/ | |
| else | |
| echo "No pre-built wheels found in wheelhouse/" | |
| fi |
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.
The
deploy_indexjob only picked up wheels built during CI. Pre-built.whlfiles committed to the project rootwheelhouse/directory were silently ignored and never deployed to Pages.Changes
.github/workflows/wheels.yml— AddedInclude pre-built wheels from wheelhousestep indeploy_index, between "Organize wheels" and "Generate PyPI index". Copies any.whlfiles from the repo-rootwheelhouse/intowheels/before index generation. Gracefully no-ops when the directory is absent or empty.💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.