1 |
commit: 6a189c83547dd889e0075ec1bc893ff01103f596 |
2 |
Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 4 20:41:57 2019 +0000 |
4 |
Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 4 22:58:03 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a189c83 |
7 |
|
8 |
dev-python/jupyter_core: drop py2 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/685040 |
11 |
Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.62, Repoman-2.3.11 |
13 |
|
14 |
.../jupyter_core/jupyter_core-4.4.0-r1.ebuild | 54 ++++++++++++++++++++++ |
15 |
1 file changed, 54 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/jupyter_core/jupyter_core-4.4.0-r1.ebuild b/dev-python/jupyter_core/jupyter_core-4.4.0-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..994c0dea094 |
20 |
--- /dev/null |
21 |
+++ b/dev-python/jupyter_core/jupyter_core-4.4.0-r1.ebuild |
22 |
@@ -0,0 +1,54 @@ |
23 |
+# Copyright 1999-2019 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+PYTHON_COMPAT=( python3_{5,6,7} ) |
29 |
+ |
30 |
+inherit distutils-r1 |
31 |
+ |
32 |
+DESCRIPTION="Core common functionality of Jupyter projects" |
33 |
+HOMEPAGE="https://jupyter.org" |
34 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
35 |
+ |
36 |
+LICENSE="BSD" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
39 |
+IUSE="doc test" |
40 |
+ |
41 |
+RDEPEND=" |
42 |
+ dev-python/traitlets[${PYTHON_USEDEP}] |
43 |
+" |
44 |
+DEPEND="${RDEPEND} |
45 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] |
46 |
+ dev-python/sphinxcontrib-github-alt[${PYTHON_USEDEP}] ) |
47 |
+ test? ( |
48 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
49 |
+ >=dev-python/ipython-4.0.1[${PYTHON_USEDEP}] |
50 |
+ ) |
51 |
+" |
52 |
+ |
53 |
+# tests require installation of jupyter_core, bug #649538 |
54 |
+RESTRICT="test" |
55 |
+ |
56 |
+python_prepare_all() { |
57 |
+ # Prevent un-needed download during build |
58 |
+ if use doc; then |
59 |
+ sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/conf.py || die |
60 |
+ fi |
61 |
+ |
62 |
+ distutils-r1_python_prepare_all |
63 |
+} |
64 |
+ |
65 |
+python_compile_all() { |
66 |
+ if use doc; then |
67 |
+ emake -C docs html |
68 |
+ HTML_DOCS=( docs/_build/html/. ) |
69 |
+ fi |
70 |
+} |
71 |
+ |
72 |
+python_test() { |
73 |
+ distutils_install_for_testing |
74 |
+ cd "${TEST_DIR}"/lib || die |
75 |
+ py.test jupyter_core || die |
76 |
+} |