dev-python/readthedocs-sphinx-ext: New package
authorMichał Górny <mgorny@gentoo.org>
Tue, 3 Mar 2020 06:37:07 +0000 (07:37 +0100)
committerMichał Górny <mgorny@gentoo.org>
Tue, 3 Mar 2020 07:01:10 +0000 (08:01 +0100)
Add the Sphinx extension for readthedocs, now needed to test
dev-python/sphinx_rtd_theme.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
dev-python/readthedocs-sphinx-ext/Manifest [new file with mode: 0644]
dev-python/readthedocs-sphinx-ext/metadata.xml [new file with mode: 0644]
dev-python/readthedocs-sphinx-ext/readthedocs-sphinx-ext-1.0.1.ebuild [new file with mode: 0644]

diff --git a/dev-python/readthedocs-sphinx-ext/Manifest b/dev-python/readthedocs-sphinx-ext/Manifest
new file mode 100644 (file)
index 0000000..850f166
--- /dev/null
@@ -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 (file)
index 0000000..e24dd86
--- /dev/null
@@ -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>
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 (file)
index 0000000..4cc1b43
--- /dev/null
@@ -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
+}