From b99d8206911dab245ad8f74facd35a69855ce03d Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Wed, 6 Apr 2022 09:59:11 +0300 Subject: [PATCH 1/8] add deprecation warning --- redisgraph/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/redisgraph/__init__.py b/redisgraph/__init__.py index 34fd737..202c4fe 100644 --- a/redisgraph/__init__.py +++ b/redisgraph/__init__.py @@ -1,4 +1,9 @@ +from warnings import warn from .node import Node # noqa from .edge import Edge # noqa from .graph import Graph # noqa from .path import Path # noqa + +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) From c1f76415a5c7c13cba9e037d6a142bcd9bd67b7f Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Wed, 6 Apr 2022 10:00:25 +0300 Subject: [PATCH 2/8] 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 5230405..1f705b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "redisgraph" -version = "2.4.4" +version = "2.4.5" description = "RedisGraph Python Client" authors = ["Redis "] 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' ] [tool.poetry.urls] From 3ad0f7622b60e92469dbae61be4c5f3f45a08909 Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Wed, 6 Apr 2022 10:05:46 +0300 Subject: [PATCH 3/8] lint --- redisgraph/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redisgraph/__init__.py b/redisgraph/__init__.py index 202c4fe..2062a8d 100644 --- a/redisgraph/__init__.py +++ b/redisgraph/__init__.py @@ -5,5 +5,5 @@ from .path import Path # noqa 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) + "This library is deprecated, and all features have been merged into redis-py.", + DeprecationWarning, stacklevel=2) From 75c1d1bcf62afe9813df53d8c4a86f9ef94ac6ed Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Wed, 6 Apr 2022 10:33:20 +0300 Subject: [PATCH 4/8] lint --- redisgraph/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redisgraph/__init__.py b/redisgraph/__init__.py index 2062a8d..002d7bb 100644 --- a/redisgraph/__init__.py +++ b/redisgraph/__init__.py @@ -5,5 +5,5 @@ from .path import Path # noqa warn("Please upgrade to redis-py (https://pypi.org/project/redis/) " - "This library is deprecated, and all features have been merged into redis-py.", +"This library is deprecated, and all features have been merged into redis-py.", DeprecationWarning, stacklevel=2) From c193f67ffd1e081f872c74227fd184337e9b8c05 Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Wed, 6 Apr 2022 10:36:05 +0300 Subject: [PATCH 5/8] lint --- redisgraph/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/redisgraph/__init__.py b/redisgraph/__init__.py index 002d7bb..9a636a5 100644 --- a/redisgraph/__init__.py +++ b/redisgraph/__init__.py @@ -5,5 +5,4 @@ from .path import Path # noqa 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) +"This library is deprecated, and all features have been merged into redis-py.", DeprecationWarning, stacklevel=2) From d88979008ca5e595ed36396e2e02f90bd26e7df6 Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Wed, 6 Apr 2022 10:40:27 +0300 Subject: [PATCH 6/8] lint --- redisgraph/__init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/redisgraph/__init__.py b/redisgraph/__init__.py index 9a636a5..04043f0 100644 --- a/redisgraph/__init__.py +++ b/redisgraph/__init__.py @@ -4,5 +4,9 @@ from .graph import Graph # noqa from .path import Path # noqa -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) +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 +) From 486680952b299300d37cf241577ef05648b4f591 Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Wed, 6 Apr 2022 11:06:30 +0300 Subject: [PATCH 7/8] lint --- redisgraph/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redisgraph/__init__.py b/redisgraph/__init__.py index 04043f0..9faacf6 100644 --- a/redisgraph/__init__.py +++ b/redisgraph/__init__.py @@ -8,5 +8,5 @@ "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 + stacklevel=2, ) From 166daae1a0a83f9c7396d56187effe48ffbdf28c Mon Sep 17 00:00:00 2001 From: dvora-h <67596500+dvora-h@users.noreply.github.com> Date: Mon, 11 Apr 2022 14:59:42 +0300 Subject: [PATCH 8/8] linter --- redisgraph/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/redisgraph/__init__.py b/redisgraph/__init__.py index 9faacf6..e283cea 100644 --- a/redisgraph/__init__.py +++ b/redisgraph/__init__.py @@ -7,6 +7,4 @@ 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, -) + DeprecationWarning, stacklevel=2)