From 97160b2aac20466c0ad8f1a65d0cff5b6568a757 Mon Sep 17 00:00:00 2001 From: Kense Date: Wed, 21 Feb 2024 14:48:34 +0800 Subject: [PATCH] fix: upgrade uvicorn version to fix streaming response interruption bug uvicorn issue and pr: https://github.com/encode/uvicorn/issues/1637 https://github.com/encode/uvicorn/pull/2243 --- poetry.lock | 11 ++++++----- pyproject.toml | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/poetry.lock b/poetry.lock index 03835a6..bf45246 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2091,18 +2091,19 @@ zstd = ["zstandard (>=0.18.0)"] [[package]] name = "uvicorn" -version = "0.21.1" +version = "0.27.1" description = "The lightning-fast ASGI server." optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "uvicorn-0.21.1-py3-none-any.whl", hash = "sha256:e47cac98a6da10cd41e6fd036d472c6f58ede6c5dbee3dbee3ef7a100ed97742"}, - {file = "uvicorn-0.21.1.tar.gz", hash = "sha256:0fac9cb342ba099e0d582966005f3fdba5b0290579fed4a6266dc702ca7bb032"}, + {file = "uvicorn-0.27.1-py3-none-any.whl", hash = "sha256:5c89da2f3895767472a35556e539fd59f7edbe9b1e9c0e1c99eebeadc61838e4"}, + {file = "uvicorn-0.27.1.tar.gz", hash = "sha256:3d9a267296243532db80c83a959a3400502165ade2c1338dea4e67915fd4745a"}, ] [package.dependencies] click = ">=7.0" h11 = ">=0.8" +typing-extensions = {version = ">=4.0", markers = "python_version < \"3.11\""} [package.extras] standard = ["colorama (>=0.4)", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", "pyyaml (>=5.1)", "uvloop (>=0.14.0,!=0.15.0,!=0.15.1)", "watchfiles (>=0.13)", "websockets (>=10.4)"] @@ -2249,4 +2250,4 @@ multidict = ">=4.0" [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "6c732643291dc4ae9c667b8624152219b22ee677e1b27a7f73024068dd3624ba" +content-hash = "7691078bf045368d46a23ffc02ac36e0c06f1f6f015ed02a800cb45670ffef63" diff --git a/pyproject.toml b/pyproject.toml index 02929d3..5e64917 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -31,7 +31,7 @@ sqlakeyset = ">=2.0.1680321678,<2.1.0" loguru = ">=0.6.0,<0.7.0" sqlmodel = ">=0.0.11,<0.1.0" starlette = "^0.27.0" -uvicorn = ">=0.21.0,<0.22.0" +uvicorn = "^0.27.1" pymysql = ">=1.1.0,<1.2.0" python-multipart = ">=0.0.6,<0.1.0" redis = ">=5.0.1,<5.1.0"