pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-test-mock



Module Name:    pkgsrc
Committed By:   wiz
Date:           Wed Apr  5 11:18:33 UTC 2017

Modified Files:
        pkgsrc/devel/py-test-mock: Makefile

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

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/py-test-mock/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-test-mock/Makefile
diff -u pkgsrc/devel/py-test-mock/Makefile:1.1 pkgsrc/devel/py-test-mock/Makefile:1.2
--- pkgsrc/devel/py-test-mock/Makefile:1.1      Tue Apr  4 14:02:44 2017
+++ pkgsrc/devel/py-test-mock/Makefile  Wed Apr  5 11:18:32 2017
@@ -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 @@ COMMENT=    Thin-wrapper around the mock pa
 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