fix(deps): pin fastapi below 0.137.0 to fix CI route introspection

FastAPI 0.137.0 regressed include_router: endpoints registered via
app.include_router no longer appear in app.routes (they still serve, but
introspection breaks). tests/test_api/test_app_factory.py asserts on
app.routes, so CI (which pip-installs the latest fastapi) failed on the
/metrics route check while local pinned 0.136.3 passed. Constrain fastapi
to <0.137.0 until a fixed release is available.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Louis King
2026-06-14 18:34:51 +01:00
parent 2563ad4cf2
commit 5015946ab5
+4 -1
View File
@@ -30,7 +30,10 @@ dependencies = [
"python-dotenv>=1.0.0",
"sqlalchemy>=2.0.0",
"alembic>=1.12.0",
"fastapi>=0.100.0",
# 0.137.0 regressed include_router: routed endpoints no longer appear in
# app.routes (they still serve, but introspection breaks). Pin below it
# until a fixed release lands. See test_app_factory metrics route checks.
"fastapi>=0.100.0,<0.137.0",
"starlette>=0.40.0,<1.0.0",
"uvicorn[standard]>=0.23.0",
"paho-mqtt>=2.0.0",