From 209e5b584e6c8aefaae7e71bf5e488aa11978142 Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Tue, 5 Apr 2022 13:33:28 +0300 Subject: [PATCH 1/3] deprecation warning --- redisearch/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/redisearch/__init__.py b/redisearch/__init__.py index 473af6c..ca721d8 100644 --- a/redisearch/__init__.py +++ b/redisearch/__init__.py @@ -1,3 +1,4 @@ +from warnings import warn from .result import Result from .document import Document from .client import Client, NumericField, TextField, GeoField, TagField, IndexDefinition @@ -6,3 +7,7 @@ from .auto_complete import AutoCompleter, Suggestion +warn("As of redis-py 4.0.0 this library is deprecated. " +"It's features have been merged into redis-py. " +"Please either install it from pypi or the repo." +, DeprecationWarning, stacklevel=2) From 8018781ecc3a95b6058ebe04980b10ede2f933a9 Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Tue, 5 Apr 2022 13:34:55 +0300 Subject: [PATCH 2/3] change development status and update version --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index caa5520..7a40947 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "redisearch" -version = "2.1.1" +version = "2.1.2" description = "RedisSearch Python Client" authors = ["RedisLabs "] license = "BSD-3-Clause" @@ -16,7 +16,7 @@ classifiers = [ 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'License :: OSI Approved :: BSD License', - 'Development Status :: 5 - Production/Stable' + 'Development Status :: 7 - Inactive' ] keywords = ["Redis Search Extension"] From 0e7852739871ef40f2374d94ca1f3843e70e5ca7 Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Wed, 6 Apr 2022 09:32:32 +0300 Subject: [PATCH 3/3] change warning --- redisearch/__init__.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/redisearch/__init__.py b/redisearch/__init__.py index ca721d8..af2c450 100644 --- a/redisearch/__init__.py +++ b/redisearch/__init__.py @@ -7,7 +7,6 @@ from .auto_complete import AutoCompleter, Suggestion -warn("As of redis-py 4.0.0 this library is deprecated. " -"It's features have been merged into redis-py. " -"Please either install it from pypi or the repo." -, DeprecationWarning, stacklevel=2) +warn("Please upgrade to redis-py (https://pypi.org/project/redis/) " +"This library is deprecated, and all features have been merged into redis-py.", +DeprecationWarning, stacklevel=2)