1 |
commit: 151c23a858d6d6c8b62a317298cf2887e73e991d |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 9 13:12:12 2021 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 9 13:39:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=151c23a8 |
7 |
|
8 |
dev-python/jupyter_server: add version 1.11.0, add py3.10, fix tests |
9 |
|
10 |
Package-Manager: Portage-3.0.22, Repoman-3.0.3 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
12 |
|
13 |
dev-python/jupyter_server/Manifest | 1 + |
14 |
.../jupyter_server/jupyter_server-1.11.0.ebuild | 61 ++++++++++++++++++++++ |
15 |
2 files changed, 62 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/jupyter_server/Manifest b/dev-python/jupyter_server/Manifest |
18 |
index cddf518ea5a..8b3dbe97a79 100644 |
19 |
--- a/dev-python/jupyter_server/Manifest |
20 |
+++ b/dev-python/jupyter_server/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
+DIST jupyter_server-1.11.0.tar.gz 419795 BLAKE2B 992bcadfd10cebc9d2c14ecc1489af91c161edc4fd8386d4b3e30c087737b3de723b5fa8d7f2cbb537e6f20568e6ed15f110e70781bc90cdc699fe6374ed3277 SHA512 9c8afb86af3669270e3103485500b635eb2dda35d731fb1adf3db997bb76ac61a769858525aacc6fb32ede7a299f0fc21991d0b64d009f506af232733b47b141 |
23 |
DIST jupyter_server-1.8.0.tar.gz 408312 BLAKE2B db385085a1a660d707cc84570627e754dc19105af5157bc42e259822c9e98364ab77a9a16403d9b43757a6e175102632e83dd21466dff3487101771b51fdeb5f SHA512 3c4c9d64b7f0e26a79b38bc95106e062f1c363a13fc3b32c3897bbb15a7d91a64e46926b35c07f8c5bd440f55e3d01ec57c54c8b244969b6af7f7e18347030cd |
24 |
|
25 |
diff --git a/dev-python/jupyter_server/jupyter_server-1.11.0.ebuild b/dev-python/jupyter_server/jupyter_server-1.11.0.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..64cc66d8ca7 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/jupyter_server/jupyter_server-1.11.0.ebuild |
30 |
@@ -0,0 +1,61 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8..10} ) |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="Core services, APIs, and REST endpoints to Jupyter web applications" |
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" |
47 |
+ |
48 |
+RDEPEND=" |
49 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
50 |
+ >=www-servers/tornado-6.1[${PYTHON_USEDEP}] |
51 |
+ >=dev-python/pyzmq-17[${PYTHON_USEDEP}] |
52 |
+ dev-python/argon2-cffi[${PYTHON_USEDEP}] |
53 |
+ dev-python/ipython_genutils[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/traitlets-4.2.1[${PYTHON_USEDEP}] |
55 |
+ >=dev-python/jupyter_core-4.6.0[${PYTHON_USEDEP}] |
56 |
+ >=dev-python/jupyter_client-6.1.1[${PYTHON_USEDEP}] |
57 |
+ dev-python/nbformat[${PYTHON_USEDEP}] |
58 |
+ dev-python/nbconvert[${PYTHON_USEDEP}] |
59 |
+ dev-python/send2trash[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/terminado-0.8.3[${PYTHON_USEDEP}] |
61 |
+ dev-python/prometheus_client[${PYTHON_USEDEP}] |
62 |
+ dev-python/anyio[${PYTHON_USEDEP}] |
63 |
+ dev-python/websocket-client[${PYTHON_USEDEP}] |
64 |
+ dev-python/requests-unixsocket[${PYTHON_USEDEP}] |
65 |
+" |
66 |
+BDEPEND=" |
67 |
+ test? ( |
68 |
+ dev-python/ipykernel[${PYTHON_USEDEP}] |
69 |
+ dev-python/requests[${PYTHON_USEDEP}] |
70 |
+ dev-python/pytest-mock[${PYTHON_USEDEP}] |
71 |
+ dev-python/pytest-tornasync[${PYTHON_USEDEP}] |
72 |
+ dev-python/pytest-console-scripts[${PYTHON_USEDEP}] |
73 |
+ )" |
74 |
+ |
75 |
+# TODO: Package 'myst_parser' |
76 |
+# distutils_enable_sphinx docs/source |
77 |
+# dev-python/pydata-sphinx-theme |
78 |
+distutils_enable_tests --install pytest |
79 |
+ |
80 |
+python_prepare_all() { |
81 |
+ # Defining 'pytest_plugins' in a non-top-level conftest is no longer supported: |
82 |
+ mv jupyter_server/conftest.py . || die |
83 |
+ |
84 |
+ # This fails if your terminal is zsh (and maybe other non-bash as well?) |
85 |
+ sed -i \ |
86 |
+ -e 's:est_terminal_create_with_cwd:_&:' \ |
87 |
+ -e 's:test_culling:_&:' \ |
88 |
+ jupyter_server/tests/test_terminal.py || die |
89 |
+ |
90 |
+ distutils-r1_python_prepare_all |
91 |
+} |