dev-python/readthedocs-sphinx-ext: New package

Add the Sphinx extension for readthedocs, now needed to test
dev-python/sphinx_rtd_theme.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2020-03-03 07:37:07 +01:00
parent d59faf751c
commit 1aab4f5e66
3 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST readthedocs-sphinx-ext-1.0.1.tar.gz 11545 BLAKE2B 7c671b76d47d469713bda798aef13db41ea1a4538fe571c249a4e455343f8a3d9731cbe6f688511cf69344ad728c2d394010d59e34de7295e8bf2682f23db59c SHA512 bb40f3cfd8d114ff0b9f827f20b7e1ab08c2ff3d8a8319cbd73a34e68cf604cfd1991bd0153b3a75cc48fc876fa79a24bc0e3633b099470a39d668c7667afa66

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
</pkgmetadata>

View File

@@ -0,0 +1,32 @@
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 python3_{6,7,8} pypy3 )
inherit distutils-r1
DESCRIPTION="Code specific for Read the Docs and Sphinx"
HOMEPAGE="https://github.com/readthedocs/readthedocs-sphinx-ext"
SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND="
>=dev-python/jinja-2.9[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]"
PDEPEND="
dev-python/sphinx[${PYTHON_USEDEP}]"
BDEPEND="
test? ( ${PDEPEND} )"
# unittest should be sufficient but tests are very verbose, so pytest's
# output capture is most welcome
distutils_enable_tests pytest
src_prepare() {
sed -i -e '/find_packages/s:):, exclude=["tests"]):' setup.py || die
distutils-r1_src_prepare
}