git: 0e7dd0d03d3d - main - science/py-segyio: switch to USES=pytest and fix tests

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Tue, 26 Apr 2022 13:49:14 UTC
The branch main has been updated by amdmi3:

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

commit 0e7dd0d03d3d32561b47f16c727c381d04a756e1
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2022-04-26 12:53:36 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2022-04-26 13:46:03 +0000

    science/py-segyio: switch to USES=pytest and fix tests
    
    Reported by:    reprise
    Approved by:    portmgr blanket
---
 science/py-segyio/Makefile | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/science/py-segyio/Makefile b/science/py-segyio/Makefile
index 22ff57c30ff5..2d6e76ed4a61 100644
--- a/science/py-segyio/Makefile
+++ b/science/py-segyio/Makefile
@@ -18,7 +18,7 @@ BUILD_DEPENDS=	cmake:devel/cmake \
 LIB_DEPENDS=	libsegyio.so:science/segyio
 RUN_DEPENDS=	${PYNUMPY}
 
-USES=		compiler:c++11-lang python:3.6+
+USES=		compiler:c++11-lang python:3.6+ pytest
 USE_PYTHON=	distutils autoplist
 
 USE_GITHUB=	yes
@@ -31,9 +31,7 @@ post-install:
 	${PYTHON_CMD} -m compileall -d ${PYTHON_SITELIBDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
 	${PYTHON_CMD} -O -m compileall -d ${PYTHON_SITELIBDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
 
-do-test: # tests fail: https://github.com/equinor/segyio/issues/511
-	@cd ${WRKSRC} && \
-		${PYTHON_CMD} ${PYSETUP} build_ext --inplace && \
-		${PYTHON_CMD} ${PYSETUP} test
+pre-test:
+	@cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} build_ext --inplace
 
 .include <bsd.port.mk>