From: Ilya Tumaykin Date: Fri, 19 Feb 2016 19:51:01 +0000 (+0300) Subject: dev-python/mccabe: require pytest-runner only for tests X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c5d3ee48221068488c1a92129586a931963cacce;p=gentoo.git dev-python/mccabe: require pytest-runner only for tests Despite of what setup.py says pytest-runner is required for tests only. Package-Manager: portage-2.2.27 --- diff --git a/dev-python/mccabe/mccabe-0.4.0.ebuild b/dev-python/mccabe/mccabe-0.4.0.ebuild index a4d4a64c00f1..5aa2253a9708 100644 --- a/dev-python/mccabe/mccabe-0.4.0.ebuild +++ b/dev-python/mccabe/mccabe-0.4.0.ebuild @@ -21,7 +21,12 @@ SLOT="0" RDEPEND="dev-python/flake8[${PYTHON_USEDEP}]" DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] - dev-python/pytest-runner[${PYTHON_USEDEP}]" + test? ( dev-python/pytest-runner[${PYTHON_USEDEP}] )" + +src_prepare() { + sed -i -e '/pytest-runner/d' setup.py || die + distutils-r1_src_prepare +} python_test() { ${EPYTHON} test_mccabe.py || die