Skip to content

Commit

Permalink
Deps: replace aioredis with redis-py (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
masipcat committed Oct 3, 2022
1 parent 209855d commit fb4d5bc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CHANGELOG
6.4.3 (unreleased)
------------------

- Content: fix async_get() is catching KeyError exceptions unrelated to txn.get_child()
- Deps: replace aioredis with redis-py
[masipcat]


Expand Down
2 changes: 1 addition & 1 deletion contrib-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
aioredis==2.0.0
redis==4.3.4
html2text==2019.8.11
aiosmtplib==1.1.4
pre-commit==1.18.2
Expand Down
4 changes: 2 additions & 2 deletions docs/source/contrib/cache.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ applications:
This option is not recommended as they are not invalidating the memory objects.
Its needed to add `aioredis` as a dependency on your project
Its needed to add `redis` as a dependency on your project

### Configuration

Expand All @@ -37,7 +37,7 @@ cache:

This option is the recommended one for more than one process running guillotina on the same DB.

Its needed to add `aioredis` as a dependency on your project
Its needed to add `redis` as a dependency on your project

### Configuration

Expand Down
8 changes: 4 additions & 4 deletions guillotina/contrib/redis/driver.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
try:
import aioredis
import redis.asyncio as aioredis
except ImportError:
print("If you add guillotina.contrib.redis you need to add aioredis on your requirements")
print("If you add guillotina.contrib.redis you need to add redis>4.2.0rc1 on your requirements")
raise

from aioredis.client import PubSub
from aioredis.exceptions import ConnectionError
from redis.client import PubSub
from redis.exceptions import ConnectionError
from guillotina import app_settings
from guillotina import metrics
from guillotina.contrib.redis.exceptions import NoRedisConfigured
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
'aiohttp>=3.0.0,<3.6.0;python_version<"3.8"',
'aiohttp>=3.6.0,<4.0.0;python_version>="3.8"',
],
"redis": ['aioredis==2.0.0'],
"redis": ['redis>=4.3.0'],
"mailer": ["html2text>=2018.1.9", "aiosmtplib>=1.0.6"],
"memcached": ["emcache"],
"validation": ["pytz==2020.1"],
Expand Down

0 comments on commit fb4d5bc

Please sign in to comment.