pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-cpplint py-cpplint: restrict to python3



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fbc26cc11d66
branches:  trunk
changeset: 381645:fbc26cc11d66
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Jul 11 08:48:48 2022 +0000

description:
py-cpplint: restrict to python3

some cleanups

diffstat:

 devel/py-cpplint/Makefile                        |  18 ++++++++----------
 devel/py-cpplint/distinfo                        |   3 ++-
 devel/py-cpplint/patches/patch-test-requirements |  19 +++++++++++++++++++
 3 files changed, 29 insertions(+), 11 deletions(-)

diffs (74 lines):

diff -r e3e83a49a90f -r fbc26cc11d66 devel/py-cpplint/Makefile
--- a/devel/py-cpplint/Makefile Mon Jul 11 08:47:14 2022 +0000
+++ b/devel/py-cpplint/Makefile Mon Jul 11 08:48:48 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2022/01/05 15:41:02 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2022/07/11 08:48:48 wiz Exp $
 
 DISTNAME=      cpplint-1.5.5
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -12,23 +12,21 @@
 LICENSE=       modified-bsd
 
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
+TOOL_DEPENDS+= ${PYPKGPREFIX}-pip-[0-9]*:../../devel/py-pip
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
-#TEST_DEPENDS+=        ${PYPKGPREFIX}-testfixtures-[0-9]*:../../devel/py-testfixtures
+TEST_DEPENDS+= ${PYPKGPREFIX}-pyparsing-[0-9]*:../../devel/py-pyparsing
+TEST_DEPENDS+= ${PYPKGPREFIX}-zipp-[0-9]*:../../archivers/py-zipp
+#TEST_DEPENDS+=        ${PYPKGPREFIX}-testfixtures-[0-9]*:../../wip/py-testfixtures
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
 
-PYTHON_VERSIONED_DEPENDENCIES= pip:tool test:test zipp:test pyparsing:test
+PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 USE_PKG_RESOURCES=     yes
 
-.include "../../lang/python/pyversion.mk"
-
-.if ${_PYTHON_VERSION} == 27
-TEST_DEPENDS+= ${PYPKGPREFIX}-configparser-[0-9]*:../../devel/py-configparser
-.endif
-
 post-install:
        cd ${DESTDIR}${PREFIX}/bin && \
        ${MV} cpplint cpplint-${PYVERSSUFFIX} || ${TRUE}
 
 .include "../../lang/python/egg.mk"
-.include "../../lang/python/versioned_dependencies.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r e3e83a49a90f -r fbc26cc11d66 devel/py-cpplint/distinfo
--- a/devel/py-cpplint/distinfo Mon Jul 11 08:47:14 2022 +0000
+++ b/devel/py-cpplint/distinfo Mon Jul 11 08:48:48 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 10:18:20 nia Exp $
+$NetBSD: distinfo,v 1.6 2022/07/11 08:48:48 wiz Exp $
 
 BLAKE2s (cpplint-1.5.5.tar.gz) = dff23a9926a84bda664ac8fb9fc928839f7c289ec9711b1f3a7c9f276aee9e71
 SHA512 (cpplint-1.5.5.tar.gz) = 6f5148f5be2fba9e290a2e83a13943bed2d5d388f20c1e4efcc4eb832e905e71afc6ac074cd9553a7dbfeeb527c2759c3281a1243a0d8ce93a2082253d83ebf0
 Size (cpplint-1.5.5.tar.gz) = 361348 bytes
+SHA1 (patch-test-requirements) = a4bb24dc8a5f069772d6ed1296dedbcf001a046f
diff -r e3e83a49a90f -r fbc26cc11d66 devel/py-cpplint/patches/patch-test-requirements
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-cpplint/patches/patch-test-requirements  Mon Jul 11 08:48:48 2022 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-test-requirements,v 1.1 2022/07/11 08:48:49 wiz Exp $
+
+Allow current pkgsrc versions, restrictions are for python 2.7
+
+--- test-requirements.orig     2020-08-05 00:41:14.000000000 +0000
++++ test-requirements
+@@ -1,9 +1,8 @@
+ # minimal requirements to run python setup.py test
+ # 5.x requires python 3.5
+-pytest>=4.6,<5.0
++pytest>=4.6
+ pytest-cov
+ # freeze versions breaking python 2.7 on travis
+-pyparsing<3
+-zipp<=0.5.1
+-configparser<=3.7.4
++pyparsing
++zipp
+ testfixtures



Home | Main Index | Thread Index | Old Index