git: a5e864b7da4b - main - textproc/py-parso: Convert to USE_PYTHON=pytest

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 13 Aug 2025 05:02:25 UTC
The branch main has been updated by sunpoet:

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

commit a5e864b7da4bed2c98f7a05012faa1f3a0c6c96f
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-08-13 04:54:52 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-08-13 04:54:52 +0000

    textproc/py-parso: Convert to USE_PYTHON=pytest
    
    1348 passed in 4.86s
    It also cleans up TEST_DEPENDS after the removal of py-pytest4. [1]
    
    Reported by:    adamw [1]
    Approved by:    portmgr (blanket)
    With hat:       python
---
 textproc/py-parso/Makefile | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/textproc/py-parso/Makefile b/textproc/py-parso/Makefile
index 10e669684213..1caface21c51 100644
--- a/textproc/py-parso/Makefile
+++ b/textproc/py-parso/Makefile
@@ -12,16 +12,12 @@ WWW=		https://github.com/davidhalter/parso
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest4<6.0.0,1:devel/py-pytest4@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}docopt>=0:devel/py-docopt@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}docopt>=0:devel/py-docopt@${PY_FLAVOR}
 
 USES=		cpe python
 CPE_VENDOR=	${PORTNAME}_project
-USE_PYTHON=	autoplist distutils
+USE_PYTHON=	autoplist distutils pytest
 
 NO_ARCH=	yes
 
-do-test:
-		cd ${WRKSRC} && ${PYTHON_CMD} -m pytest test
-
 .include <bsd.port.mk>