Skip to content

Commit 2d92e39

Browse files
committed
Remove packaging as a dependency
1 parent cc65470 commit 2d92e39

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-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-3pexip3) pexip; urgency=medium
2+
3+
* Remove use of packaging
4+
* Remove packaging as a dependency
5+
6+
-- Huw Jones <[email protected]> Tue, 21 Feb 2023 16:31:20 +0000
7+
18
python-redis (4.3.4-3pexip2) pexip; urgency=medium
29

310
* Remove deprecated functions
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
--- a/redis/connection.py
2+
+++ b/redis/connection.py
3+
@@ -10,8 +10,6 @@
4+
from time import time
5+
from urllib.parse import parse_qs, unquote, urlparse
6+
7+
-from packaging.version import Version
8+
-
9+
from redis.backoff import NoBackoff
10+
from redis.exceptions import (
11+
AuthenticationError,
12+
@@ -54,10 +52,9 @@
13+
if HIREDIS_AVAILABLE:
14+
import hiredis
15+
16+
- hiredis_version = Version(hiredis.__version__)
17+
- HIREDIS_SUPPORTS_CALLABLE_ERRORS = hiredis_version >= Version("0.1.3")
18+
- HIREDIS_SUPPORTS_BYTE_BUFFER = hiredis_version >= Version("0.1.4")
19+
- HIREDIS_SUPPORTS_ENCODING_ERRORS = hiredis_version >= Version("1.0.0")
20+
+ HIREDIS_SUPPORTS_CALLABLE_ERRORS = False
21+
+ HIREDIS_SUPPORTS_BYTE_BUFFER = False
22+
+ HIREDIS_SUPPORTS_ENCODING_ERRORS = False
23+
24+
HIREDIS_USE_BYTE_BUFFER = True
25+
# only use byte buffer if hiredis supports it
26+
--- a/setup.py
27+
+++ b/setup.py
28+
@@ -32,7 +32,6 @@
29+
author_email="[email protected]",
30+
python_requires=">=3.6",
31+
install_requires=[
32+
- "packaging>=20.4",
33+
'importlib-metadata >= 1.0; python_version < "3.8"',
34+
'typing-extensions; python_version<"3.8"',
35+
"async-timeout>=4.0.2",

debian/patches/series

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

0 commit comments

Comments
 (0)