From 1aab4f5e665cf327c1b035e7c6307ea1e701af9c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 3 Mar 2020 07:37:07 +0100 Subject: [PATCH] dev-python/readthedocs-sphinx-ext: New package MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Add the Sphinx extension for readthedocs, now needed to test dev-python/sphinx_rtd_theme. Signed-off-by: Michał Górny --- dev-python/readthedocs-sphinx-ext/Manifest | 1 + .../readthedocs-sphinx-ext/metadata.xml | 8 +++++ .../readthedocs-sphinx-ext-1.0.1.ebuild | 32 +++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 dev-python/readthedocs-sphinx-ext/Manifest create mode 100644 dev-python/readthedocs-sphinx-ext/metadata.xml create mode 100644 dev-python/readthedocs-sphinx-ext/readthedocs-sphinx-ext-1.0.1.ebuild diff --git a/dev-python/readthedocs-sphinx-ext/Manifest b/dev-python/readthedocs-sphinx-ext/Manifest new file mode 100644 index 000000000000..850f166a6626 --- /dev/null +++ b/dev-python/readthedocs-sphinx-ext/Manifest @@ -0,0 +1 @@ +DIST readthedocs-sphinx-ext-1.0.1.tar.gz 11545 BLAKE2B 7c671b76d47d469713bda798aef13db41ea1a4538fe571c249a4e455343f8a3d9731cbe6f688511cf69344ad728c2d394010d59e34de7295e8bf2682f23db59c SHA512 bb40f3cfd8d114ff0b9f827f20b7e1ab08c2ff3d8a8319cbd73a34e68cf604cfd1991bd0153b3a75cc48fc876fa79a24bc0e3633b099470a39d668c7667afa66 diff --git a/dev-python/readthedocs-sphinx-ext/metadata.xml b/dev-python/readthedocs-sphinx-ext/metadata.xml new file mode 100644 index 000000000000..e24dd86faa2a --- /dev/null +++ b/dev-python/readthedocs-sphinx-ext/metadata.xml @@ -0,0 +1,8 @@ + + + + + python@gentoo.org + Python + + diff --git a/dev-python/readthedocs-sphinx-ext/readthedocs-sphinx-ext-1.0.1.ebuild b/dev-python/readthedocs-sphinx-ext/readthedocs-sphinx-ext-1.0.1.ebuild new file mode 100644 index 000000000000..4cc1b4384430 --- /dev/null +++ b/dev-python/readthedocs-sphinx-ext/readthedocs-sphinx-ext-1.0.1.ebuild @@ -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 +} -- 2.26.2