Skip to content

Commit ec07107

Browse files
committed
Fix CI: bump fastapi/starlette pins to allow anyio>=4.5
Third resolver conflict on fresh CI install. Root cause: fastapi==0.104.1 requires anyio<4.0.0, but mcp (any version >=1.23.3) requires anyio>=4.5. These two can't coexist regardless of what we pin for anyio directly. The fastapi==0.104.1 pin was stale — my local environment has been running fastapi 0.129 successfully for the whole v0.3.1 cycle (no one upgraded requirements.txt to match). Verified 529 backend tests pass on fastapi 0.129 locally. Changes: - fastapi==0.104.1 -> fastapi>=0.110.0,<0.120.0 (0.110+ drops the anyio<4 ceiling) - starlette==0.27.0 -> starlette>=0.37.0,<0.42.0 (version matched to modern fastapi) - uvicorn==0.24.0 -> uvicorn>=0.24.0,<0.40.0 (loose range, unaffected by anyio) - python-multipart, python-dotenv: strict == -> >= (these have no conflicts, just removing unnecessary pin tightness) This brings requirements.txt in line with the fastapi version our build has actually been using.
1 parent 458c934 commit ec07107

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

ui-implementation/src-tauri/backend/requirements.txt

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Backend Service Requirements - Pinned for Compatibility
22
# Core FastAPI and web framework
3-
fastapi==0.104.1
4-
uvicorn[standard]==0.24.0
5-
python-multipart==0.0.6
6-
python-dotenv==1.0.0
7-
starlette==0.27.0
3+
fastapi>=0.110.0,<0.120.0
4+
uvicorn[standard]>=0.24.0,<0.40.0
5+
python-multipart>=0.0.6
6+
python-dotenv>=1.0.0
7+
starlette>=0.37.0,<0.42.0
88

99
# HTTP client for Ollama and external APIs
1010
httpx>=0.27.0,<0.29.0
@@ -22,8 +22,7 @@ pandas>=1.5.3,<3.0.0
2222
# Async support
2323
aiofiles==23.2.1
2424
filelock==3.13.1
25-
# anyio pulled transitively by fastapi; explicit pin removed because
26-
# fastapi==0.104.1 requires anyio<4.0.0 and the explicit >=4 pin made CI unresolvable.
25+
# anyio pulled transitively by fastapi + mcp (mcp requires >=4.5).
2726

2827
# Configuration and environment
2928
pydantic>=2.9.0,<3.0.0

0 commit comments

Comments
 (0)