diff options
author | Ilya Tumaykin <itumaykin@gmail.com> | 2016-02-19 22:51:01 +0300 |
---|---|---|
committer | Ilya Tumaykin <itumaykin@gmail.com> | 2016-02-19 23:21:45 +0300 |
commit | c5d3ee48221068488c1a92129586a931963cacce (patch) | |
tree | 19b4ce86cdbe5053dc7321f7468308454a9addca /dev-python/mccabe | |
parent | d3849f6faa533a35a45294aaadeb53f96ba7ca7a (diff) | |
download | gentoo-c5d3ee48221068488c1a92129586a931963cacce.tar.gz gentoo-c5d3ee48221068488c1a92129586a931963cacce.tar.xz |
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
Diffstat (limited to 'dev-python/mccabe')
-rw-r--r-- | dev-python/mccabe/mccabe-0.4.0.ebuild | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dev-python/mccabe/mccabe-0.4.0.ebuild b/dev-python/mccabe/mccabe-0.4.0.ebuild index a4d4a64c00f..5aa2253a970 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 |