dev-python/mock: dev-python/unittest2 is required in all versions
authorJustin Lecher <jlec@gentoo.org>
Thu, 31 Dec 2015 12:22:42 +0000 (13:22 +0100)
committerJustin Lecher <jlec@gentoo.org>
Thu, 31 Dec 2015 12:55:03 +0000 (13:55 +0100)
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=570322

Package-Manager: portage-2.2.26
Signed-off-by: Justin Lecher <jlec@gentoo.org>
dev-python/mock/mock-1.3.0-r1.ebuild

index 46dc640b3cce6c61d6ca3ddbda1077e213629227..5407477dc50e8a2b27b75c75f2a33202f01f3da6 100644 (file)
@@ -15,7 +15,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
-IUSE="doc test"
+IUSE="test"
 
 CDEPEND="
        >=dev-python/pbr-1.3[${PYTHON_USEDEP}]
@@ -25,7 +25,7 @@ DEPEND="
        test? (
                ${CDEPEND}
                dev-python/nose[${PYTHON_USEDEP}]
-               $(python_gen_cond_dep '>=dev-python/unittest2-1.1.0[${PYTHON_USEDEP}]' python{2_7,3_3} pypy)
+               >=dev-python/unittest2-1.1.0[${PYTHON_USEDEP}]
        )"
 RDEPEND="
        ${CDEPEND}
@@ -33,11 +33,10 @@ RDEPEND="
 "
 
 python_test() {
-       nosetests || die "tests fail under ${EPYTHON}"
+       nosetests --verbose || die "tests fail under ${EPYTHON}"
 }
 
 python_install_all() {
-       use doc && local DOCS=( docs/*.txt )
-
+       local DOCS=( docs/. )
        distutils-r1_python_install_all
 }