summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gmail.com>2021-08-09 11:57:53 +0300
committerMichał Górny <mgorny@gentoo.org>2021-08-09 11:20:03 +0200
commitfef1e07a84528d2f64bc309d570430d8e03aeb5c (patch)
tree28d189a186ddc1eaefbe38aba37fbc99e0c94f87 /dev-python/treq
parentdev-python/treq: cleanup dependencies (diff)
downloadgentoo-fef1e07a84528d2f64bc309d570430d8e03aeb5c.tar.gz
gentoo-fef1e07a84528d2f64bc309d570430d8e03aeb5c.tar.bz2
gentoo-fef1e07a84528d2f64bc309d570430d8e03aeb5c.zip
dev-python/treq: fix doc generation
Signed-off-by: Arthur Zamarin <arthurzam@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/21924 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/treq')
-rw-r--r--dev-python/treq/treq-21.5.0.ebuild14
1 files changed, 5 insertions, 9 deletions
diff --git a/dev-python/treq/treq-21.5.0.ebuild b/dev-python/treq/treq-21.5.0.ebuild
index 74917bd68d0a..4a466dd998f2 100644
--- a/dev-python/treq/treq-21.5.0.ebuild
+++ b/dev-python/treq/treq-21.5.0.ebuild
@@ -25,20 +25,16 @@ RDEPEND="
>=dev-python/twisted-18.7.0[crypt,${PYTHON_USEDEP}]
"
BDEPEND="
- doc? ( dev-python/sphinx
- ${RDEPEND} )
test? (
dev-python/httpbin[${PYTHON_USEDEP}]
)"
-python_compile_all() {
- use doc && emake -C "${S}/docs" html
-}
-
-python_install_all() {
- use doc && HTML_DOCS=( docs/_build/html/ )
+distutils_enable_sphinx docs
- distutils-r1_python_install_all
+src_prepare() {
+ # fix relative path for docs generation
+ sed -e "s@('..')@('../src')@" -i docs/conf.py || die
+ distutils-r1_src_prepare
}
python_test() {