Skip to content

Commit 27add57

Browse files
fix(python): restore package discovery for platform wheel builds
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>
1 parent 9d942d4 commit 27add57

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

python/pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,11 @@ dev = [
4141
"httpx>=0.24.0",
4242
]
4343

44-
[tool.setuptools]
45-
packages = ["copilot"]
44+
# Use find with a glob so that the copilot.bin subpackage (created dynamically
45+
# by scripts/build-wheels.mjs during publishing) is included in platform wheels.
46+
[tool.setuptools.packages.find]
47+
where = ["."]
48+
include = ["copilot*"]
4649

4750
[tool.ruff]
4851
line-length = 100

0 commit comments

Comments
 (0)