pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-flake8 Move py-test-runner dependency into th...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ddd77f07a841
branches:  trunk
changeset: 377874:ddd77f07a841
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Mar 23 21:09:11 2018 +0000

description:
Move py-test-runner dependency into the !py27 case as build dependency.
Contrary to the name, setuptools whines and wants to RCE the system if
it isn't installed.

diffstat:

 devel/py-flake8/Makefile |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 00cfa07d3437 -r ddd77f07a841 devel/py-flake8/Makefile
--- a/devel/py-flake8/Makefile  Fri Mar 23 21:07:53 2018 +0000
+++ b/devel/py-flake8/Makefile  Fri Mar 23 21:09:11 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2018/03/21 12:05:28 joerg Exp $
+# $NetBSD: Makefile,v 1.13 2018/03/23 21:09:11 joerg Exp $
 
 DISTNAME=      flake8-3.5.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -17,14 +17,15 @@
 .if "${PYPKGPREFIX}" == "py27"
 DEPENDS+=      ${PYPKGPREFIX}-configparser-[0-9]*:../../devel/py-configparser
 DEPENDS+=      ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
+.else
+# Enforced by setuptools
+BUILD_DEPENDS+=        ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
 .endif
 
-# TEST_DEPENDS
 # 8 test failures as of 3.0.4, see
 # https://gitlab.com/pycqa/flake8/issues/232
 TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
 
 post-install:
        cd ${DESTDIR}${PREFIX}/bin && ${MV} flake8 flake8-${PYVERSSUFFIX} || ${TRUE}



Home | Main Index | Thread Index | Old Index