2017-02-19 20:15:42 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.11 2017/02/19 20:15:42 shadchin Exp $
|
2014-11-18 12:10:58 +00:00
|
|
|
|
|
|
|
COMMENT = modular python code checker wrapping pep8 and pyflakes
|
|
|
|
|
2017-02-19 20:15:42 +00:00
|
|
|
MODPY_EGG_VERSION = 3.3.0
|
2014-11-18 12:10:58 +00:00
|
|
|
DISTNAME = flake8-${MODPY_EGG_VERSION}
|
|
|
|
|
|
|
|
CATEGORIES = devel
|
|
|
|
|
2015-12-28 17:28:20 +00:00
|
|
|
HOMEPAGE = https://gitlab.com/pycqa/flake8
|
2014-11-18 12:10:58 +00:00
|
|
|
|
|
|
|
MAINTAINER = Bertrand Janin <b@janin.com>
|
|
|
|
|
2015-12-24 15:36:54 +00:00
|
|
|
# MIT
|
2014-11-18 12:10:58 +00:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
|
|
|
|
MODULES = lang/python
|
|
|
|
|
2016-11-15 08:23:50 +00:00
|
|
|
MODPY_PI = Yes
|
2014-11-18 12:10:58 +00:00
|
|
|
MODPY_SETUPTOOLS = Yes
|
|
|
|
|
2015-12-24 15:36:54 +00:00
|
|
|
TEST_DEPENDS = ${RUN_DEPENDS} \
|
2016-11-02 18:19:05 +00:00
|
|
|
devel/py-test \
|
2014-11-18 12:10:58 +00:00
|
|
|
devel/py-mock
|
|
|
|
|
2016-11-02 18:19:05 +00:00
|
|
|
RUN_DEPENDS = devel/py-codestyle \
|
|
|
|
devel/py-configparser \
|
|
|
|
devel/py-enum34 \
|
2014-11-18 12:10:58 +00:00
|
|
|
devel/py-mccabe \
|
|
|
|
devel/pyflakes
|
|
|
|
|
2016-11-03 13:36:07 +00:00
|
|
|
BUILD_DEPENDS = devel/py-test-runner
|
|
|
|
|
2014-11-18 12:10:58 +00:00
|
|
|
do-test:
|
2016-11-02 18:19:05 +00:00
|
|
|
cd ${WRKSRC} && PYTHONPATH=src ${MODPY_BIN} -m pytest tests
|
2014-11-18 12:10:58 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|