Browse Source

[Python] Up uvicorn versions of requirements (#8321)

Danil Akhtarov 2 years ago
parent
commit
a105dad78a

+ 5 - 5
frameworks/Python/uvicorn/app.py

@@ -1,12 +1,12 @@
-import asyncio
-import asyncpg
-import jinja2
 import os
-import ujson
-from random import randint, sample
 from operator import itemgetter
+from random import randint, sample
 from urllib.parse import parse_qs
 
+import asyncpg
+import jinja2
+import ujson
+
 
 async def setup():
     global pool

+ 5 - 5
frameworks/Python/uvicorn/requirements.txt

@@ -1,7 +1,7 @@
-asyncpg==0.21.0
+asyncpg==0.28.0
 gunicorn==20.1.0
-httptools==0.5.0
-Jinja2==3.0.3
-ujson==5.4.0
+httptools==0.6.0
+Jinja2==3.1.2
+ujson==5.8.0
 uvloop==0.17.0
-uvicorn==0.20.0
+uvicorn==0.22.0

+ 2 - 2
frameworks/Python/uvicorn/uvicorn.dockerfile

@@ -1,10 +1,10 @@
-FROM python:3.8
+FROM python:3.11
 
 ADD ./ /uvicorn
 
 WORKDIR /uvicorn
 
-RUN pip3 install cython==0.29.13 && \
+RUN pip3 install cython==0.29.36 && \
     pip3 install -r /uvicorn/requirements.txt
 
 EXPOSE 8080