pytest from versioned deps.

This commit is contained in:
adam 2020-05-16 17:27:42 +00:00
parent 6903a17ee7
commit 9f3416ca77
6 changed files with 22 additions and 15 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.10 2020/03/17 20:13:36 adam Exp $
# $NetBSD: Makefile,v 1.11 2020/05/16 17:27:42 adam Exp $
DISTNAME= jupyter_core-4.6.3
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@ -12,7 +12,8 @@ LICENSE= modified-bsd
DEPENDS+= ${PYPKGPREFIX}-traitlets>=4.1.0:../../devel/py-traitlets
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= # none
@ -29,7 +30,8 @@ post-install:
${MV} jupyter-troubleshoot jupyter-troubleshoot-${PYVERSSUFFIX} || ${TRUE}
do-test:
cd ${WRKSRC}/jupyter_core && py.test-${PYVERSSUFFIX}
cd ${WRKSRC}/jupyter_core && pytest-${PYVERSSUFFIX}
.include "../../lang/python/egg.mk"
.include "../../lang/python/versioned_dependencies.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2019/04/25 07:27:55 adam Exp $
# $NetBSD: Makefile,v 1.7 2020/05/16 17:27:42 adam Exp $
DISTNAME= pylama-7.7.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
@ -17,7 +17,8 @@ DEPENDS+= ${PYPKGPREFIX}-mccabe>=0.5.2:../../devel/py-mccabe
# extensions
DEPENDS+= ${PYPKGPREFIX}-eradicate-[0-9]*:../../textproc/py-eradicate
DEPENDS+= ${PYPKGPREFIX}-radon>=1.4.2:../../devel/py-radon
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
PYTHON_VERSIONED_DEPENDENCIES= test:test
USE_LANGUAGES= # none
@ -26,4 +27,5 @@ post-install:
${MV} pylama pylama-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/egg.mk"
.include "../../lang/python/versioned_dependencies.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.7 2020/01/03 11:49:58 adam Exp $
# $NetBSD: Makefile,v 1.8 2020/05/16 17:27:42 adam Exp $
DISTNAME= Logbook-1.5.3
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
@ -11,12 +11,14 @@ COMMENT= Logging replacement for Python
LICENSE= modified-bsd
DEPENDS+= ${PYPKGPREFIX}-brotlipy-[0-9]*:../../archivers/py-brotlipy
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
PYTHON_VERSIONED_DEPENDENCIES= test:test
pre-build:
cd ${WRKSRC} && cython-${PYVERSSUFFIX} logbook/_speedups.pyx
.include "../../devel/py-cython/buildlink3.mk"
.include "../../lang/python/egg.mk"
.include "../../lang/python/versioned_dependencies.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.23 2020/04/11 14:02:50 adam Exp $
# $NetBSD: Makefile,v 1.24 2020/05/16 17:27:42 adam Exp $
DISTNAME= msgpack-1.0.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@ -10,13 +10,13 @@ HOMEPAGE= https://msgpack.org/
COMMENT= MessagePack (de)serializer for Python
LICENSE= apache-2.0
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
PYTHON_VERSIONED_DEPENDENCIES= test:test
USE_LANGUAGES= c c++
do-test:
cd ${WRKSRC} && pytest-${PYVERSSUFFIX} test
.include "../../lang/python/egg.mk"
.include "../../lang/python/versioned_dependencies.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.6 2019/04/26 10:02:13 adam Exp $
# $NetBSD: Makefile,v 1.7 2020/05/16 17:27:43 adam Exp $
DISTNAME= ordered-set-3.1.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@ -11,7 +11,6 @@ COMMENT= MutableSet that remembers its order
LICENSE= mit
BUILD_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
USE_LANGUAGES= # none

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.8 2019/09/19 16:49:32 adam Exp $
# $NetBSD: Makefile,v 1.9 2020/05/16 17:27:43 adam Exp $
DISTNAME= packaging-19.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@ -13,7 +13,8 @@ LICENSE= modified-bsd OR apache-2.0
DEPENDS+= ${PYPKGPREFIX}-pyparsing>=2.0.2:../../devel/py-pyparsing
DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
TEST_DEPENDS+= ${PYPKGPREFIX}-pretend-[0-9]*:../../devel/py-pretend
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
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"