pkgsrc/devel/py-pylint/Makefile
adam f065ff3498 py-pylint: updated to 1.9.2
Pylint 1.9.2:
* Fix `KeyError` raised when using docparams and NotImplementedError is documented.

* Don't include excepthandlers that don't have a name when looking for exception-escape

* Rewrite the comprehension-escape and exception-escape to work only on the corresponding nodes

These two checks were implemented in terms of visit_namne, that is, for every name in the tree,
we looked to see if that name leaked. This was resulting in a couple of false positives
and also in a performance issue, since we were calling nodes_of_class() and scope() for each
name node. Instead, this approach uses the visit methods for exception and comprehension nodes
and looks to see from there if the current scope uses leaked names.
This is not the ideal situation as well, ideal would be to have access to the definition
frame of each name, but that requires some extra engineering effort in astroid to get it right.

* builtins is allowed to redefine builtins.
2018-06-07 06:44:02 +00:00

45 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.26 2018/06/07 06:44:02 adam Exp $
DISTNAME= pylint-1.9.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pylint/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://www.pylint.org/
COMMENT= Python source code analyzer
LICENSE= gnu-gpl-v2
.include "../../lang/python/pyversion.mk"
DEPENDS+= ${PYPKGPREFIX}-astroid>=1.6.0:../../devel/py-astroid
DEPENDS+= ${PYPKGPREFIX}-isort>=4.2.5:../../devel/py-isort
DEPENDS+= ${PYPKGPREFIX}-mccabe-[0-9]*:../../devel/py-mccabe
DEPENDS+= ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
.if ${PYVERSSUFFIX} == "2.7"
DEPENDS+= ${PYPKGPREFIX}-backports.functools_lru_cache-[0-9]*:../../devel/py-backports.functools_lru_cache
DEPENDS+= ${PYPKGPREFIX}-configparser-[0-9]*:../../devel/py-configparser
DEPENDS+= ${PYPKGPREFIX}-singledispatch-[0-9]*:../../devel/py-singledispatch
.endif
BUILD_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
USE_LANGUAGES= # none
INSTALLATION_DIRS= ${PKGMANDIR}/man1
REPLACE_PYTHON+= pylint/test/data/ascript
post-install:
.for file in epylint pylint pyreverse symilar
${MV} ${DESTDIR}${PREFIX}/bin/${file} ${DESTDIR}${PREFIX}/bin/${file}${PYVERSSUFFIX} || ${TRUE}
${INSTALL_DATA} ${WRKSRC}/man/${file}.1 \
${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/${file}${PYVERSSUFFIX}.1
.endfor
do-test:
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"