git: 9cff158439c5 - main - devel/py-ciso8601: Add do-test target
Guangyuan Yang
ygy at FreeBSD.org
Wed Aug 11 09:40:11 UTC 2021
The branch main has been updated by ygy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=9cff158439c5d91c0fc8e5204451e8d989c952b5
commit 9cff158439c5d91c0fc8e5204451e8d989c952b5
Author: Guangyuan Yang <ygy at FreeBSD.org>
AuthorDate: 2021-08-11 09:39:57 +0000
Commit: Guangyuan Yang <ygy at FreeBSD.org>
CommitDate: 2021-08-11 09:39:57 +0000
devel/py-ciso8601: Add do-test target
- Switch to Github releases
- Add a do-test target for the unit test suite
Suggested by: koobs
---
devel/py-ciso8601/Makefile | 12 +++++++++++-
devel/py-ciso8601/distinfo | 6 +++---
2 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/devel/py-ciso8601/Makefile b/devel/py-ciso8601/Makefile
index d4bfc172c657..ef7e801f314e 100644
--- a/devel/py-ciso8601/Makefile
+++ b/devel/py-ciso8601/Makefile
@@ -1,7 +1,7 @@
PORTNAME= ciso8601
+DISTVERSIONPREFIX= v
DISTVERSION= 2.2.0
CATEGORIES= devel python
-MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ygy at FreeBSD.org
@@ -10,10 +10,20 @@ COMMENT= Fast ISO8601 date time parser for Python written in C
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytz>=0:devel/py-pytz@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}unittest2>=0:devel/py-unittest2@${PY_FLAVOR}
+
USES= python
USE_PYTHON= autoplist distutils
+USE_GITHUB= yes
+GH_ACCOUNT= closeio
+
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/ciso8601*.so
+do-test:
+ @cd ${WRKSRC} && ${PYTHON_CMD} -m nose -v
+
.include <bsd.port.mk>
diff --git a/devel/py-ciso8601/distinfo b/devel/py-ciso8601/distinfo
index 08fcff0dccca..2e57d0990613 100644
--- a/devel/py-ciso8601/distinfo
+++ b/devel/py-ciso8601/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1628312303
-SHA256 (ciso8601-2.2.0.tar.gz) = 14ad817ed31a698372d42afa81b0173d71cd1d0b48b7499a2da2a01dcc8695e6
-SIZE (ciso8601-2.2.0.tar.gz) = 18440
+TIMESTAMP = 1628664654
+SHA256 (closeio-ciso8601-v2.2.0_GH0.tar.gz) = f33c4ba69d8b5897854e4db261b7f140404f9749e79247d3447918a061ab49f4
+SIZE (closeio-ciso8601-v2.2.0_GH0.tar.gz) = 35209
More information about the dev-commits-ports-all
mailing list