Wednesday, December 05, 2018

UPDATE: databases/py-redis-3.0.1

diff --git Makefile Makefile
index 0d6e4a7e5b6..315b9964ca6 100644
--- Makefile
+++ Makefile
@@ -2,12 +2,11 @@

COMMENT = Python interface to Redis

-MODPY_EGG_VERSION = 2.10.6
+MODPY_EGG_VERSION = 3.0.1

GH_ACCOUNT = andymccurdy
GH_PROJECT = redis-py
GH_TAGNAME = ${MODPY_EGG_VERSION}
-REVISION = 0

DISTNAME = ${GH_PROJECT}-${MODPY_EGG_VERSION}
PKGNAME = py-redis-${MODPY_EGG_VERSION}
diff --git distinfo distinfo
index f1c40bcf07d..e1591ccb4e3 100644
--- distinfo
+++ distinfo
@@ -1,2 +1,2 @@
-SHA256 (redis-py-2.10.6.tar.gz) = 4o4kU51lkKi4hJjy0w9/4+K+EXHXqR/h+mxbaYJRkBU=
-SIZE (redis-py-2.10.6.tar.gz) = 94869
+SHA256 (redis-py-3.0.1.tar.gz) = 0hAZRs9YKu5y1zvu1egVzNpMitT8Kh1ZORMV+ucFnqM=
+SIZE (redis-py-3.0.1.tar.gz) = 106780
diff --git pkg/PLIST pkg/PLIST
index c73d0d89da2..2252caccca2 100644
--- pkg/PLIST
+++ pkg/PLIST
@@ -4,6 +4,7 @@ lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VE
lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
+lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt
lib/python${MODPY_VERSION}/site-packages/redis-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/redis/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/redis/${MODPY_PYCACHE}/
Backwards incompatible changes in this, but checking sqlports I found
nothing that depends on this. I installed this package and ran a series
of tests on it using some of my old scripts and didn't hit issues.

$ sqlite3 /usr/local/share/sqlports "select * from depends where
dependspath like 'databases/py-redis' or dependspath like
'databases/py-redis,python3'" | wc -l
0

Version bump, no new patches needed, MAINTAINER CC, builds and installs
fine on amd64.

diff generated with `git diff --relative .` in the port directory for
easy application with patch.

Test results for py3 below but are the same for py2. This is using Redis
4 which is currently in the tree.

============================= test session starts
==============================
platform openbsd6 -- Python 3.6.7, pytest-3.5.0, py-1.5.3, pluggy-0.6.0
rootdir: /usr/ports/pobj/py-redis-3.0.1-python3/redis-py-3.0.1, inifile:
collected 384 items

tests/test_commands.py ...sss...........................................
[ 12%]
........................................................................
[ 31%]
.....................ssss...............................................
[ 50%]
..........................s.........sssssssssssssssssss.......
[ 66%]
tests/test_connection_pool.py ..........................................
[ 77%]
.
[ 77%]
tests/test_encoding.py ......
[ 79%]
tests/test_lock.py .................
[ 83%]
tests/test_pipeline.py .................
[ 88%]
tests/test_pubsub.py ...........................
[ 95%]
tests/test_scripting.py .......
[ 96%]
tests/test_sentinel.py ............
[100%]

==================== 357 passed, 27 skipped in 9.77 seconds
====================

Thoughts?
--
Edward Lopez-Acosta

No comments:

Post a Comment