summaryrefslogtreecommitdiff
path: root/math/py-Theano
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2019-06-15 18:13:14 +0000
committeradam <adam@pkgsrc.org>2019-06-15 18:13:14 +0000
commitce0c6cb794f4fd942437ed41872db506e5609435 (patch)
treecd466062dae811aee843c0bed904640bd83258cf /math/py-Theano
parent080aa032b9f480737f0e46ae9d315e939481521d (diff)
downloadpkgsrc-ce0c6cb794f4fd942437ed41872db506e5609435.tar.gz
py-Theano: use pytest for testing
Diffstat (limited to 'math/py-Theano')
-rw-r--r--math/py-Theano/Makefile10
1 files changed, 5 insertions, 5 deletions
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"