Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/notebook_shim/
Date: Mon, 02 May 2022 10:56:46
Message-Id: 1651488992.3b65c278178a021a609fefbaaee67c84c844013f.andrewammerlaan@gentoo
1 commit: 3b65c278178a021a609fefbaaee67c84c844013f
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 2 10:46:41 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Mon May 2 10:56:32 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b65c278
7
8 dev-python/notebook_shim: new package, add 0.1.0
9
10 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
11
12 dev-python/notebook_shim/Manifest | 1 +
13 dev-python/notebook_shim/metadata.xml | 17 +++++++++
14 .../notebook_shim/notebook_shim-0.1.0.ebuild | 43 ++++++++++++++++++++++
15 3 files changed, 61 insertions(+)
16
17 diff --git a/dev-python/notebook_shim/Manifest b/dev-python/notebook_shim/Manifest
18 new file mode 100644
19 index 000000000000..0b785dd05afb
20 --- /dev/null
21 +++ b/dev-python/notebook_shim/Manifest
22 @@ -0,0 +1 @@
23 +DIST notebook_shim-0.1.0.tar.gz 12275 BLAKE2B 47e975cd91b9ee1e6436db099b13ff664b25c96f3fd7fa39b54d5daad5154976bdf877607156688d118c6bfc458f941151fc9763c596458432e70e17de77eb59 SHA512 7814b5bb4d4c4dd39b1ce3629e77513bdc3069a553208ee5a2bb6432fda5d20dcf48bbf5d8f61b9bc1f2ea666abd8706a8e8ba627b27ff4561eb4982ba04b1dc
24
25 diff --git a/dev-python/notebook_shim/metadata.xml b/dev-python/notebook_shim/metadata.xml
26 new file mode 100644
27 index 000000000000..7093f58896b9
28 --- /dev/null
29 +++ b/dev-python/notebook_shim/metadata.xml
30 @@ -0,0 +1,17 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <maintainer type="project">
35 + <email>sci@g.o</email>
36 + <name>Gentoo Science Project</name>
37 + </maintainer>
38 + <maintainer type="project">
39 + <email>python@g.o</email>
40 + <name>Python</name>
41 + </maintainer>
42 + <stabilize-allarches/>
43 + <upstream>
44 + <remote-id type="pypi">notebook-shim</remote-id>
45 + <remote-id type="github">jupyter/notebook_shim</remote-id>
46 + </upstream>
47 +</pkgmetadata>
48
49 diff --git a/dev-python/notebook_shim/notebook_shim-0.1.0.ebuild b/dev-python/notebook_shim/notebook_shim-0.1.0.ebuild
50 new file mode 100644
51 index 000000000000..58ed446a042d
52 --- /dev/null
53 +++ b/dev-python/notebook_shim/notebook_shim-0.1.0.ebuild
54 @@ -0,0 +1,43 @@
55 +# Copyright 1999-2022 Gentoo Authors
56 +# Distributed under the terms of the GNU General Public License v2
57 +
58 +EAPI=8
59 +
60 +PYTHON_COMPAT=( python3_{8..10} )
61 +DISTUTILS_USE_PEP517=jupyter
62 +inherit distutils-r1
63 +
64 +DESCRIPTION="A shim layer for notebook traits and config"
65 +HOMEPAGE="https://jupyter.org"
66 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
67 +
68 +LICENSE="BSD"
69 +SLOT="0"
70 +KEYWORDS="~amd64"
71 +
72 +RDEPEND="
73 + >=dev-python/jupyter_server-1.8[${PYTHON_USEDEP}]
74 +"
75 +
76 +BDEPEND="
77 + >=dev-python/jupyter_packaging-0.9[${PYTHON_USEDEP}]
78 + test? (
79 + dev-python/pytest-console-scripts[${PYTHON_USEDEP}]
80 + dev-python/pytest-tornasync[${PYTHON_USEDEP}]
81 + )
82 +"
83 +
84 +distutils_enable_tests pytest
85 +
86 +python_prepare_all() {
87 + # Defining 'pytest_plugins' in a non-top-level conftest is no longer supported:
88 + mv ${PN}/conftest.py . || die
89 +
90 + distutils-r1_python_prepare_all
91 +}
92 +
93 +python_install_all() {
94 + distutils-r1_python_install_all
95 + # move /usr/etc stuff to /etc
96 + mv "${ED}/usr/etc" "${ED}/etc" || die
97 +}