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/tempora/
Date: Mon, 25 Nov 2019 12:35:43
Message-Id: 1574685318.2e85b5ec60f73a4a19f51690478c46d5ff528292.mgorny@gentoo
1 commit: 2e85b5ec60f73a4a19f51690478c46d5ff528292
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 25 12:25:21 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 25 12:35:18 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e85b5ec
7
8 dev-python/tempora: Use distutils_enable_sphinx
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/tempora/tempora-1.14.1-r1.ebuild | 30 ++++++-----------------------
13 1 file changed, 6 insertions(+), 24 deletions(-)
14
15 diff --git a/dev-python/tempora/tempora-1.14.1-r1.ebuild b/dev-python/tempora/tempora-1.14.1-r1.ebuild
16 index 067df96ad32..abe49400046 100644
17 --- a/dev-python/tempora/tempora-1.14.1-r1.ebuild
18 +++ b/dev-python/tempora/tempora-1.14.1-r1.ebuild
19 @@ -11,11 +11,13 @@ MY_PN="${PN/-/.}"
20 DESCRIPTION="Objects and routines pertaining to date and time"
21 HOMEPAGE="https://github.com/jaraco/tempora"
22 SRC_URI="mirror://pypi/${PN:0:1}/${MY_PN}/${MY_PN}-${PV}.tar.gz"
23 +S="${WORKDIR}/${MY_PN}-${PV}"
24
25 LICENSE="MIT"
26 SLOT="0"
27 KEYWORDS="~amd64 ~x86"
28 -IUSE="doc test"
29 +IUSE="test"
30 +RESTRICT="!test? ( test )"
31
32 RDEPEND="
33 >=dev-python/jaraco-functools-1.20[${PYTHON_USEDEP}]
34 @@ -23,12 +25,6 @@ RDEPEND="
35 dev-python/six[${PYTHON_USEDEP}]
36 "
37 BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
38 - doc? ( $(python_gen_any_dep '
39 - >=dev-python/jaraco-packaging-3.2[${PYTHON_USEDEP}]
40 - >=dev-python/rst-linker-1.9[${PYTHON_USEDEP}]
41 - dev-python/sphinx[${PYTHON_USEDEP}]
42 - ')
43 - )
44 test? (
45 ${RDEPEND}
46 >=dev-python/pytest-2.8[${PYTHON_USEDEP}]
47 @@ -37,16 +33,9 @@ BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
48 )
49 "
50
51 -RESTRICT="!test? ( test )"
52 -
53 -S="${WORKDIR}/${MY_PN}-${PV}"
54 -
55 -python_check_deps() {
56 - use doc || return 0
57 - has_version ">=dev-python/jaraco-packaging-3.2[${PYTHON_USEDEP}]" && \
58 - has_version ">=dev-python/rst-linker-1.9[${PYTHON_USEDEP}]" && \
59 - has_version "dev-python/sphinx[${PYTHON_USEDEP}]"
60 -}
61 +distutils_enable_sphinx docs \
62 + ">=dev-python/jaraco-packaging-3.2" \
63 + ">=dev-python/rst-linker-1.9"
64
65 python_prepare_all() {
66 # avoid a setuptools_scm dependency
67 @@ -57,13 +46,6 @@ python_prepare_all() {
68 distutils-r1_python_prepare_all
69 }
70
71 -python_compile_all() {
72 - if use doc; then
73 - sphinx-build docs docs/_build/html || die
74 - HTML_DOCS=( docs/_build/html/. )
75 - fi
76 -}
77 -
78 python_test() {
79 # Override pytest options to skip flake8
80 PYTHONPATH=. pytest -vv --override-ini="addopts=--doctest-modules" \