git: 1cd4a99b0785 - main - devel/py-testpath: Convert to USE_PYTHON=pytest

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 21 Jun 2022 16:38:13 UTC
The branch main has been updated by sunpoet:

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

commit 1cd4a99b07853567510734d1e9774087aaedff1b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-06-21 16:33:48 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-21 16:36:31 +0000

    devel/py-testpath: Convert to USE_PYTHON=pytest
---
 devel/py-testpath/Makefile | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/devel/py-testpath/Makefile b/devel/py-testpath/Makefile
index 93ec44b1b3fd..74d3e3b9bcbc 100644
--- a/devel/py-testpath/Makefile
+++ b/devel/py-testpath/Makefile
@@ -10,17 +10,12 @@ COMMENT=	Test utilities for Python code working with files and commands
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=0,1:devel/py-pytest@${PY_FLAVOR}
-
 USES=		python:3.6+
-USE_PYTHON=	autoplist distutils
+USE_PYTHON=	autoplist distutils pytest
 
 NO_ARCH=	yes
 
 post-patch:
 	@${SED} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${FILESDIR}/setup.py > ${WRKSRC}/setup.py
 
-do-test:
-	cd ${WRKSRC} && ${SETENV} ${PYTHON_CMD} -m pytest -rs -v
-
 .include <bsd.port.mk>