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/webtest/
Date: Mon, 25 Nov 2019 12:35:43
Message-Id: 1574685321.a53294c6e44cf07e9102b4b3f4afea56ecd3c11f.mgorny@gentoo
1 commit: a53294c6e44cf07e9102b4b3f4afea56ecd3c11f
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 25 12:25:27 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 25 12:35:21 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a53294c6
7
8 dev-python/webtest: Use distutils_enable_sphinx
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/webtest/webtest-2.0.33.ebuild | 35 ++++----------------------------
13 1 file changed, 4 insertions(+), 31 deletions(-)
14
15 diff --git a/dev-python/webtest/webtest-2.0.33.ebuild b/dev-python/webtest/webtest-2.0.33.ebuild
16 index 192dfb7318f..c9df5a13b44 100644
17 --- a/dev-python/webtest/webtest-2.0.33.ebuild
18 +++ b/dev-python/webtest/webtest-2.0.33.ebuild
19 @@ -13,11 +13,13 @@ MY_P="${MY_PN}-${PV}"
20 DESCRIPTION="Helper to test WSGI applications"
21 HOMEPAGE="https://pypi.org/project/WebTest/"
22 SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
23 +S="${WORKDIR}/${MY_P}"
24
25 LICENSE="MIT"
26 SLOT="0"
27 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~s390 ~sh ~sparc ~x86"
28 -IUSE="doc test"
29 +IUSE="test"
30 +RESTRICT="!test? ( test )"
31
32 # nose<1.3.0 appears a leftover never updated in requires.txt. tests pass fine with latest
33 RDEPEND="
34 @@ -28,10 +30,6 @@ RDEPEND="
35 DEPEND="${RDEPEND}
36 app-arch/unzip
37 dev-python/setuptools[${PYTHON_USEDEP}]
38 - doc? ( $(python_gen_any_dep '
39 - dev-python/sphinx[${PYTHON_USEDEP}]
40 - ')
41 - )
42 test? ( dev-python/nose[${PYTHON_USEDEP}]
43 dev-python/pyquery[${PYTHON_USEDEP}]
44 dev-python/pastedeploy[${PYTHON_USEDEP}]
45 @@ -40,31 +38,11 @@ DEPEND="${RDEPEND}
46 $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' python2_7 )
47 )"
48
49 -S="${WORKDIR}/${MY_P}"
50 -
51 -RESTRICT="!test? ( test )"
52 -
53 PATCHES=(
54 "${FILESDIR}/webtest-2.0.33-no-pylons-theme.patch"
55 )
56
57 -python_check_deps() {
58 - use doc || return 0
59 - has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
60 -}
61 -
62 -python_prepare_all() {
63 - # Prevent un-needed d'loading during doc build
64 - sed -i -e 's:^intersphinx_mapping:disabled_&: ; s:^templates_path:#&:' \
65 - docs/conf.py || die
66 - distutils-r1_python_prepare_all
67 -}
68 -
69 -python_compile_all() {
70 - if use doc; then
71 - sphinx-build docs html || die
72 - fi
73 -}
74 +distutils_enable_sphinx docs
75
76 python_test() {
77 distutils_install_for_testing
78 @@ -72,8 +50,3 @@ python_test() {
79 local -x PYTHONPATH=
80 nosetests -v || die "Tests fail with ${EPYTHON}"
81 }
82 -
83 -python_install_all() {
84 - use doc && local HTML_DOCS=( html/. )
85 - distutils-r1_python_install_all
86 -}