git: 09c6a702b046 - main - devel/py-cloudpickle: Convert to USE_PYTHON=pytest

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 03 Jun 2022 17:01:36 UTC
The branch main has been updated by sunpoet:

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

commit 09c6a702b046af610d2e794b414478d0469baced
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-06-03 16:57:18 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-03 16:57:18 +0000

    devel/py-cloudpickle: Convert to USE_PYTHON=pytest
    
    - Add missing TEST_DEPENDS
---
 devel/py-cloudpickle/Makefile | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/devel/py-cloudpickle/Makefile b/devel/py-cloudpickle/Makefile
index 0e605a719bbf..82b6c538b04f 100644
--- a/devel/py-cloudpickle/Makefile
+++ b/devel/py-cloudpickle/Makefile
@@ -14,16 +14,14 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 
 TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}psutil>=0:sysutils/py-psutil@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}pytest>=0,1:devel/py-pytest@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}tornado>=0:www/py-tornado@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}tornado>=0:www/py-tornado@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR}
 
 USES=		python:3.6+
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent distutils pytest
 
 NO_ARCH=	yes
-
-do-test:
-# Need -s for https://github.com/cloudpipe/cloudpickle/issues/252
-	cd ${WRKSRC} && ${SETENV} PYTHONPATH=tests/cloudpickle_testpkg ${PYTHON_CMD} -m pytest -rs -s -v
+TEST_ARGS=	-s # https://github.com/cloudpipe/cloudpickle/issues/252
+TEST_ENV=	PYTHONPATH=tests/cloudpickle_testpkg
 
 .include <bsd.port.mk>