git: e6a50aa1e6c0 - main - textproc/py-chardet: Update do-test:

Po-Chuan Hsieh sunpoet at FreeBSD.org
Thu Jun 10 14:49:23 UTC 2021


The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e6a50aa1e6c08a208471f9a3a5e98e009415cb4b

commit e6a50aa1e6c08a208471f9a3a5e98e009415cb4b
Author:     Po-Chuan Hsieh <sunpoet at FreeBSD.org>
AuthorDate: 2021-06-10 14:30:58 +0000
Commit:     Po-Chuan Hsieh <sunpoet at FreeBSD.org>
CommitDate: 2021-06-10 14:46:20 +0000

    textproc/py-chardet: Update do-test:
    
    - Update COMMENT
    - Clean up TEST_DEPENDS
    - Sort TEST_DEPENDS
---
 textproc/py-chardet/Makefile | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/textproc/py-chardet/Makefile b/textproc/py-chardet/Makefile
index 252e0b74765b..e6939a900eca 100644
--- a/textproc/py-chardet/Makefile
+++ b/textproc/py-chardet/Makefile
@@ -8,20 +8,20 @@ MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
 MAINTAINER=	python at FreeBSD.org
-COMMENT=	Universal encoding detector for Python 2 and 3
+COMMENT=	Universal encoding detector for Python
 
 LICENSE=	LGPL21
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest-runner>0:devel/py-pytest-runner@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}hypothesis>0:devel/py-hypothesis@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hypothesis>=0:devel/py-hypothesis@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
 
-NO_ARCH=	yes
 USES=		python:3.6+
 USE_PYTHON=	autoplist concurrent distutils
 
+NO_ARCH=	yes
+
 do-test:
-	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} ptr
+	cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
 
 .include <bsd.port.mk>


More information about the dev-commits-ports-main mailing list