From 0690fa638f1b507a3a7e56423dfd5072f4f025f2 Mon Sep 17 00:00:00 2001 From: water <672684719@qq.com> Date: Thu, 27 Aug 2026 15:25:26 +0800 Subject: [PATCH] fix(python-fastapi): update requirements for Python 3.14 support Bump typing-extensions to 4.16.0, httptools upper bound to <0.9.0, orjson to 3.12.0, uvloop to 0.22.1 and MarkupSafe to 3.0.3 so that the generated FastAPI server installs from prebuilt wheels on Python 3.14 (drops the old pyo3-based pydantic-core fallback that failed to compile). Fixes #24788. --- .../resources/python-fastapi/requirements.mustache | 10 +++++----- .../server/petstore/python-fastapi/requirements.txt | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/python-fastapi/requirements.mustache b/modules/openapi-generator/src/main/resources/python-fastapi/requirements.mustache index 05d19b30fc51..bfab4265174b 100644 --- a/modules/openapi-generator/src/main/resources/python-fastapi/requirements.mustache +++ b/modules/openapi-generator/src/main/resources/python-fastapi/requirements.mustache @@ -12,13 +12,13 @@ graphene==2.1.8 graphql-core==2.3.2 graphql-relay==2.0.1 h11==0.16.0 -httptools>=0.3.0,<0.7.0 +httptools>=0.3.0,<0.9.0 httpx==0.28.1 idna==3.15 itsdangerous==1.1.0 Jinja2==3.1.4 -MarkupSafe==2.0.1 -orjson==3.11.6 +MarkupSafe==3.0.3 +orjson==3.12.0 promise==2.3 pydantic>=2 python-dotenv==1.2.2 @@ -27,10 +27,10 @@ PyYAML>=5.4.1,<6.1.0 requests==2.33.0 Rx==1.6.1 starlette==0.49.1 -typing-extensions==4.13.2 +typing-extensions==4.16.0 ujson==5.13.0 urllib3==2.7.0 uvicorn==0.13.4 -uvloop==0.21.0 +uvloop==0.22.1 watchgod==0.7 websockets==10.0 diff --git a/samples/server/petstore/python-fastapi/requirements.txt b/samples/server/petstore/python-fastapi/requirements.txt index 05d19b30fc51..bfab4265174b 100644 --- a/samples/server/petstore/python-fastapi/requirements.txt +++ b/samples/server/petstore/python-fastapi/requirements.txt @@ -12,13 +12,13 @@ graphene==2.1.8 graphql-core==2.3.2 graphql-relay==2.0.1 h11==0.16.0 -httptools>=0.3.0,<0.7.0 +httptools>=0.3.0,<0.9.0 httpx==0.28.1 idna==3.15 itsdangerous==1.1.0 Jinja2==3.1.4 -MarkupSafe==2.0.1 -orjson==3.11.6 +MarkupSafe==3.0.3 +orjson==3.12.0 promise==2.3 pydantic>=2 python-dotenv==1.2.2 @@ -27,10 +27,10 @@ PyYAML>=5.4.1,<6.1.0 requests==2.33.0 Rx==1.6.1 starlette==0.49.1 -typing-extensions==4.13.2 +typing-extensions==4.16.0 ujson==5.13.0 urllib3==2.7.0 uvicorn==0.13.4 -uvloop==0.21.0 +uvloop==0.22.1 watchgod==0.7 websockets==10.0