Skip to content

Commit cc65470

Browse files
committed
Remove deprecated as a dependency
1 parent 1912a2f commit cc65470

File tree

3 files changed

+69
-0
lines changed

3 files changed

+69
-0
lines changed

debian/changelog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
python-redis (4.3.4-3pexip2) pexip; urgency=medium
2+
3+
* Remove deprecated functions
4+
* Remove deprecated as a dependency
5+
6+
-- Huw Jones <[email protected]> Wed, 15 Feb 2023 13:51:21 +0100
7+
18
python-redis (4.3.4-3pexip1) pexip; urgency=medium
29

310
* New upstream version
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
--- a/redis/commands/json/commands.py
2+
+++ b/redis/commands/json/commands.py
3+
@@ -2,8 +2,6 @@
4+
from json import JSONDecodeError, loads
5+
from typing import Dict, List, Optional, Union
6+
7+
-from deprecated import deprecated
8+
-
9+
from redis.exceptions import DataError
10+
11+
from ._util import JsonType
12+
@@ -137,17 +135,6 @@
13+
"JSON.NUMINCRBY", name, str(path), self._encode(number)
14+
)
15+
16+
- @deprecated(version="4.0.0", reason="deprecated since redisjson 1.0.0")
17+
- def nummultby(self, name: str, path: str, number: int) -> str:
18+
- """Multiply the numeric (integer or floating point) JSON value under
19+
- ``path`` at key ``name`` with the provided ``number``.
20+
-
21+
- For more information see `JSON.NUMMULTBY <https://redis.io/commands/json.nummultby>`_.
22+
- """ # noqa
23+
- return self.execute_command(
24+
- "JSON.NUMMULTBY", name, str(path), self._encode(number)
25+
- )
26+
-
27+
def clear(self, name: str, path: Optional[str] = Path.root_path()) -> int:
28+
"""Empty arrays and objects (to have zero slots/keys without deleting the
29+
array/object).
30+
@@ -367,21 +354,3 @@
31+
pieces.append(key)
32+
pieces.append(str(path))
33+
return self.execute_command("JSON.DEBUG", *pieces)
34+
-
35+
- @deprecated(
36+
- version="4.0.0", reason="redisjson-py supported this, call get directly."
37+
- )
38+
- def jsonget(self, *args, **kwargs):
39+
- return self.get(*args, **kwargs)
40+
-
41+
- @deprecated(
42+
- version="4.0.0", reason="redisjson-py supported this, call get directly."
43+
- )
44+
- def jsonmget(self, *args, **kwargs):
45+
- return self.mget(*args, **kwargs)
46+
-
47+
- @deprecated(
48+
- version="4.0.0", reason="redisjson-py supported this, call get directly."
49+
- )
50+
- def jsonset(self, *args, **kwargs):
51+
- return self.set(*args, **kwargs)
52+
--- a/setup.py
53+
+++ b/setup.py
54+
@@ -32,7 +32,6 @@
55+
author_email="[email protected]",
56+
python_requires=">=3.6",
57+
install_requires=[
58+
- "deprecated>=1.2.3",
59+
"packaging>=20.4",
60+
'importlib-metadata >= 1.0; python_version < "3.8"',
61+
'typing-extensions; python_version<"3.8"',

debian/patches/series

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pexip-0001-remove-deprecated.patch

0 commit comments

Comments
 (0)