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: Sun, 05 Jun 2022 18:22:56
Message-Id: 1654453367.abe46d1d2b36c182cb50db0eacfcb18f69214058.mgorny@gentoo
1 commit: abe46d1d2b36c182cb50db0eacfcb18f69214058
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 5 18:12:29 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 5 18:22:47 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abe46d1d
7
8 dev-python/sphinxcontrib-asyncio: Bump to 0.3.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/sphinxcontrib-asyncio/Manifest | 1 +
13 .../sphinxcontrib-asyncio-0.3.0.ebuild | 39 ++++++++++++++++++++++
14 2 files changed, 40 insertions(+)
15
16 diff --git a/dev-python/sphinxcontrib-asyncio/Manifest b/dev-python/sphinxcontrib-asyncio/Manifest
17 index cb1e2c53a042..d68bdd275752 100644
18 --- a/dev-python/sphinxcontrib-asyncio/Manifest
19 +++ b/dev-python/sphinxcontrib-asyncio/Manifest
20 @@ -1 +1,2 @@
21 DIST sphinxcontrib-asyncio-0.2.0.tar.gz 10689 BLAKE2B 9e03989a1ed22d7d467bdb7626e2e908407a0de15a943a432ff9707340f0cefe7caf1684380c25764637798b585b32287c4bcfc0f2014a78b7019547405e7ded SHA512 2ca25717c03385ae9bf879b8efeab8d508292d07f96d941032720d755d3db2e7bbc3c9a33c6103af9d83849ed8878bea1048d349bd0873288ee2addfee9756b7
22 +DIST sphinxcontrib-asyncio-0.3.0.tar.gz 11622 BLAKE2B 8c3358ad191e12e79767be6e6f3800e5de423d9a5ad005bdb416aa7a601cddc5f115db3e9b27213c06dbc341b671cbacd00217b65496baada40bfe257069abfa SHA512 fa66a2a9b5f89327686481f46d8e5be0b674f6355c8c0eeb862bf0ca0b5bb848121c5ed153780f653242faf1b82debc6917c3f6046244cce0f1423303a324f29
23
24 diff --git a/dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.3.0.ebuild b/dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.3.0.ebuild
25 new file mode 100644
26 index 000000000000..b4063a15cf88
27 --- /dev/null
28 +++ b/dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.3.0.ebuild
29 @@ -0,0 +1,39 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..11} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="sphinx extension to support coroutines in markup"
41 +HOMEPAGE="
42 + https://github.com/aio-libs/sphinxcontrib-asyncio/
43 + https://pypi.org/project/sphinxcontrib-asyncio/
44 +"
45 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
46 +
47 +LICENSE="Apache-2.0"
48 +SLOT="0"
49 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
50 +
51 +RDEPEND="
52 + dev-python/sphinx[${PYTHON_USEDEP}]
53 +"
54 +
55 +distutils_enable_sphinx docs
56 +
57 +src_prepare() {
58 + # fix for sphinx >= 4.0
59 + sed -e 's/PyModulelevel/PyFunction/g' \
60 + -e 's/PyClassmember/PyClassMethod/g' \
61 + -i sphinxcontrib/asyncio.py || die
62 + default
63 +}
64 +
65 +python_compile() {
66 + distutils-r1_python_compile
67 + rm "${BUILD_DIR}/install$(python_get_sitedir)"/sphinxcontrib/__init__.py || die
68 +}