1 |
commit: 64ebb485c38598ecede514adb27a4ee47206bc10 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Mon Dec 16 08:39:11 2019 +0000 |
4 |
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 23 11:53:23 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64ebb485 |
7 |
|
8 |
dev-python/jupyter_core: Version bump 4.6.1 |
9 |
|
10 |
Employ `distutils_enable_tests pytest`. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/702458 |
13 |
Bug: https://github.com/gentoo/gentoo/pull/13988 |
14 |
Closes: https://github.com/gentoo/gentoo/pull/14003 |
15 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
16 |
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org> |
17 |
Package-Manager: Portage-2.3.81, Repoman-2.3.20 |
18 |
|
19 |
dev-python/jupyter_core/Manifest | 1 + |
20 |
dev-python/jupyter_core/jupyter_core-4.6.1.ebuild | 48 +++++++++++++++++++++++ |
21 |
2 files changed, 49 insertions(+) |
22 |
|
23 |
diff --git a/dev-python/jupyter_core/Manifest b/dev-python/jupyter_core/Manifest |
24 |
index 56de66d86bb..18b384b7046 100644 |
25 |
--- a/dev-python/jupyter_core/Manifest |
26 |
+++ b/dev-python/jupyter_core/Manifest |
27 |
@@ -1 +1,2 @@ |
28 |
DIST jupyter_core-4.4.0.tar.gz 63613 BLAKE2B 90b5d6c855786beff0ab780e7a894e1b24f6d6d1c26be6ae8da73e82a87f966f1155498c581314d37db845e293be7bc4d085e03991cdc7adfbba36409541cd5b SHA512 387f7f98f640b85ff0a24f11e1beae5a851d7eb3ba4a423be028940cb018c0d0ddf42ae8a1c397e3e4cafa560d3a5385b39bb8794448c7c010be7f0ddcba8a9e |
29 |
+DIST jupyter_core-4.6.1.tar.gz 66693 BLAKE2B f4338a015ac4b3e0a7cd2497a660bfca0deb96ffa2371fa9c72656f8a68b6f80fe5d494be79c8fdccbcb51f3d9122fd7d4b3e36864d38e7da1c5029c6b1aa24d SHA512 baf0c5db4f78a3cee83940ace80b48ba308c47eeafcf584120b8ba82768c15448fb789ec5b9ac8d541cbd1bfdd47a988f79130675c5943a67d3135d428b43cbe |
30 |
|
31 |
diff --git a/dev-python/jupyter_core/jupyter_core-4.6.1.ebuild b/dev-python/jupyter_core/jupyter_core-4.6.1.ebuild |
32 |
new file mode 100644 |
33 |
index 00000000000..ce543358ebb |
34 |
--- /dev/null |
35 |
+++ b/dev-python/jupyter_core/jupyter_core-4.6.1.ebuild |
36 |
@@ -0,0 +1,48 @@ |
37 |
+# Copyright 1999-2019 Gentoo Authors |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+ |
40 |
+EAPI=7 |
41 |
+ |
42 |
+PYTHON_COMPAT=( python3_{5,6,7} ) |
43 |
+ |
44 |
+inherit distutils-r1 |
45 |
+ |
46 |
+DESCRIPTION="Core common functionality of Jupyter projects" |
47 |
+HOMEPAGE="https://jupyter.org" |
48 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="BSD" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
53 |
+IUSE="doc test" |
54 |
+ |
55 |
+RDEPEND="dev-python/traitlets[${PYTHON_USEDEP}]" |
56 |
+ |
57 |
+DEPEND="${RDEPEND} |
58 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] |
59 |
+ dev-python/sphinxcontrib-github-alt[${PYTHON_USEDEP}] ) |
60 |
+ test? ( >=dev-python/ipython-4.0.1[${PYTHON_USEDEP}] )" |
61 |
+ |
62 |
+distutils_enable_tests pytest |
63 |
+ |
64 |
+python_prepare_all() { |
65 |
+ # Prevent un-needed download during build |
66 |
+ if use doc; then |
67 |
+ sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/conf.py || die |
68 |
+ fi |
69 |
+ |
70 |
+ distutils-r1_python_prepare_all |
71 |
+} |
72 |
+ |
73 |
+python_compile_all() { |
74 |
+ if use doc; then |
75 |
+ emake -C docs html |
76 |
+ HTML_DOCS=( docs/_build/html/. ) |
77 |
+ fi |
78 |
+} |
79 |
+ |
80 |
+python_test() { |
81 |
+ distutils_install_for_testing |
82 |
+ cd "${TEST_DIR}"/lib || die |
83 |
+ py.test jupyter_core || die |
84 |
+} |