pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/math/py-Theano



Module Name:    pkgsrc
Committed By:   adam
Date:           Sat Jun 15 18:13:14 UTC 2019

Modified Files:
        pkgsrc/math/py-Theano: Makefile

Log Message:
py-Theano: use pytest for testing


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/math/py-Theano/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/math/py-Theano/Makefile
diff -u pkgsrc/math/py-Theano/Makefile:1.4 pkgsrc/math/py-Theano/Makefile:1.5
--- pkgsrc/math/py-Theano/Makefile:1.4  Sat Jun 15 18:01:47 2019
+++ pkgsrc/math/py-Theano/Makefile      Sat Jun 15 18:13:14 2019
@@ -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]*:../.
 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_bl
 
 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"



Home | Main Index | Thread Index | Old Index