Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/nbconvert/
Date: Fri, 11 Sep 2020 07:17:30
Message-Id: 1599808641.b7ba5c470cb5c5e4e5067b6c00ae1bd34982398c.mgorny@gentoo
1 commit: b7ba5c470cb5c5e4e5067b6c00ae1bd34982398c
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 11 01:06:50 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 11 07:17:21 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7ba5c47
7
8 dev-python/nbconvert: bump to 6.0.1
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12 Closes: https://github.com/gentoo/gentoo/pull/17496
13 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
14
15 dev-python/nbconvert/Manifest | 1 +
16 dev-python/nbconvert/nbconvert-6.0.1.ebuild | 72 +++++++++++++++++++++++++++++
17 2 files changed, 73 insertions(+)
18
19 diff --git a/dev-python/nbconvert/Manifest b/dev-python/nbconvert/Manifest
20 index 1625f921f2d..5c9bd41466f 100644
21 --- a/dev-python/nbconvert/Manifest
22 +++ b/dev-python/nbconvert/Manifest
23 @@ -1 +1,2 @@
24 DIST nbconvert-5.6.1.tar.gz 703233 BLAKE2B e75d558aee6c66fe8e7455ecf22dbbcd2a0698380ffec80eff15aea6c70bc853daa9ab2fd1d114453bd5dfe7e75617afb9f5c1075704bfadbb59fef34bca88a9 SHA512 0c68adcb9f28ead9ec058fc2e02a9a1e6f65818709c99f7a006a59a7562b5f5ee74afe5287e41568c35542898dc1b43c4543d2386cc05a721b3f99d5cc789435
25 +DIST nbconvert-6.0.1.tar.gz 838950 BLAKE2B 7ccb821bd7affab3faed0c1fb139b0641f295c71109c783e9ce40c5a4c15c2d87a327ce7c802ed3cfde2fcde4c360375dd751f9592eeda102d520aee4e94f2d5 SHA512 7c782a068fc004a42cbc2e09d8d4fbce5385a8f6fb8491fa39d14df123a00bf81e6e7f11885fe39300156ecf560b92f5631537a5956e5541ea3dcf9ec5f9f365
26
27 diff --git a/dev-python/nbconvert/nbconvert-6.0.1.ebuild b/dev-python/nbconvert/nbconvert-6.0.1.ebuild
28 new file mode 100644
29 index 00000000000..bc104bb52ac
30 --- /dev/null
31 +++ b/dev-python/nbconvert/nbconvert-6.0.1.ebuild
32 @@ -0,0 +1,72 @@
33 +# Copyright 1999-2020 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{7..9} )
39 +
40 +inherit distutils-r1
41 +
42 +DESCRIPTION="Converting Jupyter Notebooks"
43 +HOMEPAGE="https://nbconvert.readthedocs.io/"
44 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
45 +
46 +LICENSE="BSD"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +
50 +RDEPEND="
51 + dev-python/bleach[${PYTHON_USEDEP}]
52 + dev-python/defusedxml[${PYTHON_USEDEP}]
53 + >=dev-python/entrypoints-0.2.2[${PYTHON_USEDEP}]
54 + dev-python/jinja[${PYTHON_USEDEP}]
55 + dev-python/jupyter_core[${PYTHON_USEDEP}]
56 + dev-python/jupyterlab_pygments[${PYTHON_USEDEP}]
57 + >=dev-python/mistune-0.7.4[${PYTHON_USEDEP}]
58 + dev-python/nbclient[${PYTHON_USEDEP}]
59 + dev-python/nbformat[${PYTHON_USEDEP}]
60 + >=dev-python/pandocfilters-1.4.1[${PYTHON_USEDEP}]
61 + dev-python/pygments[${PYTHON_USEDEP}]
62 + >=dev-python/traitlets-4.2.1[${PYTHON_USEDEP}]
63 + dev-python/testpath[${PYTHON_USEDEP}]
64 + www-servers/tornado[${PYTHON_USEDEP}]
65 +"
66 +BDEPEND="
67 + test? (
68 + dev-python/pebble[${PYTHON_USEDEP}]
69 + dev-python/ipykernel[${PYTHON_USEDEP}]
70 + dev-python/ipywidgets[${PYTHON_USEDEP}]
71 + >=dev-python/jupyter_client-4.2[${PYTHON_USEDEP}]
72 + media-gfx/inkscape
73 + )
74 +"
75 +
76 +distutils_enable_tests pytest
77 +
78 +src_test() {
79 + mkdir -p "${HOME}/.local" || die
80 + cp -r share "${HOME}/.local/" || die
81 + distutils-r1_src_test
82 +}
83 +
84 +python_test() {
85 + local deselect=(
86 + # Missing pyppeteer for now
87 + # TODO: Doesn't skip?
88 + --deselect exporters/tests/test_webpdf.py
89 + # Needs pyppeteer too
90 + --deselect 'tests/test_nbconvertapp.py::TestNbConvertApp::test_webpdf_with_chromium'
91 + )
92 +
93 + distutils_install_for_testing bdist_egg
94 + cd "${TEST_DIR}"/lib || die
95 + pytest -vv "${deselect[@]}" --pyargs nbconvert || die "Tests failed with ${EPYTHON}"
96 +}
97 +
98 +pkg_postinst() {
99 + if ! has_version app-text/pandoc ; then
100 + einfo "Pandoc is required for converting to formats other than Python,"
101 + einfo "HTML, and Markdown. If you need this functionality, install"
102 + einfo "app-text/pandoc."
103 + fi
104 +}