From c5d3ee48221068488c1a92129586a931963cacce Mon Sep 17 00:00:00 2001 From: Ilya Tumaykin Date: Fri, 19 Feb 2016 22:51:01 +0300 Subject: 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 --- dev-python/mccabe/mccabe-0.4.0.ebuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'dev-python/mccabe') 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 -- cgit v1.2.3-65-gdbad