Commit 7ca2bd2
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 068f45a commit 7ca2bd2
5 files changed
Lines changed: 1499 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 | + | |
117 | 125 | | |
118 | | - | |
| 126 | + | |
| 127 | + | |
119 | 128 | | |
120 | | - | |
121 | | - | |
122 | | - | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 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 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1395 | 1395 | | |
1396 | 1396 | | |
1397 | 1397 | | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
1398 | 1415 | | |
1399 | 1416 | | |
1400 | 1417 | | |
| |||
1541 | 1558 | | |
1542 | 1559 | | |
1543 | 1560 | | |
| 1561 | + | |
| 1562 | + | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
| 1566 | + | |
| 1567 | + | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
1544 | 1572 | | |
1545 | 1573 | | |
1546 | 1574 | | |
| |||
1685 | 1713 | | |
1686 | 1714 | | |
1687 | 1715 | | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
1688 | 1722 | | |
1689 | 1723 | | |
1690 | 1724 | | |
| |||
0 commit comments