Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jun 2022 17:01:35 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: a9959ba979e0 - main - devel/py-click7: Convert to USE_PYTHON=pytest
Message-ID:  <202206031701.253H1ZV6049833@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202206031701.253H1ZV6049833>