pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-test py-test: DEPEND on py-pathlib2 for Pytho...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/437200f0fc24
branches:  trunk
changeset: 312183:437200f0fc24
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Aug 28 09:52:53 2018 +0000

description:
py-test: DEPEND on py-pathlib2 for Python < 3.6

diffstat:

 devel/py-test/Makefile |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 73ecad7375cb -r 437200f0fc24 devel/py-test/Makefile
--- a/devel/py-test/Makefile    Tue Aug 28 07:28:10 2018 +0000
+++ b/devel/py-test/Makefile    Tue Aug 28 09:52:53 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.55 2018/08/27 06:06:02 adam Exp $
+# $NetBSD: Makefile,v 1.56 2018/08/28 09:52:53 adam Exp $
 
 DISTNAME=      pytest-3.7.3
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
@@ -22,8 +22,10 @@
 TEST_DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml
 
 .include "../../lang/python/pyversion.mk"
-.if "${PYPKGPREFIX}" == "py27"
+.if ${_PYTHON_VERSION} == 27
 DEPENDS+=      ${PYPKGPREFIX}-funcsigs-[0-9]*:../../devel/py-funcsigs
+.elif ${_PYTHON_VERSION} < 36
+DEPENDS+=      ${PYPKGPREFIX}-pathlib2>=2.2.0:../../devel/py-pathlib2
 .endif
 
 USE_LANGUAGES= # none



Home | Main Index | Thread Index | Old Index