From 7fd5971a8e58e375ab57faea53cfe9da9fbb3421 Mon Sep 17 00:00:00 2001 From: Ravi Kumar Pilla Date: Thu, 16 Nov 2023 08:17:16 -0600 Subject: [PATCH] Bump FAST API upper bounds (#1634) * create pydantic flowchart classes Signed-off-by: ravi-kumar-pilla * fixing pydantic class conversions Signed-off-by: ravi-kumar-pilla * minor modifications and code comments Signed-off-by: ravi-kumar-pilla * fix pytests for flowchart and managers Signed-off-by: ravi-kumar-pilla * fix pytests Signed-off-by: ravi-kumar-pilla * fix lint errors and pytests Signed-off-by: ravi-kumar-pilla * fix lint issues and merge main Signed-off-by: ravi-kumar-pilla * fix initialization issues and lint issues Signed-off-by: ravi-kumar-pilla * fix push issue Signed-off-by: ravi-kumar-pilla * revert class method to static method Signed-off-by: ravi-kumar-pilla * update method comments Signed-off-by: ravi-kumar-pilla * revert back method shuffles for better PR reviews Signed-off-by: ravi-kumar-pilla * addressing PR comments Signed-off-by: ravi-kumar-pilla * not-working version of pydantic shift Signed-off-by: ravi-kumar-pilla * non-working p2 Signed-off-by: ravi-kumar-pilla * not-working v3 Signed-off-by: ravi-kumar-pilla * modify metadata classes and update pytests Signed-off-by: ravi-kumar-pilla * fix all pytests Signed-off-by: ravi-kumar-pilla * fix pytest for coverage Signed-off-by: ravi-kumar-pilla * address PR comments1 Signed-off-by: ravi-kumar-pilla * fix lint issues Signed-off-by: ravi-kumar-pilla * add hash for pylint Signed-off-by: ravi-kumar-pilla * fix lint errors Signed-off-by: ravi-kumar-pilla * fix lint errors Signed-off-by: ravi-kumar-pilla * upgrade fastapi and test Signed-off-by: ravi-kumar-pilla * upgrade pydantic to accomodate fastapi Signed-off-by: ravi-kumar-pilla * pin lowerbound pydantic version Signed-off-by: ravi-kumar-pilla * lint fix Signed-off-by: ravi-kumar-pilla * add release note Signed-off-by: ravi-kumar-pilla * address PR comments Signed-off-by: ravi-kumar-pilla * modify release note Signed-off-by: ravi-kumar-pilla --------- Signed-off-by: ravi-kumar-pilla Co-authored-by: rashidakanchwala <37628668+rashidakanchwala@users.noreply.github.com> --- RELEASE.md | 1 + package/features/steps/lower_requirements.txt | 1 + package/requirements.txt | 4 +++- package/test_requirements.txt | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/RELEASE.md b/RELEASE.md index ad403abd86..aac66f46b7 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -15,6 +15,7 @@ Please follow the established format: - Ensure Kedro-Viz works when hosted on a URL subpath. (#1621) - Fix shareable URL modal to appear across the app. (#1639) - Refactor flowchart dataclasses to pydantic base models. (#1565) +- Bump FAST API upper bounds. (#1634) # Release 6.6.1 diff --git a/package/features/steps/lower_requirements.txt b/package/features/steps/lower_requirements.txt index 317309a4c2..1fcded74bd 100644 --- a/package/features/steps/lower_requirements.txt +++ b/package/features/steps/lower_requirements.txt @@ -13,3 +13,4 @@ strawberry-graphql==0.192.0 networkx==2.5 orjson==3.9 secure==0.3.0 +pydantic==1.10 \ No newline at end of file diff --git a/package/requirements.txt b/package/requirements.txt index b3d2b9cd36..eae1065c81 100644 --- a/package/requirements.txt +++ b/package/requirements.txt @@ -1,7 +1,9 @@ packaging~=23.0 kedro>=0.17.5 ipython>=7.0.0, <9.0 -fastapi>=0.73.0, <0.96.0 +fastapi>=0.73.0,<0.200.0; python_version >= '3.8' +fastapi>=0.73.0,<0.104.0; python_version < '3.8' +pydantic<2 fsspec[s3]>=2021.4, <2024.1 aiofiles>=22.1.0 uvicorn[standard]~=0.22.0 diff --git a/package/test_requirements.txt b/package/test_requirements.txt index 30db55eda9..5a6d2d0d71 100644 --- a/package/test_requirements.txt +++ b/package/test_requirements.txt @@ -8,7 +8,6 @@ behave~=1.2 black~=23.3 boto3~=1.26 flake8~=5.0 -fastapi[all]>=0.73.0, <0.96.0 isort~=5.11 matplotlib~=3.5 mypy~=1.0 @@ -26,6 +25,7 @@ sqlalchemy-stubs~=0.4 strawberry-graphql[cli]>=0.99.0, <1.0 trufflehog~=2.2 typing_extensions~=4.7.0; python_version < '3.9' +httpx~=0.24.0 # mypy types-aiofiles==0.1.3