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 A7DC51396D0 for ; Sat, 19 Aug 2017 08:54:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 05C37E0DE4; Sat, 19 Aug 2017 08:54:40 +0000 (UTC) Received: from smtp.gentoo.org (dev.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 D43CFE0DE4 for ; Sat, 19 Aug 2017 08:54:39 +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 B97123418F1 for ; Sat, 19 Aug 2017 08:54:38 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5CAC97AFC for ; Sat, 19 Aug 2017 08:54:37 +0000 (UTC) From: "Benda XU" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Benda XU" Message-ID: <1503132865.337507fe19e4acba811d117feb539de94934d405.heroxbd@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/notebook/files/, dev-python/notebook/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/notebook/files/notebook-5.0.0-example-execution.patch dev-python/notebook/notebook-5.0.0.ebuild X-VCS-Directories: dev-python/notebook/files/ dev-python/notebook/ X-VCS-Committer: heroxbd X-VCS-Committer-Name: Benda XU X-VCS-Revision: 337507fe19e4acba811d117feb539de94934d405 X-VCS-Branch: master Date: Sat, 19 Aug 2017 08:54:37 +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-Archives-Salt: f0c923cf-9d3f-4ffb-8652-68700ef9ab81 X-Archives-Hash: a04324f33344bf35f02e4b5a8267f1b2 commit: 337507fe19e4acba811d117feb539de94934d405 Author: Benda Xu gentoo org> AuthorDate: Sat Aug 19 08:53:12 2017 +0000 Commit: Benda XU gentoo org> CommitDate: Sat Aug 19 08:54:25 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=337507fe dev-python/notebook: fix sandbox violation when USE=doc. Credit: Juergen Rose Bug: 626860 Package-Manager: Portage-2.3.3, Repoman-2.3.1 .../files/notebook-5.0.0-example-execution.patch | 27 ++++++++++++++++++++++ dev-python/notebook/notebook-5.0.0.ebuild | 5 ++-- 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/dev-python/notebook/files/notebook-5.0.0-example-execution.patch b/dev-python/notebook/files/notebook-5.0.0-example-execution.patch new file mode 100644 index 00000000000..4516cadf11f --- /dev/null +++ b/dev-python/notebook/files/notebook-5.0.0-example-execution.patch @@ -0,0 +1,27 @@ +commit db90e16d17acc778efdfff6dca69767b47b60cbd +Author: Benda Xu +Date: Sat Aug 19 17:31:38 2017 +0900 + + d/s/examples/N/Importing Notebooks.ipynb: disable execution. + + This notebook example includes writing to the directory of another + module, usually resulting in a doc build failure. Therefore we + disable its execution by nbsphinx. + + Closes: #2372 + See-Also: https://bugs.gentoo.org/show_bug.cgi?id=626860 + +diff --git a/docs/source/examples/Notebook/Importing Notebooks.ipynb b/docs/source/examples/Notebook/Importing Notebooks.ipynb +index ee42ad526..d6db5395e 100644 +--- a/docs/source/examples/Notebook/Importing Notebooks.ipynb ++++ b/docs/source/examples/Notebook/Importing Notebooks.ipynb +@@ -511,6 +511,9 @@ + ], + "metadata": { + "gist_id": "6011986", ++ "nbsphinx": { ++ "execute": "never" ++ }, + "kernelspec": { + "display_name": "Python 3", + "language": "python", diff --git a/dev-python/notebook/notebook-5.0.0.ebuild b/dev-python/notebook/notebook-5.0.0.ebuild index fa4e605c702..b37ff0df779 100644 --- a/dev-python/notebook/notebook-5.0.0.ebuild +++ b/dev-python/notebook/notebook-5.0.0.ebuild @@ -41,11 +41,12 @@ DEPEND="${RDEPEND} doc? ( app-text/pandoc >=dev-python/ipython-4.0.0[${PYTHON_USEDEP}] - >=dev-python/sphinx-1.1[${PYTHON_USEDEP}] + dev-python/nbsphinx[${PYTHON_USEDEP}] ) " -PATCHES=( "${FILESDIR}/${P}"-setupbase.py.patch ) +PATCHES=( "${FILESDIR}/${P}"-setupbase.py.patch + "${FILESDIR}/${P}"-example-execution.patch ) python_prepare_all() { sed \