Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc pytest from versioned depends



details:   https://anonhg.NetBSD.org/pkgsrc/rev/cfb2bf19000b
branches:  trunk
changeset: 432027:cfb2bf19000b
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon May 18 10:30:16 2020 +0000

description:
pytest from versioned depends

diffstat:

 graphics/py-pygal/Makefile  |  3 +--
 graphics/py-strich/Makefile |  8 +++++---
 pkgtools/url2pkg/Makefile   |  5 +++--
 3 files changed, 9 insertions(+), 7 deletions(-)

diffs (67 lines):

diff -r cf7b9e549619 -r cfb2bf19000b graphics/py-pygal/Makefile
--- a/graphics/py-pygal/Makefile        Mon May 18 10:26:35 2020 +0000
+++ b/graphics/py-pygal/Makefile        Mon May 18 10:30:16 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2017/09/16 19:26:58 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2020/05/18 10:30:16 adam Exp $
 
 DISTNAME=      pygal-2.4.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -14,7 +14,6 @@
 DEPENDS+=      ${PYPKGPREFIX}-lxml-[0-9]*:../../textproc/py-lxml
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-flask-[0-9]*:../../www/py-flask
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-pyquery-[0-9]*:../../textproc/py-pyquery
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
 # more BUILD_DEPENDS needed
diff -r cf7b9e549619 -r cfb2bf19000b graphics/py-strich/Makefile
--- a/graphics/py-strich/Makefile       Mon May 18 10:26:35 2020 +0000
+++ b/graphics/py-strich/Makefile       Mon May 18 10:30:16 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2017/10/23 13:42:17 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2020/05/18 10:30:16 adam Exp $
 
 DISTNAME=      pyStrich-0.8
 PKGNAME=       ${PYPKGPREFIX}-strich-0.8
@@ -10,12 +10,14 @@
 COMMENT=       1D and 2D barcode generator
 LICENSE=       2-clause-bsd AND apache-2.0
 
-BUILD_DEPENDS+=        ${PYPKGPREFIX}-test>=2.8:../../devel/py-test
 DEPENDS+=      ${PYPKGPREFIX}-Pillow-[0-9]*:../../graphics/py-Pillow
 
+PYTHON_VERSIONED_DEPENDENCIES= test:test
+
 do-test:
        ${MKDIR} ${WRKSRC}/pystrich/code128/test_img ${WRKSRC}/pystrich/ean13/test_img
-       cd ${WRKSRC} && py.test-${PYVERSSUFFIX}
+       cd ${WRKSRC} && pytest-${PYVERSSUFFIX}
 
 .include "../../lang/python/egg.mk"
+.include "../../lang/python/versioned_dependencies.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r cf7b9e549619 -r cfb2bf19000b pkgtools/url2pkg/Makefile
--- a/pkgtools/url2pkg/Makefile Mon May 18 10:26:35 2020 +0000
+++ b/pkgtools/url2pkg/Makefile Mon May 18 10:30:16 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.111 2020/01/18 23:33:27 rillig Exp $
+# $NetBSD: Makefile,v 1.112 2020/05/18 10:31:31 adam Exp $
 
 PKGNAME=       url2pkg-19.3.7
 CATEGORIES=    pkgtools
@@ -15,7 +15,7 @@
 USE_TOOLS+=    perl:run
 AUTO_MKDIRS=   yes
 
-TEST_DEPENDS+= ${PYPKGPREFIX}-test>=0:../../devel/py-test
+PYTHON_VERSIONED_DEPENDENCIES= test:test
 
 do-extract:
        ${RUN} cd ${FILESDIR} && cp *.* ${WRKSRC}/
@@ -44,4 +44,5 @@
        ${INSTALL_DATA} ${WRKSRC}/setuptools.py ${DESTDIR}${PREFIX}/lib/url2pkg/distutils/extension.py
 
 .include "../../lang/python/application.mk"
+.include "../../lang/python/versioned_dependencies.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index