projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3849f6
)
dev-python/mccabe: require pytest-runner only for tests
author
Ilya Tumaykin
<itumaykin@gmail.com>
Fri, 19 Feb 2016 19:51:01 +0000
(22:51 +0300)
committer
Ilya Tumaykin
<itumaykin@gmail.com>
Fri, 19 Feb 2016 20:21:45 +0000
(23:21 +0300)
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
patch
|
blob
|
history
diff --git
a/dev-python/mccabe/mccabe-0.4.0.ebuild
b/dev-python/mccabe/mccabe-0.4.0.ebuild
index a4d4a64c00f1eb0f6637405a8fdee7d882df3fb1..5aa2253a9708a195e4ed47b6911be2ade9a31fae 100644
(file)
--- 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