Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-cov/
Date: Mon, 25 Nov 2019 12:35:42
Message-Id: 1574685316.023be61468d7a39102f829b41aec616c3bc3ceac.mgorny@gentoo
1 commit: 023be61468d7a39102f829b41aec616c3bc3ceac
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 25 12:25:18 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 25 12:35:16 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=023be614
7
8 dev-python/pytest-cov: Use distutils_enable_sphinx
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pytest-cov/pytest-cov-2.8.1.ebuild | 27 ++++-----------------------
13 1 file changed, 4 insertions(+), 23 deletions(-)
14
15 diff --git a/dev-python/pytest-cov/pytest-cov-2.8.1.ebuild b/dev-python/pytest-cov/pytest-cov-2.8.1.ebuild
16 index 10e7f1f4e01..2f7b6ae7106 100644
17 --- a/dev-python/pytest-cov/pytest-cov-2.8.1.ebuild
18 +++ b/dev-python/pytest-cov/pytest-cov-2.8.1.ebuild
19 @@ -14,16 +14,13 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
20 LICENSE="MIT"
21 SLOT="0"
22 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
23 -IUSE="doc test"
24 +IUSE="test"
25 +RESTRICT="!test? ( test )"
26
27 RDEPEND="
28 >=dev-python/py-1.4.22[${PYTHON_USEDEP}]
29 >=dev-python/pytest-3.6[${PYTHON_USEDEP}]
30 >=dev-python/coverage-4.4[${PYTHON_USEDEP}]
31 - doc? (
32 - $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]')
33 - $(python_gen_any_dep 'dev-python/sphinx-py3doc-enhanced-theme[${PYTHON_USEDEP}]')
34 - )
35 "
36 DEPEND="
37 dev-python/setuptools[${PYTHON_USEDEP}]
38 @@ -35,24 +32,13 @@ DEPEND="
39 )
40 "
41
42 -RESTRICT="!test? ( test )"
43 -
44 PATCHES=(
45 # Bug 597708
46 "${FILESDIR}/${PN}-2.8.1-disable-broken-tests.patch"
47 )
48
49 -python_check_deps() {
50 - use doc || return 0
51 - local dep
52 - for dep in dev-python/sphinx dev-python/sphinx-py3doc-enhanced-theme; do
53 - has_version ${dep}[${PYTHON_USEDEP}] || return ${?}
54 - done
55 -}
56 -
57 -python_compile_all() {
58 - use doc && sphinx-build -b html docs _build/html
59 -}
60 +distutils_enable_sphinx docs \
61 + dev-python/sphinx-py3doc-enhanced-theme
62
63 python_test() {
64 distutils_install_for_testing
65 @@ -60,8 +46,3 @@ python_test() {
66 PYTEST_PLUGINS=${PN/-/_} \
67 pytest -vv || die "Tests failed under ${EPYTHON}"
68 }
69 -
70 -python_install_all() {
71 - use doc && HTML_DOCS=( _build/html/. )
72 - distutils-r1_python_install_all
73 -}