You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sphinx-autobuild requires "starlette>=0.35". fast-api<0.99 (the version we're currently pinned to) requires starlette<0.28.0,>=0.27.0 and so there is a clash in dependencies. This is causing issues with deploying hyperion.
The best solution to this seems to be to upgrade to the latest fast-api, which is on a more up-to-date starlette. Is there a specific reason we're pinned to 0.99?
Correction: It's not because of pydantic, it's because later versions of FastAPI generate a newer version of the openapi schema. We use swagger codegen against that in GDA, which is currently incompatible with newer versions of openapi, see: swagger-api/swagger-codegen#10446
Activity
callumforrester commentedon May 7, 2024
It is currently pinned because
fastapi>0.99requires pydantic v2, and we're not compatible with that yet. Have made a stub issue for it: #455DominicOram commentedon May 7, 2024
How would you feel about pinning
sphinx-autobuildto2024.2.4? This version doesn't have thestarletterequirementcallumforrester commentedon May 7, 2024
No objection from my end
DominicOram commentedon May 7, 2024
I will do that then
callumforrester commentedon May 7, 2024
Correction: It's not because of pydantic, it's because later versions of FastAPI generate a newer version of the openapi schema. We use swagger codegen against that in GDA, which is currently incompatible with newer versions of openapi, see: swagger-api/swagger-codegen#10446
(#454) Pin sphinx-autobuild to fix starlette clash
Pin sphinx-autobuild to fix starlette clash (#456)