From c09b44cc5244ac6b612808df04502832e8e86305 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Sun, 4 Sep 2022 14:24:53 +0100 Subject: [PATCH 1/4] Add deprecation warning on import. --- aioredis/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aioredis/__init__.py b/aioredis/__init__.py index bc048ac2b..7b5f5241f 100644 --- a/aioredis/__init__.py +++ b/aioredis/__init__.py @@ -1,3 +1,5 @@ +import warning + from aioredis.client import Redis, StrictRedis from aioredis.connection import ( BlockingConnectionPool, @@ -34,6 +36,8 @@ def int_or_str(value): __version__ = "2.0.1" VERSION = tuple(map(int_or_str, __version__.split("."))) +warnings.warn("aioredis is no longer maintained. Please install redis-py and rewrite imports as 'from redis import asyncio as aioredis'.", DeprecationWarning) + __all__ = [ "AuthenticationError", "AuthenticationWrongNumberOfArgsError", From 716ce4410229b56919b2d679436f3ce97bf56a55 Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Sun, 4 Sep 2022 14:32:34 +0100 Subject: [PATCH 2/4] Update __init__.py --- aioredis/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aioredis/__init__.py b/aioredis/__init__.py index 7b5f5241f..417d39fa1 100644 --- a/aioredis/__init__.py +++ b/aioredis/__init__.py @@ -1,4 +1,4 @@ -import warning +import warnings from aioredis.client import Redis, StrictRedis from aioredis.connection import ( From 066bb19008c7f0408a2233245e0d56db7b9ee45d Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Sun, 4 Sep 2022 14:35:27 +0100 Subject: [PATCH 3/4] Update __init__.py --- aioredis/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aioredis/__init__.py b/aioredis/__init__.py index 417d39fa1..a558f5fc2 100644 --- a/aioredis/__init__.py +++ b/aioredis/__init__.py @@ -36,7 +36,7 @@ def int_or_str(value): __version__ = "2.0.1" VERSION = tuple(map(int_or_str, __version__.split("."))) -warnings.warn("aioredis is no longer maintained. Please install redis-py and rewrite imports as 'from redis import asyncio as aioredis'.", DeprecationWarning) +warnings.warn("aioredis is no longer maintained. Please 'pip install redis' and rewrite imports as 'from redis import asyncio as aioredis'.", DeprecationWarning) __all__ = [ "AuthenticationError", From 5d8234662d4907778cc38897ef52297fa4ea472c Mon Sep 17 00:00:00 2001 From: Sam Bull Date: Sun, 4 Sep 2022 14:37:08 +0100 Subject: [PATCH 4/4] Drop the rc1 from README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7c4433f3f..85d448f93 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,11 @@ --- -## 📢🚨 Aioredis is now in redis-py 4.2.0rc1+ 🚨🚨 +## 📢🚨 Aioredis is now in redis-py 4.2.0+ 🚨🚨 -Aioredis is now in redis-py 4.2.0rc1+ +Aioredis is now in redis-py 4.2.0+ -To install, just do `pip install redis>=4.2.0rc1`. The code is almost the exact same. You will just need to import like so: +To install, just do `pip install redis>=4.2.0`. The code is almost the exact same. You will just need to import like so: ```python from redis import asyncio as aioredis @@ -14,7 +14,7 @@ from redis import asyncio as aioredis This way you don't have to change all your code, just the imports. -https://github.com/redis/redis-py/releases/tag/v4.2.0rc1 +https://github.com/redis/redis-py/releases/tag/v4.2.0 Now that aioredis is under Redis officially, I hope there will never be an unmaintained, asyncio Redis lib in the Python ecosystem again. I will be helping out maintenance at Redis-py for the foreseeable future just to get some of the asyncio stuff out of the way. There are also some bugs that didn't make it into the [PR](https://github.com/redis/redis-py/pull/1899) that I'll be slowly migrating over throughout the next few weeks -- so long as my exams don't kill me beforehand :)