Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/nose2/
Date: Mon, 27 Sep 2021 09:29:47
Message-Id: 1632734944.2168ed9a66472ddb40a65122db1be743f560057e.arthurzam@gentoo
1 commit: 2168ed9a66472ddb40a65122db1be743f560057e
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 27 08:11:57 2021 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 27 09:29:04 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2168ed9a
7
8 dev-python/nose2: enable py3.10
9
10 - cleanup dependencies
11 - use more verbose testing
12 - fix missing dep for doc generation
13 - tests (and package itself) need coverage dep. Without it we get
14 the same failure reported in the bug.
15 - enable py3.10
16
17 Closes: https://bugs.gentoo.org/723576
18 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
19
20 dev-python/nose2/nose2-0.10.0.ebuild | 26 ++++++--------------------
21 1 file changed, 6 insertions(+), 20 deletions(-)
22
23 diff --git a/dev-python/nose2/nose2-0.10.0.ebuild b/dev-python/nose2/nose2-0.10.0.ebuild
24 index 78d73e08836..868ec6bfc4c 100644
25 --- a/dev-python/nose2/nose2-0.10.0.ebuild
26 +++ b/dev-python/nose2/nose2-0.10.0.ebuild
27 @@ -3,7 +3,7 @@
28
29 EAPI=7
30
31 -PYTHON_COMPAT=( python3_{7,8,9} )
32 +PYTHON_COMPAT=( python3_{8..10} )
33 inherit distutils-r1
34
35 DESCRIPTION="Next generation unittest with plugins"
36 @@ -13,29 +13,15 @@ SRC_URI="https://github.com/nose-devs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
37 LICENSE="BSD"
38 SLOT="0"
39 KEYWORDS="amd64 x86"
40 -IUSE="doc"
41 -# Failures need investigating
42 -RESTRICT="test"
43
44 -BDEPEND="
45 - doc? ( >=dev-python/sphinx-1.0.5 )
46 -"
47 -DEPEND="
48 +RDEPEND="
49 >=dev-python/coverage-4.4.1[${PYTHON_USEDEP}]
50 - >=dev-python/six-1.1[${PYTHON_USEDEP}]
51 + dev-python/six[${PYTHON_USEDEP}]
52 "
53 -RDEPEND="${DEPEND}"
54
55 -python_compile_all() {
56 - use doc && emake -C docs html
57 -}
58 +distutils_enable_sphinx docs \
59 + dev-python/sphinx_rtd_theme
60
61 python_test() {
62 - "${PYTHON}" -m nose2.__main__ || die "tests failed under ${EPYTHON}"
63 -}
64 -
65 -python_install_all() {
66 - use doc && local HTML_DOCS=( docs/_build/html/. )
67 -
68 - distutils-r1_python_install_all
69 + "${EPYTHON}" -m nose2.__main__ -vv || die "tests failed under ${EPYTHON}"
70 }