pkgsrc/devel/py-flake8/Makefile
adam 9ccd252117 py-flake8: updated to 3.9.2
3.9.2 -- 2021-05-08
-------------------
You can view the `3.9.2 milestone`_ on GitHub for more details.

Bugs Fixed
- Fix error message for ``E111`` in ``pycodestyle`` (See also :pull:`1328`,
  :issue:`1327`).

Deprecations
- ``indent_size_str`` is deprecated, use ``str(indent_size)`` instead (See
  also :pull:`1328`, :issue:`1327`).
2021-05-10 05:57:50 +00:00

40 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.38 2021/05/10 05:57:50 adam Exp $
DISTNAME= flake8-3.9.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=f/flake8/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://gitlab.com/pycqa/flake8
COMMENT= Modular source code checker for Python programs
LICENSE= mit
DEPENDS+= ${PYPKGPREFIX}-codestyle>=2.7.0:../../devel/py-codestyle
DEPENDS+= ${PYPKGPREFIX}-flakes>=2.3.0:../../devel/py-flakes
DEPENDS+= ${PYPKGPREFIX}-mccabe>=0.6.0:../../devel/py-mccabe
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} == 27
DEPENDS+= ${PYPKGPREFIX}-configparser-[0-9]*:../../devel/py-configparser
DEPENDS+= ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
DEPENDS+= ${PYPKGPREFIX}-functools32-[0-9]*:../../devel/py-functools32
DEPENDS+= ${PYPKGPREFIX}-typing-[0-9]*:../../devel/py-typing
.endif
.if ${_PYTHON_VERSION} < 38
DEPENDS+= ${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata
.endif
BUILD_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
TEST_DEPENDS+= ${PYPKGPREFIX}-mock>=2.0.0:../../devel/py-mock
TEST_DEPENDS+= ${PYPKGPREFIX}-pylint-[0-9]*:../../devel/py-pylint
USE_LANGUAGES= # none
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} flake8 flake8-${PYVERSSUFFIX} || ${TRUE}
do-test:
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"