diff --git a/CHANGES.md b/CHANGES.md index 2783342..78d2d7e 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,6 @@ # Changes +## 0.13.1 (2024-06-03) +- `[fix]` limit redis version to `>=4.3.0,<5` due to issues with async sentinel ## 0.13.0 (2024-02-16) - `[feature]` updates for Pydantic 2 ## 0.12.0 (2023-03-24) diff --git a/fastapi_plugins/version.py b/fastapi_plugins/version.py index d130550..1b30dc4 100644 --- a/fastapi_plugins/version.py +++ b/fastapi_plugins/version.py @@ -2,6 +2,6 @@ # -*- coding: utf-8 -*- # fastapi_plugins.version -VERSION = (0, 13, 0) +VERSION = (0, 13, 1) __version__ = '.'.join(str(x) for x in VERSION) diff --git a/setup.py b/setup.py index 3c07a6d..b311695 100644 --- a/setup.py +++ b/setup.py @@ -83,7 +83,7 @@ def package_files(directory=None): 'tenacity>=8.0.0', # 'python-json-logger>=2.0.0', - 'redis[hiredis]>=4.3.0', + 'redis[hiredis]>=4.3.0,<5', 'aiojobs>=1.0.0' ] REQUIRES_FAKEREDIS = ['fakeredis[lua]>=1.8.0'] diff --git a/tests/test_redis.py b/tests/test_redis.py index 83a8ff5..1f944b0 100644 --- a/tests/test_redis.py +++ b/tests/test_redis.py @@ -166,7 +166,8 @@ async def test_get_set_ttl(redisapp): value = str(uuid.uuid4()) assert await c.setex('x', c.TTL, value) is not None assert await c.get('x') == value - assert await c.ttl('x') == fastapi_plugins.redis_plugin.config.redis_ttl + ttl = fastapi_plugins.redis_plugin.config.redis_ttl + assert (ttl - 5) <= await c.ttl('x') <= ttl # def redis_must_be_running(cls):