Mon May 18 13:14:17 2020 UTC ()
py-pylint: merge some improvements from py-lint


(wiz)
diff -r1.1 -r1.2 pkgsrc/devel/py-pylint/DESCR
diff -r1.40 -r1.41 pkgsrc/devel/py-pylint/Makefile

cvs diff -r1.1 -r1.2 pkgsrc/devel/py-pylint/DESCR (expand / switch to unified diff)

--- pkgsrc/devel/py-pylint/DESCR 2014/03/12 01:26:03 1.1
+++ pkgsrc/devel/py-pylint/DESCR 2020/05/18 13:14:17 1.2
@@ -1,10 +1,10 @@ @@ -1,10 +1,10 @@
1Pylint is a Python source code analyzer which looks for programming 1Pylint is a Python source code analyzer which looks for programming
2errors, helps enforcing a coding standard and sniffs for some code 2errors, helps enforcing a coding standard and sniffs for some code
3smells (as defined in Martin Fowler's Refactoring book). 3smells (as defined in Martin Fowler's Refactoring book).
4Pylint can be seen as another PyChecker since nearly all tests you 4Pylint can be seen as another PyChecker since nearly all tests you
5can do with PyChecker can also be done with Pylint. However, Pylint 5can do with PyChecker can also be done with Pylint. However, Pylint
6offers some more features, like checking length of lines of code, 6offers some more features, like checking length of lines of code,
7checking if variable names are well-formed according to your coding 7checking if variable names are well-formed according to your coding
8standard, or checking if declared interfaces are truly implemented, 8standard, or checking if declared interfaces are truly implemented,
9and much more. . Additionally, it is possible to write plugins to 9and much more. Additionally, it is possible to write plugins to
10add your own checks. 10add your own checks.

cvs diff -r1.40 -r1.41 pkgsrc/devel/py-pylint/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/py-pylint/Makefile 2020/05/05 18:21:25 1.40
+++ pkgsrc/devel/py-pylint/Makefile 2020/05/18 13:14:17 1.41
@@ -1,40 +1,37 @@ @@ -1,40 +1,37 @@
1# $NetBSD: Makefile,v 1.40 2020/05/05 18:21:25 adam Exp $ 1# $NetBSD: Makefile,v 1.41 2020/05/18 13:14:17 wiz Exp $
2 2
3DISTNAME= pylint-2.5.2 3DISTNAME= pylint-2.5.2
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= devel python 5CATEGORIES= devel python
6MASTER_SITES= ${MASTER_SITE_PYPI:=p/pylint/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=p/pylint/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://www.pylint.org/ 9HOMEPAGE= https://www.pylint.org/
10COMMENT= Python source code analyzer 10COMMENT= Python source code analyzer
11LICENSE= gnu-gpl-v2 11LICENSE= gnu-gpl-v2
12 12
13DEPENDS+= ${PYPKGPREFIX}-astroid>=2.2.0:../../devel/py-astroid 13DEPENDS+= ${PYPKGPREFIX}-astroid>=2.2.0:../../devel/py-astroid
14DEPENDS+= ${PYPKGPREFIX}-isort>=4.2.5:../../devel/py-isort 14DEPENDS+= ${PYPKGPREFIX}-isort>=4.2.5:../../devel/py-isort
15DEPENDS+= ${PYPKGPREFIX}-mccabe>=0.6:../../devel/py-mccabe 15DEPENDS+= ${PYPKGPREFIX}-mccabe>=0.6:../../devel/py-mccabe
16BUILD_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner 16BUILD_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
17TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test 17TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
18 18
19USE_LANGUAGES= # none 19USE_LANGUAGES= # none
20 20
21PYTHON_VERSIONS_INCOMPATIBLE= 27 21PYTHON_VERSIONS_INCOMPATIBLE= 27
22 22
23INSTALLATION_DIRS= ${PKGMANDIR}/man1 23INSTALLATION_DIRS= ${PKGMANDIR}/man1
24 24
25REPLACE_PYTHON+= tests/data/ascript 
26 
27post-install: 25post-install:
28.for file in epylint pylint pyreverse symilar 26.for file in epylint pylint pyreverse symilar
29 cd ${DESTDIR}${PREFIX}/bin && \ 27 cd ${DESTDIR}${PREFIX}/bin && \
30 ${MV} ${file} ${file}-${PYVERSSUFFIX} || ${TRUE} 28 ${MV} ${file} ${file}-${PYVERSSUFFIX} || ${TRUE}
31 ${INSTALL_DATA} ${WRKSRC}/man/${file}.1 \ 29 ${INSTALL_DATA} ${WRKSRC}/man/${file}.1 \
32 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${file}-${PYVERSSUFFIX}.1 30 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${file}-${PYVERSSUFFIX}.1
33.endfor 31.endfor
34 32
35do-test: 33do-test:
36 cd ${WRKSRC} && pytest-${PYVERSSUFFIX} 34 cd ${WRKSRC} && ${SETENV} ${TEST_ENV} PYTHONPATH=. py.test-${PYVERSSUFFIX}
37 35
38.include "../../lang/python/application.mk" 
39.include "../../lang/python/egg.mk" 36.include "../../lang/python/egg.mk"
40.include "../../mk/bsd.pkg.mk" 37.include "../../mk/bsd.pkg.mk"