1 |
commit: c5d3ee48221068488c1a92129586a931963cacce |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Feb 19 19:51:01 2016 +0000 |
4 |
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 19 20:21:45 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5d3ee48 |
7 |
|
8 |
dev-python/mccabe: require pytest-runner only for tests |
9 |
|
10 |
Despite of what setup.py says pytest-runner is required for tests only. |
11 |
|
12 |
Package-Manager: portage-2.2.27 |
13 |
|
14 |
dev-python/mccabe/mccabe-0.4.0.ebuild | 7 ++++++- |
15 |
1 file changed, 6 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/dev-python/mccabe/mccabe-0.4.0.ebuild b/dev-python/mccabe/mccabe-0.4.0.ebuild |
18 |
index a4d4a64..5aa2253 100644 |
19 |
--- a/dev-python/mccabe/mccabe-0.4.0.ebuild |
20 |
+++ b/dev-python/mccabe/mccabe-0.4.0.ebuild |
21 |
@@ -21,7 +21,12 @@ SLOT="0" |
22 |
|
23 |
RDEPEND="dev-python/flake8[${PYTHON_USEDEP}]" |
24 |
DEPEND="dev-python/setuptools[${PYTHON_USEDEP}] |
25 |
- dev-python/pytest-runner[${PYTHON_USEDEP}]" |
26 |
+ test? ( dev-python/pytest-runner[${PYTHON_USEDEP}] )" |
27 |
+ |
28 |
+src_prepare() { |
29 |
+ sed -i -e '/pytest-runner/d' setup.py || die |
30 |
+ distutils-r1_src_prepare |
31 |
+} |
32 |
|
33 |
python_test() { |
34 |
${EPYTHON} test_mccabe.py || die |