1 |
commit: c4f085fbb872c0b039de7874070559f2c2d9ac08 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Nov 25 12:24:44 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 25 12:35:01 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4f085fb |
7 |
|
8 |
dev-python/backports-unittest-mock: Use distutils_enable_sphinx |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../backports-unittest-mock-1.5-r1.ebuild | 25 ++++------------------ |
13 |
1 file changed, 4 insertions(+), 21 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/backports-unittest-mock/backports-unittest-mock-1.5-r1.ebuild b/dev-python/backports-unittest-mock/backports-unittest-mock-1.5-r1.ebuild |
16 |
index b69e44f57ae..cd052cc5e1b 100644 |
17 |
--- a/dev-python/backports-unittest-mock/backports-unittest-mock-1.5-r1.ebuild |
18 |
+++ b/dev-python/backports-unittest-mock/backports-unittest-mock-1.5-r1.ebuild |
19 |
@@ -18,7 +18,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz" |
20 |
LICENSE="MIT" |
21 |
SLOT="0" |
22 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
23 |
-IUSE="doc test" |
24 |
+IUSE="test" |
25 |
|
26 |
RDEPEND=" |
27 |
dev-python/backports[${PYTHON_USEDEP}] |
28 |
@@ -26,12 +26,6 @@ RDEPEND=" |
29 |
" |
30 |
BDEPEND=" |
31 |
dev-python/setuptools[${PYTHON_USEDEP}] |
32 |
- doc? ( $(python_gen_any_dep ' |
33 |
- >=dev-python/jaraco-packaging-3.2[${PYTHON_USEDEP}] |
34 |
- >=dev-python/rst-linker-1.9[${PYTHON_USEDEP}] |
35 |
- >=dev-python/sphinx-1.5.2[${PYTHON_USEDEP}] |
36 |
- ') |
37 |
- ) |
38 |
test? ( |
39 |
${RDEPEND} |
40 |
>=dev-python/pytest-2.8[${PYTHON_USEDEP}] |
41 |
@@ -42,12 +36,9 @@ S="${WORKDIR}/${MY_PN}-${PV}" |
42 |
|
43 |
RESTRICT="!test? ( test )" |
44 |
|
45 |
-python_check_deps() { |
46 |
- use doc || return 0 |
47 |
- has_version ">=dev-python/jaraco-packaging-3.2[${PYTHON_USEDEP}]" && \ |
48 |
- has_version ">=dev-python/rst-linker-1.9[${PYTHON_USEDEP}]" && \ |
49 |
- has_version ">=dev-python/sphinx-1.5.2[${PYTHON_USEDEP}]" |
50 |
-} |
51 |
+distutils_enable_sphinx docs \ |
52 |
+ '>=dev-python/jaraco-packaging-3.2' \ |
53 |
+ '>=dev-python/rst-linker-1.9' |
54 |
|
55 |
python_prepare_all() { |
56 |
# avoid a setuptools_scm dependency |
57 |
@@ -58,14 +49,6 @@ python_prepare_all() { |
58 |
distutils-r1_python_prepare_all |
59 |
} |
60 |
|
61 |
-python_compile_all() { |
62 |
- if use doc; then |
63 |
- cd docs || die |
64 |
- sphinx-build . _build/html || die |
65 |
- HTML_DOCS=( docs/_build/html/. ) |
66 |
- fi |
67 |
-} |
68 |
- |
69 |
python_test() { |
70 |
# Override pytest options to skip flake8 |
71 |
pytest -vv --override-ini="addopts=--doctest-modules" \ |