Upgrade dependencies

This commit is contained in:
grossmj 2024-12-28 18:21:18 +07:00
parent 8a900588ca
commit d4a9a21af9
No known key found for this signature in database
GPG Key ID: 1E7DD6DBB53FF3D7
2 changed files with 19 additions and 14 deletions

View File

@ -18,14 +18,19 @@
import ipaddress import ipaddress
import aiohttp import aiohttp
import asyncio import asyncio
import async_timeout
import socket import socket
import json import json
import sys import sys
import io import io
from fastapi import HTTPException from fastapi import HTTPException
from aiohttp import web from aiohttp import web
if sys.version_info >= (3, 11):
from asyncio import timeout as asynctimeout
else:
from async_timeout import timeout as asynctimeout
from ..utils import parse_version from ..utils import parse_version
from ..utils.asyncio import locking from ..utils.asyncio import locking
from ..controller.controller_error import ( from ..controller.controller_error import (
@ -503,7 +508,7 @@ class Compute:
return self._getUrl(path) return self._getUrl(path)
async def _run_http_query(self, method, path, data=None, timeout=120, raw=False): async def _run_http_query(self, method, path, data=None, timeout=120, raw=False):
async with async_timeout.timeout(delay=timeout): async with asynctimeout(delay=timeout):
url = self._getUrl(path) url = self._getUrl(path)
headers = {"content-type": "application/json"} headers = {"content-type": "application/json"}
chunked = None chunked = None

View File

@ -1,23 +1,23 @@
uvicorn==0.32.0 uvicorn==0.34.0
pydantic==2.9.2 pydantic==2.10.4
fastapi==0.115.5 fastapi==0.115.6
python-multipart==0.0.16 python-multipart==0.0.20
websockets==13.1 websockets==14.1
aiohttp>=3.10.10,<3.11 aiohttp>=3.10.10,<3.11
async-timeout==4.0.3 async-timeout==5.0.1; python_version < '3.11'
aiofiles>=24.1.0,<25.0 aiofiles>=24.1.0,<25.0
Jinja2>=3.1.4,<3.2 Jinja2>=3.1.5,<3.2
sentry-sdk>=2.17,<2.18 # optional dependency sentry-sdk>=2.19.2,<2.20 # optional dependency
psutil>=6.1.0 psutil>=6.1.1
distro>=1.9.0 distro>=1.9.0
py-cpuinfo>=9.0.0,<10.0 py-cpuinfo>=9.0.0,<10.0
sqlalchemy==2.0.36 sqlalchemy==2.0.36
aiosqlite==0.20.0 aiosqlite==0.20.0
alembic==1.13.3 alembic==1.14.0
bcrypt==4.2.0 bcrypt==4.2.1
python-jose[cryptography]==3.3.0 python-jose[cryptography]==3.3.0
email-validator==2.2.0 email-validator==2.2.0
watchfiles==0.24.0 watchfiles==1.0.3
zstandard==0.23.0 zstandard==0.23.0
platformdirs>=2.4.0,<3 # platformdirs >=3 conflicts when building Debian packages platformdirs>=2.4.0,<3 # platformdirs >=3 conflicts when building Debian packages
importlib-resources>=1.3; python_version <= '3.9' importlib-resources>=1.3; python_version <= '3.9'