Commit 6c982c8
committed
Drop crewai from workspace install path; users install separately
crewai 1.14.x ships tight conservative pins (click~=8.1.7, tomli~=2.0.2,
plus a crewai-cli that pulls textual>=7.5 -> rich>=14.2) that conflict
with Airflow's resolved click 8.3+, tomli 2.4+, and FAB's transitive
rich<14. uv can satisfy the install via override-dependencies, but the
CI image build runs ``pip check`` (see
scripts/docker/install_airflow_when_building_images.sh) which treats
the metadata mismatch as fatal.
The cleanest fix is to keep crewai out of Airflow's resolution entirely:
- Remove the ``[project.optional-dependencies] crewai`` extra from the
provider pyproject. There's now nothing for uv to resolve against
crewai's pins -- the root override-dependencies and crewai-* cooldown
bypass are no longer needed.
- Drop crewai from the provider's dev dependency group.
- Document in docs/hooks/crewai.rst that users ``pip install
"crewai>=1.14.5"`` themselves after installing common-ai.
- Stub ``crewai`` in ``sys.modules`` for the hook tests (mirrors the
langchain-stub pattern from #67237 -- justified for crewai because
the pin conflict makes installation in CI infeasible).
The hook itself is unchanged; users who want it install crewai into
their own venv where they've accepted the pin cascade. The lock no
longer carries crewai / chromadb / onnxruntime entries.1 parent e9a6797 commit 6c982c8
4 files changed
Lines changed: 1466 additions & 246 deletions
File tree
- providers/common/ai
- docs/hooks
- tests/unit/common/ai/hooks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
| 111 | + | |
111 | 112 | | |
112 | | - | |
| 113 | + | |
| 114 | + | |
113 | 115 | | |
114 | | - | |
115 | | - | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
117 | 126 | | |
118 | | - | |
| 127 | + | |
| 128 | + | |
119 | 129 | | |
120 | | - | |
121 | | - | |
122 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
| |||
129 | 133 | | |
130 | 134 | | |
131 | 135 | | |
132 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
133 | 140 | | |
134 | 141 | | |
135 | 142 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
26 | 42 | | |
27 | 43 | | |
28 | 44 | | |
| |||
0 commit comments