Skip to content

Commit

Permalink
Merge pull request #23 from madkote/22-fix-pip-warnings-on-dependencies
Browse files Browse the repository at this point in the history
[22] limit redis version to >=4.3.0,<5 due to issues with async sentinel
  • Loading branch information
madkote authored Jun 3, 2024
2 parents 9c21644 + 533f471 commit aa30b4b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion fastapi_plugins/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down
3 changes: 2 additions & 1 deletion tests/test_redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit aa30b4b

Please sign in to comment.