From 1caa6b10f3ac29491685551cb5c668dc08f4b9ba Mon Sep 17 00:00:00 2001 From: Edward Oakes Date: Wed, 12 Jul 2023 12:41:26 -0500 Subject: [PATCH] [serve] Pin `fastapi==0.99.1` in `requirements-doc.txt` to fix API reference (#37340) See https://github.com/ray-project/ray/issues/37337 for debugging context. For some reason, `fastapi==0.100.0` breaks the API reference. For now, let's pin it to a working version to fix the docs. We should separately debug and fix the issue. --- doc/requirements-doc.txt | 2 +- python/requirements/test-requirements.txt | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/doc/requirements-doc.txt b/doc/requirements-doc.txt index 6b89f9d5b3997..2e4f4632cba27 100644 --- a/doc/requirements-doc.txt +++ b/doc/requirements-doc.txt @@ -12,7 +12,7 @@ fairscale<=0.4.0; python_version < '3.7' filelock flask flatbuffers -fastapi +fastapi==0.99.1 jsonschema mock numpy diff --git a/python/requirements/test-requirements.txt b/python/requirements/test-requirements.txt index 6146f002f92e2..fddc16f39a64d 100644 --- a/python/requirements/test-requirements.txt +++ b/python/requirements/test-requirements.txt @@ -20,10 +20,7 @@ cloudpickle==2.2.0 cryptography==38.0.1 cython==0.29.32 dataclasses; python_version < '3.7' -# 0.85.0 of fastapi is breaking the ci because -# requires newer starlette -> newer version typing-extensions -# conflicting with tensorflow 2.6 -fastapi==0.75.0 +fastapi==0.99.1 feather-format==0.4.1 # Keep compatible with Werkzeug flask==2.1.3 @@ -101,7 +98,7 @@ importlib-metadata==4.10.0 # Some packages have downstream dependencies that we have to specify here to resolve conflicts. # Feel free to add (or remove!) packages here liberally. tensorboardX==2.6.0 -starlette==0.17.1 +starlette==0.27.0 h11==0.12.0 markdown-it-py==2.2.0 attrs==21.4.0