diff options
author | Michał Górny <mgorny@gentoo.org> | 2019-11-25 13:25:20 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2019-11-25 13:35:17 +0100 |
commit | aead15d9902d5e93d53ee0bcf1775fe0215395b8 (patch) | |
tree | d37d70445f199e8cf049d140e36e7c64b2ba62ff /dev-python/service_identity | |
parent | dev-python/pytest-cov: Use distutils_enable_sphinx (diff) | |
download | gentoo-aead15d9902d5e93d53ee0bcf1775fe0215395b8.tar.gz gentoo-aead15d9902d5e93d53ee0bcf1775fe0215395b8.tar.bz2 gentoo-aead15d9902d5e93d53ee0bcf1775fe0215395b8.zip |
dev-python/service_identity: Use distutils_enable_sphinx
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/service_identity')
-rw-r--r-- | dev-python/service_identity/service_identity-18.1.0.ebuild | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/dev-python/service_identity/service_identity-18.1.0.ebuild b/dev-python/service_identity/service_identity-18.1.0.ebuild index e582acd01e68..73195bd293e5 100644 --- a/dev-python/service_identity/service_identity-18.1.0.ebuild +++ b/dev-python/service_identity/service_identity-18.1.0.ebuild @@ -15,7 +15,6 @@ S=${WORKDIR}/${P/_/-} LICENSE="MIT" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux" -IUSE="doc" # TODO: upstream made pyopenssl optional RDEPEND=" @@ -24,26 +23,7 @@ RDEPEND=" >=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}] dev-python/attrs[${PYTHON_USEDEP}]" BDEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( $(python_gen_any_dep 'dev-python/sphinx[${PYTHON_USEDEP}]') )" + dev-python/setuptools[${PYTHON_USEDEP}]" +distutils_enable_sphinx docs distutils_enable_tests pytest - -python_check_deps() { - use doc || return 0 - - has_version "dev-python/sphinx[${PYTHON_USEDEP}]" -} - -python_prepare_all() { - # Prevent un-needed download during build - sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/conf.py || die - distutils-r1_python_prepare_all -} - -python_compile_all() { - if use doc; then - emake -C docs html - HTML_DOCS=( docs/_build/html/. ) - fi -} |