summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2019-11-25 13:25:28 +0100
committerMichał Górny <mgorny@gentoo.org>2019-11-25 13:35:22 +0100
commit13a7334f11135644f8199305168274cca855fbeb (patch)
treec3c457f9bdabca2ae949b7321175ff261ac73cb6 /dev-python/zipp
parentdev-python/webtest: Use distutils_enable_sphinx (diff)
downloadgentoo-13a7334f11135644f8199305168274cca855fbeb.tar.gz
gentoo-13a7334f11135644f8199305168274cca855fbeb.tar.bz2
gentoo-13a7334f11135644f8199305168274cca855fbeb.zip
dev-python/zipp: Use distutils_enable_sphinx
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/zipp')
-rw-r--r--dev-python/zipp/zipp-0.6.0-r1.ebuild36
1 files changed, 10 insertions, 26 deletions
diff --git a/dev-python/zipp/zipp-0.6.0-r1.ebuild b/dev-python/zipp/zipp-0.6.0-r1.ebuild
index 0088457fca8f..019614500c35 100644
--- a/dev-python/zipp/zipp-0.6.0-r1.ebuild
+++ b/dev-python/zipp/zipp-0.6.0-r1.ebuild
@@ -14,35 +14,26 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
-IUSE="doc test"
+IUSE="test"
RDEPEND="dev-python/more-itertools[${PYTHON_USEDEP}]"
BDEPEND="
dev-python/setuptools[${PYTHON_USEDEP}]
test? (
${RDEPEND}
- $(python_gen_cond_dep 'dev-python/contextlib2[${PYTHON_USEDEP}]' pypy{,3} python{2_7,3_{5,6,7}})
- $(python_gen_cond_dep 'dev-python/pathlib2[${PYTHON_USEDEP}]' pypy{,3} python{2_7,3_{5,6,7}})
- $(python_gen_cond_dep 'dev-python/unittest2[${PYTHON_USEDEP}]' pypy{,3} python{2_7,3_{5,6,7}})
- )
- doc? (
- $(python_gen_any_dep '
- >=dev-python/jaraco-packaging-3.2[${PYTHON_USEDEP}]
- >=dev-python/rst-linker-1.9[${PYTHON_USEDEP}]
- dev-python/sphinx[${PYTHON_USEDEP}]
- ')
+ $(python_gen_cond_dep '
+ dev-python/contextlib2[${PYTHON_USEDEP}]
+ dev-python/pathlib2[${PYTHON_USEDEP}]
+ dev-python/unittest2[${PYTHON_USEDEP}]
+ ' pypy{,3} python{2_7,3_{5,6,7}})
)
"
-distutils_enable_tests pytest
+distutils_enable_sphinx docs \
+ ">=dev-python/jaraco-packaging-3.2" \
+ ">=dev-python/rst-linker-1.9"
-python_check_deps() {
- if use doc; then
- has_version ">=dev-python/jaraco-packaging-3.2[${PYTHON_USEDEP}]" || return ${?}
- has_version ">=dev-python/rst-linker-1.9[${PYTHON_USEDEP}]" || return ${?}
- has_version "dev-python/sphinx[${PYTHON_USEDEP}]" || return ${?}
- fi
-}
+distutils_enable_tests pytest
python_prepare_all() {
sed -i "s:use_scm_version=True:version='${PV}',name='${PN//-/.}':" setup.py || die
@@ -50,10 +41,3 @@ python_prepare_all() {
setup.cfg || die
distutils-r1_python_prepare_all
}
-
-python_compile_all() {
- if use doc; then
- sphinx-build docs docs/_build/html || die
- HTML_DOCS=( docs/_build/html/. )
- fi
-}