git: 8946640b15d8 - main - math/py-pygslodeiv2: switch to USES=pytest, fix tests

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Wed, 27 Apr 2022 11:42:24 UTC
The branch main has been updated by amdmi3:

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

commit 8946640b15d8498c0bacdb1139be4347fe080e21
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2022-04-26 14:43:10 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2022-04-27 11:42:13 +0000

    math/py-pygslodeiv2: switch to USES=pytest, fix tests
    
    Reported by:    reprise
    Approved by:    portmgr blanket
---
 math/py-pygslodeiv2/Makefile | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/math/py-pygslodeiv2/Makefile b/math/py-pygslodeiv2/Makefile
index 7ab0d108969f..6a7ba8739efb 100644
--- a/math/py-pygslodeiv2/Makefile
+++ b/math/py-pygslodeiv2/Makefile
@@ -14,12 +14,11 @@ LICENSE_FILE=	${WRKSRC}/LICENSE
 BUILD_DEPENDS=	${PYNUMPY}
 LIB_DEPENDS=	libgsl.so:math/gsl
 RUN_DEPENDS=	${PYNUMPY}
-TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
 
-USES=		compiler:c++11-lang localbase python:3.6+
+USES=		compiler:c++11-lang localbase python:3.6+ pytest
 USE_PYTHON=	distutils autoplist
 
-do-test:
-	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${PYTHON_CMD} -m pytest
+pre-test:
+	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} build_ext --inplace
 
 .include <bsd.port.mk>