Skip to content

Commit a4b4064

Browse files
authored
setup.cfg: Block redis-py 4.0.0 and 4.0.1 but not >=4.0.2 (#542, #570) (#576)
Upstream commit redis/redis-py@d2b2333 that is included with redis-py >=4.0.2 adds method Redis.sentinel_masters by making class Redis inherit from SentinelCommands, where the related code resides. Related to issue #542, follow-up to pull request #570 This reverts (parts of) commit ef945d6.
1 parent c7c3ab3 commit a4b4064

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

changelog.d/542.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Block use with broken redis-py 4.0.0 and 4.0.1

changelog.d/576.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Unblock redis-py >=4.0.2

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ packages =
3838
django_redis.compressors
3939
install_requires =
4040
Django>=2.2
41-
redis>=3,<4
41+
redis>=3,!=4.0.0,!=4.0.1
4242

4343
[options.extras_require]
44-
hiredis = redis[hiredis]>=3,<4
44+
hiredis = redis[hiredis]>=3,!=4.0.0,!=4.0.1
4545

4646
[coverage:run]
4747
omit =

0 commit comments

Comments
 (0)