From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 76761138334 for ; Sat, 13 Jul 2019 01:09:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 79E98E0788; Sat, 13 Jul 2019 01:09:53 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5B8D0E077F for ; Sat, 13 Jul 2019 01:09:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 00F21347898 for ; Sat, 13 Jul 2019 01:09:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6817C6DC for ; Sat, 13 Jul 2019 01:09:49 +0000 (UTC) From: "Louis Sautier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Louis Sautier" Message-ID: <1562980160.cfcc42a34a1f50c7441fa4d81fb122877257e44a.sbraz@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/importlib_resources/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/importlib_resources/importlib_resources-1.0.2-r1.ebuild X-VCS-Directories: dev-python/importlib_resources/ X-VCS-Committer: sbraz X-VCS-Committer-Name: Louis Sautier X-VCS-Revision: cfcc42a34a1f50c7441fa4d81fb122877257e44a X-VCS-Branch: master Date: Sat, 13 Jul 2019 01:09:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fe814baa-42bb-4b81-9a1e-bde3d3b9f0fe X-Archives-Hash: 03e7842a1d9526672b2231850eb83688 commit: cfcc42a34a1f50c7441fa4d81fb122877257e44a Author: Louis Sautier gentoo org> AuthorDate: Sat Jul 13 00:30:50 2019 +0000 Commit: Louis Sautier gentoo org> CommitDate: Sat Jul 13 01:09:20 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cfcc42a3 dev-python/importlib_resources: add doc Package-Manager: Portage-2.3.67, Repoman-2.3.16 Signed-off-by: Louis Sautier gentoo.org> .../importlib_resources-1.0.2-r1.ebuild | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/dev-python/importlib_resources/importlib_resources-1.0.2-r1.ebuild b/dev-python/importlib_resources/importlib_resources-1.0.2-r1.ebuild index 1e8e022c6b5..5ebc09e8110 100644 --- a/dev-python/importlib_resources/importlib_resources-1.0.2-r1.ebuild +++ b/dev-python/importlib_resources/importlib_resources-1.0.2-r1.ebuild @@ -15,13 +15,14 @@ LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="test" +IUSE="doc test" RDEPEND=" $(python_gen_cond_dep 'dev-python/pathlib2[${PYTHON_USEDEP}]' -2) virtual/python-typing[${PYTHON_USEDEP}] " BDEPEND=" + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) test? ( ${RDEPEND} ) dev-python/setuptools[${PYTHON_USEDEP}] " @@ -29,6 +30,18 @@ BDEPEND=" # https://gitlab.com/python-devs/importlib_resources/issues/71 PATCHES=( "${FILESDIR}/${P}-skip-wheel.patch" ) +python_prepare_all() { + sed -i "/'sphinx.ext.intersphinx'/d" ${PN}/docs/conf.py || die + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + sphinx-build ${PN}/docs docs/_build/html || die + HTML_DOCS=( docs/_build/html/. ) + fi +} + python_test() { "${EPYTHON}" -m unittest discover -v || die "tests failed with ${EPYTHON}" }