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/sphinxcontrib-asyncio/
Date: Fri, 28 May 2021 21:48:38
Message-Id: 1622238484.95f24cca2723012d25589febc993a7a45f030e1f.mgorny@gentoo
1 commit: 95f24cca2723012d25589febc993a7a45f030e1f
2 Author: Zamarin Arthur <arthurzam <AT> gmail <DOT> com>
3 AuthorDate: Fri May 28 15:39:25 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri May 28 21:48:04 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95f24cca
7
8 dev-python/sphinxcontrib-asyncio: EAPI=7, fix sphinx >= 4.0
9
10 - fix for `dev-python/sphinx` >= 4.0. Now successfully generates self docs
11 - bump to `EAPI=7`
12 - use `distutils_enable_sphinx` for docs
13 - bump to python 3.9
14
15 Signed-off-by: Zamarin Arthur <arthurzam <AT> gmail.com>
16 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
17
18 .../sphinxcontrib-asyncio-0.2.0-r2.ebuild | 20 ++++++++++----------
19 1 file changed, 10 insertions(+), 10 deletions(-)
20
21 diff --git a/dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.2.0-r2.ebuild b/dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.2.0-r2.ebuild
22 index 1fd70333189..7b80ce7fde6 100644
23 --- a/dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.2.0-r2.ebuild
24 +++ b/dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.2.0-r2.ebuild
25 @@ -1,9 +1,9 @@
26 # Copyright 1999-2021 Gentoo Authors
27 # Distributed under the terms of the GNU General Public License v2
28
29 -EAPI=6
30 +EAPI=7
31
32 -PYTHON_COMPAT=( python3_{7,8} )
33 +PYTHON_COMPAT=( python3_{7..9} )
34 inherit distutils-r1
35
36 DESCRIPTION="sphinx extension to support coroutines in markup"
37 @@ -13,17 +13,18 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
38 LICENSE="Apache-2.0"
39 SLOT="0"
40 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
41 -IUSE="doc"
42
43 -DEPEND="
44 - dev-python/setuptools[${PYTHON_USEDEP}]
45 - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
46 -"
47 RDEPEND="dev-python/sphinx[${PYTHON_USEDEP}]
48 dev-python/namespace-sphinxcontrib[${PYTHON_USEDEP}]"
49
50 -python_compile_all() {
51 - use doc && emake -C docs html
52 +distutils_enable_sphinx docs
53 +
54 +src_prepare() {
55 + # fix for sphinx >= 4.0
56 + sed -e 's/PyModulelevel/PyFunction/g' \
57 + -e 's/PyClassmember/PyClassMethod/g' \
58 + -i sphinxcontrib/asyncio.py || die
59 + default
60 }
61
62 python_install() {
63 @@ -32,7 +33,6 @@ python_install() {
64 }
65
66 python_install_all() {
67 - use doc && local HTML_DOCS=( docs/_build/html/. )
68 distutils-r1_python_install_all
69 # clean up pth files bug #623852
70 find "${ED}" -name '*.pth' -delete || die