Skip to content

fix(python): restore package discovery for platform wheel builds#601

Merged
SteveSandersonMS merged 1 commit intomainfrom
stevesa/fix-python-publishing
Feb 27, 2026
Merged

fix(python): restore package discovery for platform wheel builds#601
SteveSandersonMS merged 1 commit intomainfrom
stevesa/fix-python-publishing

Conversation

@SteveSandersonMS
Copy link
Contributor

The explicit packages = ["copilot"] setting in pyproject.toml excluded the copilot.bin subpackage that scripts/build-wheels.mjs creates dynamically at publish time (containing the bundled CLI binary). This caused the publish workflow to fail with a FileNotFoundError on copilot/bin when repacking wheels.

Switch back to packages.find with include = ["copilot*"] so copilot.bin is discovered during wheel builds while still being safely skipped during normal dev installs (where the directory doesn't exist).

Fixes the failure in https://github.com/github/copilot-sdk/actions/runs/22484209474/job/65129708048

The explicit `packages = ["copilot"]` setting excluded the
`copilot.bin` subpackage that `scripts/build-wheels.mjs` creates
dynamically at publish time (containing the bundled CLI binary).
Switch back to `packages.find` with `include = ["copilot*"]`
so `copilot.bin` is discovered during wheel builds while still
being safely skipped during normal dev installs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 27, 2026 11:30
@SteveSandersonMS SteveSandersonMS requested a review from a team as a code owner February 27, 2026 11:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Restores correct Python package discovery during platform wheel publishing so the dynamically-created copilot.bin subpackage (bundled Copilot CLI) is included in built wheels, preventing publish-time failures.

Changes:

  • Replaced an explicit packages = ["copilot"] configuration with setuptools find-based discovery.
  • Added an include = ["copilot*"] glob so copilot.bin is picked up when present during wheel builds.
@SteveSandersonMS SteveSandersonMS merged commit d87af41 into main Feb 27, 2026
21 checks passed
@SteveSandersonMS SteveSandersonMS deleted the stevesa/fix-python-publishing branch February 27, 2026 11:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants