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