Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/notebook/
Date: Wed, 20 Oct 2021 09:40:45
Message-Id: 1634722778.6e31a643e902625581c092adfae92398bcfb80a6.mgorny@gentoo
1 commit: 6e31a643e902625581c092adfae92398bcfb80a6
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 20 06:57:41 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 20 09:39:38 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e31a643
7
8 dev-python/notebook: Bump to 6.4.5
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/notebook/Manifest | 1 +
13 dev-python/notebook/notebook-6.4.5.ebuild | 100 ++++++++++++++++++++++++++++++
14 2 files changed, 101 insertions(+)
15
16 diff --git a/dev-python/notebook/Manifest b/dev-python/notebook/Manifest
17 index e318b71d2b4..d0b079c46f4 100644
18 --- a/dev-python/notebook/Manifest
19 +++ b/dev-python/notebook/Manifest
20 @@ -1 +1,2 @@
21 DIST notebook-6.4.4.tar.gz 14349204 BLAKE2B 3ea06a6433933e0de34be33bc681776a17fec05da643268a262f65146bd707f08ea6acbfe1154ba9158ac76211de78552daec22293a54ba5e0edb848790ccbbd SHA512 c78869b7d75244409cb890d43d05eb5391c27e0de29874f48aef1c22379cdcb5dc7f69969eccd6c0f1ed057ed17f85d39e43cd482866dfe6277b6a981eee39f6
22 +DIST notebook-6.4.5.tar.gz 14339237 BLAKE2B 932e9c90804e6f759a9cd03c45e5093b26d1477908570726ae4782fec6c1127559f129ba8b9d1b4b4ff8e5bcb7fb32fea4cfafbc4c64b55859dbf6ed08960828 SHA512 8e0f6db6f232b7234e65ac41105cbc81b4d2d38d9f8cbd629ca3722b2fc876d8bd64beb7417e0bd99e3ae0c047be8328f4a0a433c2282defa5f026b20953608f
23
24 diff --git a/dev-python/notebook/notebook-6.4.5.ebuild b/dev-python/notebook/notebook-6.4.5.ebuild
25 new file mode 100644
26 index 00000000000..cacbe7d854e
27 --- /dev/null
28 +++ b/dev-python/notebook/notebook-6.4.5.ebuild
29 @@ -0,0 +1,100 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +PYTHON_REQ_USE="threads(+)"
37 +
38 +inherit distutils-r1 xdg-utils
39 +
40 +DESCRIPTION="Jupyter Interactive Notebook"
41 +HOMEPAGE="https://jupyter.org"
42 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
43 +
44 +LICENSE="BSD"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
47 +
48 +RDEPEND="
49 + >=dev-libs/mathjax-2.4
50 + dev-python/argon2-cffi[${PYTHON_USEDEP}]
51 + dev-python/jinja[${PYTHON_USEDEP}]
52 + >=dev-python/terminado-0.8.3[${PYTHON_USEDEP}]
53 + >=www-servers/tornado-6.0[${PYTHON_USEDEP}]
54 + dev-python/ipython_genutils[${PYTHON_USEDEP}]
55 + >=dev-python/traitlets-4.2.1[${PYTHON_USEDEP}]
56 + >=dev-python/jupyter_core-4.6.1[${PYTHON_USEDEP}]
57 + >=dev-python/pyzmq-17[${PYTHON_USEDEP}]
58 + >=dev-python/jupyter_client-5.3.4[${PYTHON_USEDEP}]
59 + dev-python/nbformat[${PYTHON_USEDEP}]
60 + >=dev-python/nbconvert-4.2.0[${PYTHON_USEDEP}]
61 + dev-python/ipykernel[${PYTHON_USEDEP}]
62 + dev-python/send2trash[${PYTHON_USEDEP}]
63 + dev-python/prometheus_client[${PYTHON_USEDEP}]"
64 +
65 +# sphinx 2+ seems to have a problem with its github plugin. temporarily adding
66 +# a version constraint.
67 +BDEPEND="
68 + test? (
69 + dev-python/requests[${PYTHON_USEDEP}]
70 + dev-python/requests-unixsocket[${PYTHON_USEDEP}]
71 + )
72 +"
73 +
74 +PATCHES=(
75 + "${FILESDIR}/${PN}"-5.7.0-no-mathjax.patch
76 +)
77 +
78 +distutils_enable_tests --install pytest
79 +
80 +python_prepare_all() {
81 + # disable bundled mathjax
82 + sed -i 's/^.*MathJax.*$//' bower.json || die
83 +
84 + distutils-r1_python_prepare_all
85 +}
86 +
87 +python_test() {
88 + local deselect=(
89 + # trash doesn't seem to work for us
90 + notebook/services/contents/tests/test_contents_api.py::APITest::test_checkpoints_follow_file
91 + notebook/services/contents/tests/test_contents_api.py::APITest::test_delete
92 + notebook/services/contents/tests/test_contents_api.py::GenericFileCheckpointsAPITest::test_checkpoints_follow_file
93 + notebook/services/contents/tests/test_contents_api.py::GenericFileCheckpointsAPITest::test_delete
94 + notebook/services/contents/tests/test_contents_api.py::GenericFileCheckpointsAPITest::test_delete_dirs
95 + notebook/services/contents/tests/test_contents_api.py::GenericFileCheckpointsAPITest::test_delete_non_empty_dir
96 + notebook/services/contents/tests/test_manager.py::TestContentsManager::test_delete
97 + notebook/services/contents/tests/test_manager.py::TestContentsManagerNoAtomic::test_delete
98 + # TODO
99 + notebook/services/kernels/tests/test_kernels_api.py::KernelAPITest::test_connections
100 + notebook/services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections
101 + notebook/services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling
102 + )
103 +
104 + # selenium tests require geckodriver
105 + epytest --ignore notebook/tests/selenium ${deselect[@]/#/--deselect }
106 +}
107 +
108 +python_install() {
109 + distutils-r1_python_install
110 +
111 + ln -sf \
112 + "${EPREFIX}/usr/share/mathjax" \
113 + "${D}$(python_get_sitedir)/notebook/static/components/MathJax" || die
114 +}
115 +
116 +pkg_preinst() {
117 + # remove old mathjax folder if present
118 + rm -rf "${EROOT}"/usr/lib*/python*/site-packages/notebook/static/components/MathJax || die
119 +}
120 +
121 +pkg_postinst() {
122 + xdg_desktop_database_update
123 + xdg_icon_cache_update
124 +}
125 +
126 +pkg_postrm() {
127 + xdg_desktop_database_update
128 + xdg_icon_cache_update
129 +}