Commit fb76ccd
Closes amd#1621
## Why this matters
`gaia connectors` is a **base** CLI command, but `keyring` — its OS
credential-store backend for OAuth tokens (amd#915) — shipped only in the
`[ui]`/`[api]`/`[dev]` extras. So a bare `pip install amd-gaia` crashed
`gaia connectors list`/`status` with a raw `ModuleNotFoundError`. This
promotes `keyring` to base `install_requires`, matching the command's
tier, so connectors works out of the box on every platform.
**Decision record (amd#1621, Option 1).** keyring is featherweight
(pure-Python + `jaraco.*`; the cryptography/SecretStorage chain is
Linux-only and ships as a prebuilt wheel) and base already pulls
transformers/accelerate, so the added footprint is negligible — whereas
a `[connectors]` extra (Option 2) would leave a base command needing an
extra to avoid crashing. The guarded import in amd#1622 ships as
defense-in-depth for stripped/minimal installs; the extras keep their
own keyring declaration (so amd#1617's `[api]` guard stays green).
## Test plan
- [ ] `pytest tests/unit/test_base_keyring_dep.py` — new regression
guard: base `install_requires` declares keyring
- [ ] `pytest tests/unit/test_api_extras.py` — no regression; extras
keep keyring
- [ ] `util/lint.py --all`
- [ ] Real-world: bare `pip install` pulls keyring + `gaia connectors
list`/`status` works on macOS / Windows / Linux; guarded actionable
error when keyring absent
Co-authored-by: Tomasz Iniewicz <heaters-nays0p@icloud.com>
1 parent 08ca5aa commit fb76ccd
2 files changed
Lines changed: 75 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
114 | 116 | | |
115 | 117 | | |
116 | 118 | | |
| |||
| 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 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
0 commit comments