commit:     2168ed9a66472ddb40a65122db1be743f560057e
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 27 08:11:57 2021 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Mon Sep 27 09:29:04 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2168ed9a

dev-python/nose2: enable py3.10

- cleanup dependencies
- use more verbose testing
- fix missing dep for doc generation
- tests (and package itself) need coverage dep. Without it we get
  the same failure reported in the bug.
- enable py3.10

Closes: https://bugs.gentoo.org/723576
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 dev-python/nose2/nose2-0.10.0.ebuild | 26 ++++++--------------------
 1 file changed, 6 insertions(+), 20 deletions(-)

diff --git a/dev-python/nose2/nose2-0.10.0.ebuild 
b/dev-python/nose2/nose2-0.10.0.ebuild
index 78d73e08836..868ec6bfc4c 100644
--- a/dev-python/nose2/nose2-0.10.0.ebuild
+++ b/dev-python/nose2/nose2-0.10.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{7,8,9} )
+PYTHON_COMPAT=( python3_{8..10} )
 inherit distutils-r1
 
 DESCRIPTION="Next generation unittest with plugins"
@@ -13,29 +13,15 @@ 
SRC_URI="https://github.com/nose-devs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="amd64 x86"
-IUSE="doc"
-# Failures need investigating
-RESTRICT="test"
 
-BDEPEND="
-       doc? ( >=dev-python/sphinx-1.0.5 )
-"
-DEPEND="
+RDEPEND="
        >=dev-python/coverage-4.4.1[${PYTHON_USEDEP}]
-       >=dev-python/six-1.1[${PYTHON_USEDEP}]
+       dev-python/six[${PYTHON_USEDEP}]
 "
-RDEPEND="${DEPEND}"
 
-python_compile_all() {
-       use doc && emake -C docs html
-}
+distutils_enable_sphinx docs \
+       dev-python/sphinx_rtd_theme
 
 python_test() {
-       "${PYTHON}" -m nose2.__main__ || die "tests failed under ${EPYTHON}"
-}
-
-python_install_all() {
-       use doc && local HTML_DOCS=( docs/_build/html/. )
-
-       distutils-r1_python_install_all
+       "${EPYTHON}" -m nose2.__main__ -vv || die "tests failed under 
${EPYTHON}"
 }

Reply via email to