Skip to content

Commit

Permalink
dev-python/irc: use distutils_enable_sphinx
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Louis Sautier <[email protected]>
  • Loading branch information
sbraz committed Dec 31, 2019
1 parent ac5756b commit 79fd40a
Showing 1 changed file with 3 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples test"
IUSE="examples test"
RESTRICT="!test? ( test )"

RDEPEND="
Expand All @@ -30,26 +30,15 @@ RDEPEND="
"
BDEPEND="
>=dev-python/setuptools_scm-1.15.0[${PYTHON_USEDEP}]
doc? (
>=dev-python/jaraco-packaging-3.2[${PYTHON_USEDEP}]
>=dev-python/rst-linker-1.9[${PYTHON_USEDEP}]
dev-python/sphinx[${PYTHON_USEDEP}]
)
test? (
${RDEPEND}
dev-python/backports-unittest-mock[${PYTHON_USEDEP}]
>=dev-python/pytest-2.8[${PYTHON_USEDEP}]
)
"

python_compile_all() {
if use doc; then
# conf.py looks for '../CHANGES.rst'
cd docs || die
sphinx-build . _build/html || die
HTML_DOCS=( docs/_build/html/. )
fi
}
distutils_enable_sphinx docs '>=dev-python/jaraco-packaging-3.2' \
'>=dev-python/rst-linker-1.9'

python_test() {
# Override pytest options to skip flake8
Expand Down

0 comments on commit 79fd40a

Please sign in to comment.