aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-03-25 12:47:32 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-03-25 13:36:50 +0000
commit04cc96530550d370c4bccfc269b3a44b04a499ae (patch)
treecc540565e31def2a5c014925436067dc72017dc8
parent94ce33ea3b658d9fcdd7887e96113b799bc173dd (diff)
downloadports-04cc96530550d370c4bccfc269b3a44b04a499ae.tar.gz
ports-04cc96530550d370c4bccfc269b3a44b04a499ae.zip
databases/py-redis: Cosmetic change
-rw-r--r--databases/py-redis/Makefile23
-rw-r--r--databases/py-redis/distinfo2
2 files changed, 15 insertions, 10 deletions
diff --git a/databases/py-redis/Makefile b/databases/py-redis/Makefile
index 5dd1ab33fe2b..89304f9863d9 100644
--- a/databases/py-redis/Makefile
+++ b/databases/py-redis/Makefile
@@ -13,24 +13,29 @@ COMMENT= Python client for Redis key-value store
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
-TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}pytest>=2.7.0:devel/py-pytest@${PY_FLAVOR} \
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>=0:devel/py-mock@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest>=0,1:devel/py-pytest@${PY_FLAVOR} \
redis-server:databases/redis
USES= python:3.6+
USE_PYTHON= distutils autoplist concurrent
-OPTIONS_DEFINE= HIREDIS
+NO_ARCH= yes
+
+CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}redis2
-HIREDIS_DESC= High performance response parser (via hiredis)
+OPTIONS_DEFINE= HIREDIS
+HIREDIS_DESC= High performance response parser
HIREDIS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hiredis>=0.1.3:databases/py-hiredis@${PY_FLAVOR}
-NO_ARCH= yes
-CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}redis2
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 30800
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=1.0:devel/py-importlib-metadata@${PY_FLAVOR}
+.endif
-# Needs redis-server to be running
do-test:
- @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs
+ cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/databases/py-redis/distinfo b/databases/py-redis/distinfo
index 395e5ca00294..71e7e1348570 100644
--- a/databases/py-redis/distinfo
+++ b/databases/py-redis/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1591983753
+TIMESTAMP = 1647264502
SHA256 (redis-3.5.3.tar.gz) = 0e7e0cfca8660dea8b7d5cd8c4f6c5e29e11f31158c0b0ae91a397f00e5a05a2
SIZE (redis-3.5.3.tar.gz) = 141112