Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel pytest from versioned depends



details:   https://anonhg.NetBSD.org/pkgsrc/rev/644c20307dc8
branches:  trunk
changeset: 431731:644c20307dc8
user:      adam <adam%pkgsrc.org@localhost>
date:      Sat May 16 08:54:03 2020 +0000

description:
pytest from versioned depends

diffstat:

 devel/py-backports.functools_lru_cache/Makefile |  7 +++----
 devel/py-test-cov/Makefile                      |  6 ++++--
 2 files changed, 7 insertions(+), 6 deletions(-)

diffs (52 lines):

diff -r ff4137919a77 -r 644c20307dc8 devel/py-backports.functools_lru_cache/Makefile
--- a/devel/py-backports.functools_lru_cache/Makefile   Sat May 16 08:52:03 2020 +0000
+++ b/devel/py-backports.functools_lru_cache/Makefile   Sat May 16 08:54:03 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2019/11/13 14:41:48 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2020/05/16 08:54:03 adam Exp $
 
 DISTNAME=      backports.functools_lru_cache-1.6.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -12,7 +12,6 @@
 
 DEPENDS+=      ${PYPKGPREFIX}-backports-[0-9]*:../../devel/py-backports
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
-TEST_DEPENDS+= ${PYPKGPREFIX}-test>=2.8:../../devel/py-test
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-flake8-[0-9]*:../../devel/py-test-flake8
 
@@ -20,10 +19,10 @@
 
 # XXX: also needs py-test-black
 do-test:
-       cd ${WRKSRC}/tests && ${SETENV} ${TEST_ENV} py.test-${PYVERSSUFFIX}
+       cd ${WRKSRC}/tests && pytest-${PYVERSSUFFIX}
 
 post-install:
-       rm ${DESTDIR}${PREFIX}/${PYSITELIB}/backports/__init__.*
+       ${RM} ${DESTDIR}${PREFIX}/${PYSITELIB}/backports/__init__.*
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r ff4137919a77 -r 644c20307dc8 devel/py-test-cov/Makefile
--- a/devel/py-test-cov/Makefile        Sat May 16 08:52:03 2020 +0000
+++ b/devel/py-test-cov/Makefile        Sat May 16 08:54:03 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.10 2019/10/16 16:41:16 adam Exp $
+# $NetBSD: Makefile,v 1.11 2020/05/16 08:54:05 adam Exp $
 
 DISTNAME=      pytest-cov-2.8.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
@@ -11,9 +11,11 @@
 LICENSE=       mit
 
 DEPENDS+=      ${PYPKGPREFIX}-coverage>=4.4:../../devel/py-coverage
-DEPENDS+=      ${PYPKGPREFIX}-test>=3.6:../../devel/py-test
+
+PYTHON_VERSIONED_DEPENDENCIES= pytest
 
 USE_LANGUAGES= # none
 
 .include "../../lang/python/egg.mk"
+.include "../../lang/python/versioned_dependencies.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index