pkgsrc/devel/py-pylint/Makefile
adam c70e17cdb1 py-pylint: updated to 1.8.2
What's New in Pylint 1.8.2?
* Fixed a crash which occurred when Uninferable wasn't properly handled in stop-iteration-return
* Use the proper node to get the name for redefined functions
* Don't crash when encountering bare raises while checking inconsistent returns
* Fix a false positive inconsistent-return-statements message when if
  statement is inside try/except.
* Fix a false positive inconsistent-return-statements message when
  while loop are used.
* Fix unused-argument false positives with overshadowed variable in
  dictionary comprehension.
* Fix false positive inconsistent-return-statements message when never
  returning functions are used (i.e sys.exit for example).
* Fix error when checking if function is exception, as in bad-exception-context.
2018-01-24 08:37:46 +00:00

44 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.20 2018/01/24 08:37:46 adam Exp $
DISTNAME= pylint-1.8.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pylint/}
MAINTAINER= helgoman@users.sourceforge.net
HOMEPAGE= https://www.pylint.org/
COMMENT= Python source code analyzer
LICENSE= gnu-gpl-v2
.include "../../lang/python/pyversion.mk"
DEPENDS+= ${PYPKGPREFIX}-astroid>=1.5.1:../../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
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"