1 |
commit: af2e795c1d47eeb59e2d812ccfe9ecee0b872b82 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 25 12:24:54 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 25 12:35:06 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af2e795c |
7 |
|
8 |
dev-python/future: Use distutils_enable_sphinx |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/future/future-0.17.1.ebuild | 23 ++--------------------- |
13 |
1 file changed, 2 insertions(+), 21 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/future/future-0.17.1.ebuild b/dev-python/future/future-0.17.1.ebuild |
16 |
index 0aee1d1a931..a1b80c57871 100644 |
17 |
--- a/dev-python/future/future-0.17.1.ebuild |
18 |
+++ b/dev-python/future/future-0.17.1.ebuild |
19 |
@@ -14,33 +14,21 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
20 |
LICENSE="MIT" |
21 |
SLOT="0" |
22 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" |
23 |
-IUSE="doc" |
24 |
|
25 |
+distutils_enable_sphinx docs \ |
26 |
+ dev-python/sphinx-bootstrap-theme |
27 |
distutils_enable_tests pytest |
28 |
|
29 |
# TODO: make numpy unconditional when it supports py3.8 |
30 |
BDEPEND=" |
31 |
dev-python/setuptools[${PYTHON_USEDEP}] |
32 |
- doc? ( |
33 |
- $(python_gen_any_dep ' |
34 |
- dev-python/sphinx[${PYTHON_USEDEP}] |
35 |
- dev-python/sphinx-bootstrap-theme[${PYTHON_USEDEP}] |
36 |
- ' python{2_7,3_{5,6,7}}) |
37 |
- ) |
38 |
test? ( |
39 |
$(python_gen_cond_dep 'dev-python/numpy[${PYTHON_USEDEP}]' \ |
40 |
python{2_7,3_{5,6,7}}) |
41 |
) |
42 |
" |
43 |
|
44 |
-python_check_deps() { |
45 |
- use doc || return 0 |
46 |
- has_version "dev-python/sphinx[${PYTHON_USEDEP}]" && |
47 |
- has_version "dev-python/sphinx-bootstrap-theme[${PYTHON_USEDEP}]" |
48 |
-} |
49 |
- |
50 |
python_prepare_all() { |
51 |
- sed -i "/'sphinx.ext.intersphinx'/d" docs/conf.py || die |
52 |
# tests requiring network access |
53 |
rm tests/test_future/test_requests.py || die |
54 |
sed -i -e 's:test.*request_http:_&:' \ |
55 |
@@ -48,10 +36,3 @@ python_prepare_all() { |
56 |
|
57 |
distutils-r1_python_prepare_all |
58 |
} |
59 |
- |
60 |
-python_compile_all() { |
61 |
- if use doc; then |
62 |
- sphinx-build docs/ docs/_build/html || die |
63 |
- HTML_DOCS=( docs/_build/html/. ) |
64 |
- fi |
65 |
-} |