pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-test-mock Only on python-2.x does this module...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b8d3ec771271
branches:  trunk
changeset: 360664:b8d3ec771271
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Apr 05 11:18:32 2017 +0000

description:
Only on python-2.x does this module need py-mock as dependency.

Bump PKGREVISION.

diffstat:

 devel/py-test-mock/Makefile |  10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 085da1cdf3e5 -r b8d3ec771271 devel/py-test-mock/Makefile
--- a/devel/py-test-mock/Makefile       Wed Apr 05 09:45:50 2017 +0000
+++ b/devel/py-test-mock/Makefile       Wed Apr 05 11:18:32 2017 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1 2017/04/04 14:02:44 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2017/04/05 11:18:32 wiz Exp $
 
 DISTNAME=      pytest-mock-1.6.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
+PKGREVISION=   1
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest-mock/}
 
@@ -11,11 +12,14 @@
 LICENSE=       mit
 
 DEPENDS+=      ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+
+.include "../../lang/python/pyversion.mk"
+
+.if ${PYVERSSUFFIX} == "2.7"
 DEPENDS+=      ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
+.endif
 
 # needs to be installed first
-# one test failure as of 1.6.0
-# https://github.com/pytest-dev/pytest-mock/issues/81
 do-test:
        cd ${WRKSRC} && py.test-${PYVERSSUFFIX}
 



Home | Main Index | Thread Index | Old Index