From ce0c6cb794f4fd942437ed41872db506e5609435 Mon Sep 17 00:00:00 2001 From: adam Date: Sat, 15 Jun 2019 18:13:14 +0000 Subject: py-Theano: use pytest for testing --- math/py-Theano/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'math/py-Theano') diff --git a/math/py-Theano/Makefile b/math/py-Theano/Makefile index e414687a49f..3872e72269e 100644 --- a/math/py-Theano/Makefile +++ b/math/py-Theano/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2019/06/15 18:01:47 adam Exp $ +# $NetBSD: Makefile,v 1.5 2019/06/15 18:13:14 adam Exp $ DISTNAME= Theano-1.0.4 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} @@ -15,6 +15,7 @@ DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six TEST_DEPENDS+= ${PYPKGPREFIX}-flake8-[0-9]*:../../devel/py-flake8 TEST_DEPENDS+= ${PYPKGPREFIX}-nose>=1.3.0:../../devel/py-nose TEST_DEPENDS+= ${PYPKGPREFIX}-parameterized-[0-9]*:../../devel/py-parameterized +TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test USE_TOOLS+= bash USE_LANGUAGES= c c++ @@ -26,15 +27,14 @@ REPLACE_FILES.bash= theano/misc/check_blas_many.sh PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-scipy -zz-do-test: - cd ${WRKSRC}/theano/tests && \ - ${SETENV} ${TEST_ENV} ${PYTHONBIN} main.py - post-install: cd ${DESTDIR}${PREFIX}/bin && \ ${MV} theano-cache theano-cache-${PYVERSSUFFIX} && \ ${MV} theano-nose theano-nose-${PYVERSSUFFIX} || ${TRUE} +do-test: + cd ${WRKSRC}/theano && pytest-${PYVERSSUFFIX} tests + .include "../../lang/python/egg.mk" .include "../../math/py-numpy/buildlink3.mk" .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3