kmos c45cd79fc7 Add RUN_DEPENDS to TEST_DEPENDS automatically for ports using the
lang/python port module. I've not yet come up with a port that
would not need this and one can always set MODPY_TESTDEP to "no"
to prevent the module from touching TEST_DEPENDS.

Idea from afresh1 who pointed out the cpan module already does this.

aja "I support this move."

OK sthen@
2019-05-15 12:04:34 +00:00

37 lines
779 B
Makefile

# $OpenBSD: Makefile,v 1.15 2019/05/15 12:04:35 kmos Exp $
COMMENT = modular python code checker wrapping pep8 and pyflakes
MODPY_EGG_VERSION = 3.5.0
DISTNAME = flake8-${MODPY_EGG_VERSION}
REVISION = 0
CATEGORIES = devel
HOMEPAGE = https://gitlab.com/pycqa/flake8
MAINTAINER = Bertrand Janin <b@janin.com>
# MIT
PERMIT_PACKAGE_CDROM = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
MODPY_VERSION = ${MODPY_DEFAULT_VERSION_3}
MODPY_PYTEST = Yes
MODPY_PYTEST_ARGS = tests
TEST_DEPENDS = devel/py-mock${MODPY_FLAVOR}
RUN_DEPENDS = devel/py-codestyle${MODPY_FLAVOR} \
devel/py-mccabe${MODPY_FLAVOR} \
devel/pyflakes${MODPY_FLAVOR}
BUILD_DEPENDS = devel/py-test-runner${MODPY_FLAVOR}
TEST_ENV += PYTHONPATH=src
.include <bsd.port.mk>