From bb5e63eb3960a3d43db2a0361b415d72bb3245d3 Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Mon, 26 Sep 2022 10:32:55 +0300 Subject: dev-python/sphinxcontrib-asyncio: fix stray pyc files Also remove useless sed call. Closes: https://bugs.gentoo.org/866017 Signed-off-by: Arthur Zamarin --- .../sphinxcontrib-asyncio-0.3.0-r1.ebuild | 31 +++++++++++++++++ .../sphinxcontrib-asyncio-0.3.0.ebuild | 39 ---------------------- 2 files changed, 31 insertions(+), 39 deletions(-) create mode 100644 dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.3.0-r1.ebuild delete mode 100644 dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.3.0.ebuild (limited to 'dev-python') diff --git a/dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.3.0-r1.ebuild b/dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.3.0-r1.ebuild new file mode 100644 index 000000000000..f959456f2132 --- /dev/null +++ b/dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.3.0-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..11} ) + +inherit distutils-r1 + +DESCRIPTION="sphinx extension to support coroutines in markup" +HOMEPAGE=" + https://github.com/aio-libs/sphinxcontrib-asyncio/ + https://pypi.org/project/sphinxcontrib-asyncio/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + dev-python/sphinx[${PYTHON_USEDEP}] +" + +distutils_enable_sphinx docs + +src_prepare() { + rm sphinxcontrib/__init__.py || die + distutils-r1_src_prepare +} diff --git a/dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.3.0.ebuild b/dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.3.0.ebuild deleted file mode 100644 index ad4309c706ff..000000000000 --- a/dev-python/sphinxcontrib-asyncio/sphinxcontrib-asyncio-0.3.0.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..11} ) - -inherit distutils-r1 - -DESCRIPTION="sphinx extension to support coroutines in markup" -HOMEPAGE=" - https://github.com/aio-libs/sphinxcontrib-asyncio/ - https://pypi.org/project/sphinxcontrib-asyncio/ -" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux" - -RDEPEND=" - dev-python/sphinx[${PYTHON_USEDEP}] -" - -distutils_enable_sphinx docs - -src_prepare() { - # fix for sphinx >= 4.0 - sed -e 's/PyModulelevel/PyFunction/g' \ - -e 's/PyClassmember/PyClassMethod/g' \ - -i sphinxcontrib/asyncio.py || die - default -} - -python_compile() { - distutils-r1_python_compile - rm "${BUILD_DIR}/install$(python_get_sitedir)"/sphinxcontrib/__init__.py || die -} -- cgit v1.2.3