pkgsrc/devel/py-flake8/Makefile
adam 142c2797be py-flake8: update to 3.5.0
3.5.0:

New Dependency Information
* Allow for PyFlakes 1.6.0
* Start using new PyCodestyle checks for bare excepts and ambiguous identifier

Features
* Print out information about configuring VCS hooks
* Allow users to develop plugins “local” to a repository without using setuptools. See our documentation on local plugins for more information.

Bugs Fixed
* Catch and helpfully report UnicodeDecodeErrors when parsing configuration files.
2017-10-23 20:44:27 +00:00

33 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.11 2017/10/23 20:44:27 adam Exp $
DISTNAME= flake8-3.5.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=f/flake8/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://pypi.python.org/pypi/flake8/
COMMENT= Modular source code checker for Python programs
LICENSE= mit
DEPENDS+= ${PYPKGPREFIX}-flakes>=1.5.0:../../devel/py-flakes
DEPENDS+= ${PYPKGPREFIX}-mccabe>=0.6.0:../../devel/py-mccabe
DEPENDS+= ${PYPKGPREFIX}-codestyle>=2.0.0:../../devel/py-codestyle
.include "../../lang/python/pyversion.mk"
.if "${PYPKGPREFIX}" == "py27"
DEPENDS+= ${PYPKGPREFIX}-configparser-[0-9]*:../../devel/py-configparser
DEPENDS+= ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
.endif
# TEST_DEPENDS
# 8 test failures as of 3.0.4, see
# https://gitlab.com/pycqa/flake8/issues/232
BUILD_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
BUILD_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
BUILD_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
post-install:
cd ${DESTDIR}${PREFIX}/bin && ${MV} flake8 flake8-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"