Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/tekore/
Date: Mon, 10 Feb 2020 14:19:22
Message-Id: 1581343866.744f03002c637d9ad4fd63c3051350d84dd91c37.andrewammerlaan@gentoo
1 commit: 744f03002c637d9ad4fd63c3051350d84dd91c37
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
3 AuthorDate: Mon Feb 10 14:08:24 2020 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Mon Feb 10 14:11:06 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=744f0300
7
8 dev-python/tekore: Fix IUSE="doc"
9
10 distutils_enable_sphinx acts weird when there is only one python
11 version in PYTHON_COMPAT, for some reason it wants to add
12 PYTHON_SINGLE_TARGET to use of sphinx-* deps, but these deps
13 don't have PYTHON_SINGLE_TARGET
14
15 Package-Manager: Portage-2.3.88, Repoman-2.3.20
16 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
17
18 dev-python/tekore/tekore-1.1.0.ebuild | 13 ++++++++++++-
19 1 file changed, 12 insertions(+), 1 deletion(-)
20
21 diff --git a/dev-python/tekore/tekore-1.1.0.ebuild b/dev-python/tekore/tekore-1.1.0.ebuild
22 index f356ed9..456c7d2 100644
23 --- a/dev-python/tekore/tekore-1.1.0.ebuild
24 +++ b/dev-python/tekore/tekore-1.1.0.ebuild
25 @@ -16,12 +16,23 @@ LICENSE="MIT"
26 KEYWORDS="~amd64 ~x86"
27 SLOT="0"
28
29 +distutils_enable_sphinx docs
30 +
31 +# the enable_sphinx fucntion seems to act strange when there is only 1 PYTHON_COMPAT
32 +# repoman says:
33 +# dev-python/tekore/tekore-1.1.0.ebuild: BDEPEND: ~x86(default/linux/x86/17.0/systemd)
34 +# [ 'dev-python/sphinx[python_targets_python3_7(-),python_single_target_python3_7(+)]']
35 +# therefore we overwrite the deps that the function adds here:
36 +BDEPEND="doc? (
37 + dev-python/sphinx[${PYTHON_USEDEP}]
38 + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
39 + dev-python/sphinx-autodoc-typehints[${PYTHON_USEDEP}] )"
40 +
41 RDEPEND="dev-python/requests[${PYTHON_USEDEP}]
42 dev-python/httpx[${PYTHON_USEDEP}]"
43
44 DOCS="readme.rst"
45
46 -distutils_enable_sphinx docs dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] dev-python/sphinx-autodoc-typehints[${PYTHON_USEDEP}]
47 distutils_enable_tests pytest
48
49 python_prepare_all() {