Skip to content

Commit 04622f1

Browse files
saiarcot895liorghub
authored andcommitted
redis-dump-load: Pin the redis package to use 3.5.3 (sonic-net#9001)
Redis 4.0.0b1 has been uploaded to pip as a prerelease version. This version drops support for Python 2 and only supports Python 3. Because setup.py is being run, it will use the latest version of a package and not the latest stable version (which is still 3.5.3). Therefore, pin the redis package to version 3.5.3, so that it will work for both Python 2 and 3. #### How to verify it Make sure that redis-dump-load for Python 2 builds today.
1 parent 58f082c commit 04622f1

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Pin the redis package to version 3.5.3 (the last version that supports both
2+
Python 2 and 3).
3+
4+
Signed-off-by: Saikrishna Arcot <[email protected]>
5+
6+
diff --git a/requirements.txt b/requirements.txt
7+
index 7800f0f..3fc0632 100644
8+
--- a/requirements.txt
9+
+++ b/requirements.txt
10+
@@ -1 +1 @@
11+
-redis
12+
+redis==3.5.3
13+
diff --git a/setup.py b/setup.py
14+
index 8ccf31f..6db9ec4 100644
15+
--- a/setup.py
16+
+++ b/setup.py
17+
@@ -17,7 +17,7 @@ setup(name=package_name,
18+
author_email='[email protected]',
19+
url='http://github.com/p/redis-dump-load',
20+
py_modules=['redisdl'],
21+
- install_requires=['redis'],
22+
+ install_requires=['redis==3.5.3'],
23+
data_files=[
24+
(doc_dir, data_files),
25+
],

src/redis-dump-load.patch/series

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
0001-Use-pipelines-when-dumping-52.patch
22
0002-Fix-setup.py-for-test-and-bdist_wheel.patch
3+
0003-use-redis-3.5.3.patch

0 commit comments

Comments
 (0)