Skip to content

Commit 2a08eeb

Browse files
fix(ci): build --wheel directly; sdist-via-cross-dir doesn't resolve in CI
adk/'s wheel uses hatchling force-include to pull ../src/agentex/lib into agentex/lib. `rye build` defaults to sdist-then-wheel-from-sdist, and when building the wheel from the sdist, the relative path ../src/agentex/lib resolves against the unpacked sdist dir (which doesn't have lib). Result: FileNotFoundError: Forced include not found. Building --wheel directly skips the sdist intermediate and resolves the force-include path against the working tree, which works. Sdist support for adk/ is deferred — it requires either physically copying lib/ into the sdist tarball, or telling hatchling sdist to also pull lib via force-include. Not needed for the wheel-based publishing flow. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 85c2bb7 commit 2a08eeb

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,16 @@ jobs:
6060
run: ./scripts/bootstrap
6161

6262
- name: Run build (slim agentex-sdk-client)
63-
run: rye build
63+
# --wheel only: avoid the sdist intermediate step, which would
64+
# otherwise force the heavy build below to resolve cross-directory
65+
# paths from inside a sdist tarball.
66+
run: rye build --wheel
6467

6568
- name: Run build (ADK overlay agentex-sdk)
66-
run: (cd adk && rye build)
69+
# Heavy wheel uses hatchling force-include to pull
70+
# ../src/agentex/lib into agentex/lib. Building --wheel directly
71+
# (vs sdist-then-wheel) keeps the relative path resolvable.
72+
run: (cd adk && rye build --wheel)
6773

6874
- name: Get GitHub OIDC Token
6975
if: |-

0 commit comments

Comments
 (0)