From 03add792a105304e59ef6e87892be510cf8d7e2e Mon Sep 17 00:00:00 2001 From: Wu Clan Date: Sat, 28 Sep 2024 15:05:18 +0800 Subject: [PATCH] Bump redis from 5.0.1 to 5.1.0 (#433) * Bump redis from 5.0.1 to 5.1.0 * fix requirements.txt --- backend/database/db_redis.py | 2 +- backend/pdm.lock | 28 +++++++++++++--------------- backend/pyproject.toml | 2 +- backend/requirements.txt | 6 +++--- 4 files changed, 18 insertions(+), 20 deletions(-) diff --git a/backend/database/db_redis.py b/backend/database/db_redis.py index 584aabc5..b6776963 100644 --- a/backend/database/db_redis.py +++ b/backend/database/db_redis.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- import sys -from redis.asyncio.client import Redis +from redis.asyncio import Redis from redis.exceptions import AuthenticationError, TimeoutError from backend.common.log import log diff --git a/backend/pdm.lock b/backend/pdm.lock index 85d23da2..fa9725fd 100644 --- a/backend/pdm.lock +++ b/backend/pdm.lock @@ -5,7 +5,7 @@ groups = ["default", "deploy", "lint"] strategy = ["inherit_metadata"] lock_version = "4.5.0" -content_hash = "sha256:0fd85e63a57538dc5a853da057530726ead9eb79c4eb0b65636491c116b561c5" +content_hash = "sha256:2bef5b0723b1e6cb29b285c0a6445d9b8f57b39d8aeb6bab0b63cae5073e6f05" [[metadata.targets]] requires_python = ">=3.10,<3.13" @@ -118,7 +118,7 @@ version = "4.0.3" requires_python = ">=3.7" summary = "Timeout context manager for asyncio programs" groups = ["default"] -marker = "python_full_version <= \"3.11.2\"" +marker = "python_full_version < \"3.11.3\"" dependencies = [ "typing-extensions>=3.6.5; python_version < \"3.8\"", ] @@ -1550,34 +1550,32 @@ files = [ [[package]] name = "redis" -version = "5.0.1" -requires_python = ">=3.7" +version = "5.1.0" +requires_python = ">=3.8" summary = "Python client for Redis database and key-value store" groups = ["default"] dependencies = [ - "async-timeout>=4.0.2; python_full_version <= \"3.11.2\"", - "importlib-metadata>=1.0; python_version < \"3.8\"", - "typing-extensions; python_version < \"3.8\"", + "async-timeout>=4.0.3; python_full_version < \"3.11.3\"", ] files = [ - {file = "redis-5.0.1-py3-none-any.whl", hash = "sha256:ed4802971884ae19d640775ba3b03aa2e7bd5e8fb8dfaed2decce4d0fc48391f"}, - {file = "redis-5.0.1.tar.gz", hash = "sha256:0dab495cd5753069d3bc650a0dde8a8f9edde16fc5691b689a566eda58100d0f"}, + {file = "redis-5.1.0-py3-none-any.whl", hash = "sha256:fd4fccba0d7f6aa48c58a78d76ddb4afc698f5da4a2c1d03d916e4fd7ab88cdd"}, + {file = "redis-5.1.0.tar.gz", hash = "sha256:b756df1e4a3858fcc0ef861f3fc53623a96c41e2b1f5304e09e0fe758d333d40"}, ] [[package]] name = "redis" -version = "5.0.1" +version = "5.1.0" extras = ["hiredis"] -requires_python = ">=3.7" +requires_python = ">=3.8" summary = "Python client for Redis database and key-value store" groups = ["default"] dependencies = [ - "hiredis>=1.0.0", - "redis==5.0.1", + "hiredis>=3.0.0", + "redis==5.1.0", ] files = [ - {file = "redis-5.0.1-py3-none-any.whl", hash = "sha256:ed4802971884ae19d640775ba3b03aa2e7bd5e8fb8dfaed2decce4d0fc48391f"}, - {file = "redis-5.0.1.tar.gz", hash = "sha256:0dab495cd5753069d3bc650a0dde8a8f9edde16fc5691b689a566eda58100d0f"}, + {file = "redis-5.1.0-py3-none-any.whl", hash = "sha256:fd4fccba0d7f6aa48c58a78d76ddb4afc698f5da4a2c1d03d916e4fd7ab88cdd"}, + {file = "redis-5.1.0.tar.gz", hash = "sha256:b756df1e4a3858fcc0ef861f3fc53623a96c41e2b1f5304e09e0fe758d333d40"}, ] [[package]] diff --git a/backend/pyproject.toml b/backend/pyproject.toml index 769b7ef3..e3156d94 100644 --- a/backend/pyproject.toml +++ b/backend/pyproject.toml @@ -36,7 +36,7 @@ dependencies = [ "pytest==7.2.2", "pytest-pretty==1.2.0", "python-jose==3.3.0", - "redis[hiredis]==5.0.1", + "redis[hiredis]==5.1.0", "SQLAlchemy==2.0.30", "user-agents==2.2.0", "uvicorn[standard]==0.29.0", diff --git a/backend/requirements.txt b/backend/requirements.txt index d95143ad..be320916 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -8,7 +8,7 @@ annotated-types==0.7.0 anyio==4.4.0 asgi-correlation-id==4.3.3 asgiref==3.8.1 -async-timeout==4.0.3; python_full_version <= "3.11.2" +async-timeout==4.0.3; python_full_version < "3.11.3" asyncmy==0.2.9 attrs==24.2.0 bcrypt==4.0.1 @@ -88,8 +88,8 @@ python-jose==3.3.0 python-multipart==0.0.9 pytz==2024.1 pyyaml==6.0.2 -redis==5.0.1 -redis[hiredis]==5.0.1 +redis==5.1.0 +redis[hiredis]==5.1.0 rich==13.8.0 rsa==4.9 ruff==0.6.4