git: a9959ba979e0 - main - devel/py-click7: Convert to USE_PYTHON=pytest

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

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

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

    devel/py-click7: Convert to USE_PYTHON=pytest
---
 devel/py-click7/Makefile | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/devel/py-click7/Makefile b/devel/py-click7/Makefile
index 3322eda9f487..8553cedd30ef 100644
--- a/devel/py-click7/Makefile
+++ b/devel/py-click7/Makefile
@@ -13,16 +13,13 @@ COMMENT=	Python package for creating command line interfaces
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE.rst
 
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
-
 USES=		python:3.6+
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent distutils pytest
 
 NO_ARCH=	yes
+TEST_ARGS=	-p no:warnings
+TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR}
 
 PORTSCOUT=	limit:^7\.
 
-do-test:
-	@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -p no:warnings
-
 .include <bsd.port.mk>