Commit 1726689
fix(packaging): guard agentex-client surface, bump floor, smoke-test wheel install
Harden the 0.13.0 split (agentex-sdk + agentex-client share the agentex.*
namespace) against the partial-install break:
- Bump the agentex-client floor to >=0.13.0 (first release where it ships
separately) so an old client can't satisfy the dep. Kept floor-only: a
ceiling would exclude the co-versioned slim (release-please can't bump it).
- Sync uv.lock to the 0.13.0 workspace versions (it lagged pyproject at 0.12.0)
so frozen installs resolve a client that satisfies the new floor.
- Add an import-time guard (agentex.lib) that canaries the agentex-client REST
surface and raises a clear, actionable error if a symbol/resource the ADK
needs is absent — instead of a cryptic `cannot import name 'Event' from
'agentex.types'`. It does not gate on version (newer clients are additive and
must not be rejected); it can't preempt a fully-missing client surface
(import agentex fails in the client's own __init__ first) — the wheel smoke
covers that.
- Add scripts/check-wheel-install (wired into the build CI job): builds both
wheels, installs them together into a fresh venv, and imports agentex.lib.adk
plus the agentex.types/resources client surface.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 23858df commit 1726689
7 files changed
Lines changed: 90 additions & 3 deletions
File tree
- .github/workflows
- adk
- scripts
- src/agentex/lib
- tests/lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments