diff options
author | adam <adam@pkgsrc.org> | 2020-05-17 18:57:26 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2020-05-17 18:57:26 +0000 |
commit | 77e58c1d9c3403503d4cf8678f3df59b68342c83 (patch) | |
tree | 7a49f1a11b8b585ffa8f089761b5af472bb359bf | |
parent | 005a164a4c862fcfe14fbcfb048cc05e91d2b9a7 (diff) | |
download | pkgsrc-77e58c1d9c3403503d4cf8678f3df59b68342c83.tar.gz |
pytest from versioned depends
-rw-r--r-- | math/py-infinity/Makefile | 14 | ||||
-rw-r--r-- | math/py-intervals/Makefile | 12 | ||||
-rw-r--r-- | math/py-numpy16/Makefile | 6 | ||||
-rw-r--r-- | math/py-scipy12/Makefile | 21 |
4 files changed, 26 insertions, 27 deletions
diff --git a/math/py-infinity/Makefile b/math/py-infinity/Makefile index d906c4348b4..06071c55396 100644 --- a/math/py-infinity/Makefile +++ b/math/py-infinity/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2017/09/27 20:21:54 adam Exp $ +# $NetBSD: Makefile,v 1.5 2020/05/17 18:57:26 adam Exp $ DISTNAME= infinity-1.4 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} @@ -10,11 +10,12 @@ HOMEPAGE= https://github.com/kvesteri/infinity COMMENT= All-in-one infinity value for Python LICENSE= modified-bsd -BUILD_DEPENDS+= ${PYPKGPREFIX}-flake8>=2.4.0:../../devel/py-flake8 -BUILD_DEPENDS+= ${PYPKGPREFIX}-isort>=4.2.2:../../devel/py-isort -BUILD_DEPENDS+= ${PYPKGPREFIX}-pygments>=1.2:../../textproc/py-pygments -BUILD_DEPENDS+= ${PYPKGPREFIX}-six>=1.4.1:../../lang/py-six -BUILD_DEPENDS+= ${PYPKGPREFIX}-test>=2.2.3:../../devel/py-test +TEST_DEPENDS+= ${PYPKGPREFIX}-flake8>=2.4.0:../../devel/py-flake8 +TEST_DEPENDS+= ${PYPKGPREFIX}-isort>=4.2.2:../../devel/py-isort +TEST_DEPENDS+= ${PYPKGPREFIX}-pygments>=1.2:../../textproc/py-pygments +TEST_DEPENDS+= ${PYPKGPREFIX}-six>=1.4.1:../../lang/py-six + +PYTHON_VERSIONED_DEPENDENCIES= test:test USE_LANGUAGES= # none @@ -22,4 +23,5 @@ do-test: cd ${WRKSRC} && pytest-${PYVERSSUFFIX} .include "../../lang/python/egg.mk" +.include "../../lang/python/versioned_dependencies.mk" .include "../../mk/bsd.pkg.mk" diff --git a/math/py-intervals/Makefile b/math/py-intervals/Makefile index d63ba0820b8..c7362b300a9 100644 --- a/math/py-intervals/Makefile +++ b/math/py-intervals/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2017/12/10 17:01:48 adam Exp $ +# $NetBSD: Makefile,v 1.6 2020/05/17 18:57:26 adam Exp $ DISTNAME= intervals-0.8.1 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} @@ -11,10 +11,11 @@ COMMENT= Tools for handling intervals (ranges of comparable objects) LICENSE= modified-bsd DEPENDS+= ${PYPKGPREFIX}-infinity>=0.1.3:../../math/py-infinity -BUILD_DEPENDS+= ${PYPKGPREFIX}-flake8>=2.4.0:../../devel/py-flake8 -BUILD_DEPENDS+= ${PYPKGPREFIX}-isort>=4.2.2:../../devel/py-isort -BUILD_DEPENDS+= ${PYPKGPREFIX}-pygments>=1.2:../../textproc/py-pygments -BUILD_DEPENDS+= ${PYPKGPREFIX}-test>=2.2.3:../../devel/py-test +TEST_DEPENDS+= ${PYPKGPREFIX}-flake8>=2.4.0:../../devel/py-flake8 +TEST_DEPENDS+= ${PYPKGPREFIX}-isort>=4.2.2:../../devel/py-isort +TEST_DEPENDS+= ${PYPKGPREFIX}-pygments>=1.2:../../textproc/py-pygments + +PYTHON_VERSIONED_DEPENDENCIES= test:test USE_LANGUAGES= # none @@ -22,4 +23,5 @@ do-test: cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} .include "../../lang/python/egg.mk" +.include "../../lang/python/versioned_dependencies.mk" .include "../../mk/bsd.pkg.mk" diff --git a/math/py-numpy16/Makefile b/math/py-numpy16/Makefile index b2ecaa49188..64a204749f3 100644 --- a/math/py-numpy16/Makefile +++ b/math/py-numpy16/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2020/04/27 16:52:55 adam Exp $ +# $NetBSD: Makefile,v 1.2 2020/05/17 18:57:26 adam Exp $ DISTNAME= numpy-1.16.6 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} @@ -12,7 +12,8 @@ COMMENT= Array processing for numbers, strings, records, and objects LICENSE= modified-bsd TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose -TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test + +PYTHON_VERSIONED_DEPENDENCIES= test:test USE_LANGUAGES= c fortran MAKE_ENV+= ATLAS=None @@ -52,6 +53,7 @@ BUILDLINK_API_DEPENDS.py-cython+= ${PYPKGPREFIX}-cython>=0.29.2 .include "../../devel/py-cython/buildlink3.mk" .include "../../lang/python/application.mk" .include "../../lang/python/egg.mk" +.include "../../lang/python/versioned_dependencies.mk" .if ${OPSYS} != "Darwin" # blas and lapack are not needed; numpy will use Accelerate.framework .include "../../math/blas/buildlink3.mk" diff --git a/math/py-scipy12/Makefile b/math/py-scipy12/Makefile index fc97eecc0b1..bb6bbdd3097 100644 --- a/math/py-scipy12/Makefile +++ b/math/py-scipy12/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.4 2020/03/19 19:28:52 gdt Exp $ +# $NetBSD: Makefile,v 1.5 2020/05/17 18:57:26 adam Exp $ -DISTNAME= scipy-1.2.2 +DISTNAME= scipy-1.2.3 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= math python MASTER_SITES= ${MASTER_SITE_PYPI:=s/scipy/} @@ -10,6 +10,10 @@ HOMEPAGE= https://www.scipy.org/ COMMENT= Scientific Algorithms Library for Python LICENSE= modified-bsd +TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose + +PYTHON_VERSIONED_DEPENDENCIES= test:test + USE_LANGUAGES+= c c++ fortran MAKE_ENV+= ATLAS=None @@ -20,7 +24,6 @@ MAKE_ENV+= ATLAS=None PYSETUPBUILDARGS+= --fcompiler=g95 .elif defined(PKGSRC_FORTRAN) && ${PKGSRC_FORTRAN} == "gfortran" PYSETUPBUILDARGS+= --fcompiler=gnu95 -LDFLAGS.Darwin+= -undefined dynamic_lookup .else BROKEN= "Requires fortran 95" .endif @@ -35,14 +38,6 @@ REPLACE_PYTHON+= scipy/sparse/linalg/isolve/tests/test_gcrotmk.py .include "../../mk/bsd.prefs.mk" .if ${OPSYS} == "Darwin" -# When unpacked by root, files with excessive permissions (group and -# world writable, gratuitously executable) result, apparently only on -# Darwin. Use a large hammer for now. -# \todo Consider using a working EXTRACT tool. -post-extract: - chmod -R go-w ${WRKDIR} - ${FIND} ${WRKDIR} -type f | xargs chmod -x - .PHONY: fix-darwin-install-name post-install: fix-darwin-install-name fix-darwin-install-name: @@ -54,9 +49,6 @@ fix-darwin-install-name: done .endif -TEST_DEPENDS+= ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose -TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test - # self test failures for 1.1.0 reported at # https://github.com/scipy/scipy/issues/9196 # needs 'make install' first! @@ -66,6 +58,7 @@ do-test: .include "../../lang/python/application.mk" .include "../../lang/python/distutils.mk" +.include "../../lang/python/versioned_dependencies.mk" .include "../../devel/py-cython/buildlink3.mk" .include "../../math/blas/buildlink3.mk" .include "../../math/fftw/buildlink3.mk" |