dev-python/aiohttp-jinja2: use distutils_enable_sphinx for docs

Signed-off-by: Arthur Zamarin <arthurzam@gmail.com>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Arthur Zamarin
2021-07-24 19:58:40 +03:00
committed by Michał Górny
parent 6de7504cc2
commit f6a8d94c01

View File

@@ -14,25 +14,19 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc test"
RESTRICT="!test? ( test )"
RDEPEND="
>=dev-python/aiohttp-2.3.9[${PYTHON_USEDEP}]
>=dev-python/jinja-2.10[${PYTHON_USEDEP}]
"
DEPEND="
${RDEPEND}
doc? (
>=dev-python/alabaster-0.6.2[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
)
BDEPEND="
test? ( >=dev-python/pytest-aiohttp-0.3.0[${PYTHON_USEDEP}] )
"
DOCS=( README.rst )
distutils_enable_tests pytest
distutils_enable_sphinx docs dev-python/alabaster
src_prepare() {
default
@@ -43,13 +37,3 @@ src_prepare() {
distutils-r1_src_prepare
}
python_compile_all() {
use doc && emake -C docs html
}
python_install_all() {
use doc && local HTML_DOCS=( docs/_build/html/. )
distutils-r1_python_install_all
}