1 |
commit: 2f9ef42b9b11f6a58f6114651d0beab2512112f3 |
2 |
Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 4 20:39:44 2019 +0000 |
4 |
Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 4 22:58:02 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f9ef42b |
7 |
|
8 |
dev-python/nbconvert: bump to 5.5.0 |
9 |
|
10 |
Also, drop py2. |
11 |
|
12 |
Bug: https://bugs.gentoo.org/685040 |
13 |
Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org> |
14 |
Package-Manager: Portage-2.3.62, Repoman-2.3.11 |
15 |
|
16 |
dev-python/nbconvert/Manifest | 1 + |
17 |
dev-python/nbconvert/nbconvert-5.5.0.ebuild | 81 +++++++++++++++++++++++++++++ |
18 |
2 files changed, 82 insertions(+) |
19 |
|
20 |
diff --git a/dev-python/nbconvert/Manifest b/dev-python/nbconvert/Manifest |
21 |
index 2d40ec53192..4f10fd5a283 100644 |
22 |
--- a/dev-python/nbconvert/Manifest |
23 |
+++ b/dev-python/nbconvert/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST nbconvert-5.2.1.tar.gz 510937 BLAKE2B aade38372775b032287f420ea4d335ad949a80afc0df63859db5a4f520bbaa22fcd17bf4318b05fa042fe94c2f65890aa2ed2365206abe8cdfb357817b056ac7 SHA512 c71c95d6c7bda4b55afad792d108d48c27857e060531dc8ec262673971c258ff9480821bd78ee5cbdbb19f107d5f8d19a49eac88819f20a09b450c26681335fa |
26 |
+DIST nbconvert-5.5.0.tar.gz 583216 BLAKE2B fce42d68fcfb5439607fcb0fa8475462e929a5ddb9d160985956a85e09c7561e1a966be633b4d59e6afe873fb7f1300997c97bdbf4690290401d14bbe351c47a SHA512 4d10cbd6d6854d7672537cfb2e0a79854be1ed4adf96f805b1a0ec0dde0e149ed465a26ceec8d7c325f7011c30ff646054585b65d1e83540622e25a96cc207bf |
27 |
|
28 |
diff --git a/dev-python/nbconvert/nbconvert-5.5.0.ebuild b/dev-python/nbconvert/nbconvert-5.5.0.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..542772f0ca2 |
31 |
--- /dev/null |
32 |
+++ b/dev-python/nbconvert/nbconvert-5.5.0.ebuild |
33 |
@@ -0,0 +1,81 @@ |
34 |
+# Copyright 1999-2019 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python3_{5,6,7} ) |
40 |
+ |
41 |
+inherit distutils-r1 |
42 |
+ |
43 |
+DESCRIPTION="Converting Jupyter Notebooks" |
44 |
+HOMEPAGE="https://nbconvert.readthedocs.io/" |
45 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="BSD" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux" |
50 |
+IUSE="doc test" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ dev-python/bleach[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/entrypoints-0.2.2[${PYTHON_USEDEP}] |
55 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
56 |
+ dev-python/jupyter_core[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/mistune-0.7.4[${PYTHON_USEDEP}] |
58 |
+ dev-python/nbformat[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/pandocfilters-1.4.1[${PYTHON_USEDEP}] |
60 |
+ dev-python/pygments[${PYTHON_USEDEP}] |
61 |
+ >=dev-python/traitlets-4.2.1[${PYTHON_USEDEP}] |
62 |
+ dev-python/testpath[${PYTHON_USEDEP}] |
63 |
+ www-servers/tornado[${PYTHON_USEDEP}] |
64 |
+" |
65 |
+DEPEND=" |
66 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
67 |
+ doc? ( |
68 |
+ ${RDEPEND} |
69 |
+ dev-python/ipython[${PYTHON_USEDEP}] |
70 |
+ dev-python/jupyter_client[${PYTHON_USEDEP}] |
71 |
+ dev-python/nbsphinx[${PYTHON_USEDEP}] |
72 |
+ dev-python/sphinx[${PYTHON_USEDEP}] |
73 |
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
74 |
+ ) |
75 |
+ test? ( |
76 |
+ ${RDEPEND} |
77 |
+ dev-python/nose[${PYTHON_USEDEP}] |
78 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
79 |
+ dev-python/ipykernel[${PYTHON_USEDEP}] |
80 |
+ >=dev-python/jupyter_client-4.2[${PYTHON_USEDEP}] |
81 |
+ ) |
82 |
+" |
83 |
+ |
84 |
+# still failing in many places |
85 |
+RESTRICT=test |
86 |
+ |
87 |
+python_prepare_all() { |
88 |
+ # Prevent un-needed download during build |
89 |
+ if use doc; then |
90 |
+ sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die |
91 |
+ fi |
92 |
+ distutils-r1_python_prepare_all |
93 |
+} |
94 |
+ |
95 |
+python_compile_all() { |
96 |
+ if use doc; then |
97 |
+ emake -C docs html |
98 |
+ HTML_DOCS=( docs/build/html/. ) |
99 |
+ fi |
100 |
+} |
101 |
+ |
102 |
+python_test() { |
103 |
+ distutils_install_for_testing |
104 |
+ cd "${TEST_DIR}"/lib || die |
105 |
+ pytest -v --pyargs nbconvert || die |
106 |
+} |
107 |
+ |
108 |
+pkg_postinst() { |
109 |
+ if ! has_version app-text/pandoc ; then |
110 |
+ einfo "Pandoc is required for converting to formats other than Python," |
111 |
+ einfo "HTML, and Markdown. If you need this functionality, install" |
112 |
+ einfo "app-text/pandoc." |
113 |
+ fi |
114 |
+} |