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/nbdime/
Date: Thu, 10 Jun 2021 09:58:26
Message-Id: 1623319095.70650f7d76ea8dd749b2427ff3a104e50cdc5bf3.andrewammerlaan@gentoo
1 commit: 70650f7d76ea8dd749b2427ff3a104e50cdc5bf3
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 10 09:52:38 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 10 09:58:15 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70650f7d
7
8 dev-python/nbdime: add 3.1.0
9
10 Closes: https://bugs.gentoo.org/783243
11 Package-Manager: Portage-3.0.19, Repoman-3.0.3
12 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
13
14 dev-python/nbdime/Manifest | 1 +
15 dev-python/nbdime/nbdime-3.1.0.ebuild | 78 +++++++++++++++++++++++++++++++++++
16 2 files changed, 79 insertions(+)
17
18 diff --git a/dev-python/nbdime/Manifest b/dev-python/nbdime/Manifest
19 index 5518da014d1..8c8d213e295 100644
20 --- a/dev-python/nbdime/Manifest
21 +++ b/dev-python/nbdime/Manifest
22 @@ -1 +1,2 @@
23 DIST nbdime-2.0.0.tar.gz 7768807 BLAKE2B a92ed166ae863185d06e4b3e667df4323b4cd9af9211999109186c1b559522f39ab235b710c7993515aa3c44a55ac3c4b90c424cdc28d04cc013a58add7d61cd SHA512 e68e69e37f6ece701ba8d6e59d8ee321ddaca78d9338e0c52f92b6942bfd3fbf0ec2407e9ae98cb820eb4c26509644a1770f249b815c53265dfdbffbe2b55142
24 +DIST nbdime-3.1.0.tar.gz 7508382 BLAKE2B 10ca59684df06e922afbba30d5419a20490508af8bb9d4f371b1a06db49df7b665195c9aec21c3a303b3fa0c60e5c0c1e57badaba27ac81599b311f9a5000244 SHA512 be19fc058a918cd2aad38a8f727504a01c7830dfaba7fbf06caa0a6799770824499a70f4efe1ebf0a82847dc79d84896baf9aa86d3e7cd16dd7163023fed3855
25
26 diff --git a/dev-python/nbdime/nbdime-3.1.0.ebuild b/dev-python/nbdime/nbdime-3.1.0.ebuild
27 new file mode 100644
28 index 00000000000..5a7c22168e0
29 --- /dev/null
30 +++ b/dev-python/nbdime/nbdime-3.1.0.ebuild
31 @@ -0,0 +1,78 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{7..9} )
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="Diff and merge of Jupyter Notebooks"
42 +HOMEPAGE="https://jupyter.org"
43 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
44 +
45 +LICENSE="BSD"
46 +SLOT="0"
47 +KEYWORDS="~amd64"
48 +IUSE="webtools"
49 +
50 +RDEPEND="
51 + dev-python/colorama[${PYTHON_USEDEP}]
52 + dev-python/GitPython[${PYTHON_USEDEP}]
53 + dev-python/jinja[${PYTHON_USEDEP}]
54 + dev-python/jupyter_server[${PYTHON_USEDEP}]
55 + dev-python/jupyter_server_mathjax[${PYTHON_USEDEP}]
56 + dev-python/nbformat[${PYTHON_USEDEP}]
57 + dev-python/pygments[${PYTHON_USEDEP}]
58 + dev-python/requests[${PYTHON_USEDEP}]
59 + www-servers/tornado[${PYTHON_USEDEP}]
60 + webtools? ( net-libs/nodejs[npm] )"
61 +BDEPEND="
62 + test? (
63 + dev-python/jsonschema[${PYTHON_USEDEP}]
64 + dev-python/mock[${PYTHON_USEDEP}]
65 + dev-python/notebook[${PYTHON_USEDEP}]
66 + dev-python/pytest-timeout[${PYTHON_USEDEP}]
67 + dev-python/tabulate[${PYTHON_USEDEP}]
68 + )"
69 +
70 +distutils_enable_sphinx docs/source \
71 + dev-python/recommonmark \
72 + dev-python/sphinx_rtd_theme
73 +distutils_enable_tests --install pytest
74 +
75 +python_prepare_all() {
76 + # yield tests were removed in pytest 4.0
77 + sed -i -e 's/test_offline_mathjax/_&/' \
78 + -e 's/test_api_merge/_&/' \
79 + -e 's/test_fetch_merge/_&/' \
80 + -e 's/test_api_diff/_&/' \
81 + -e 's/test_fetch_diff/_&/' \
82 + nbdime/tests/test_web.py || die
83 + sed -i -e 's/test_git_difftool/_&/' \
84 + nbdime/tests/test_server_extension.py || die
85 + # reason: [NOTRUN] flaws in deep diffing of lists, not identifying almost equal sublists
86 + sed -i -e 's/test_deep_merge_lists_delete_no_conflict__currently_expected_failures/_&/' \
87 + nbdime/tests/test_merge.py || die
88 + sed -i -e 's/test_diff_to_json_patch/_&/' \
89 + nbdime/tests/test_diff_json_conversion.py || die
90 + sed -i -e 's/test_build_diffs_unsorted/_&/' \
91 + nbdime/tests/test_decision_tools.py || die
92 + sed -i -e 's/test_merge_multiline_cell_source_conflict/_&/' \
93 + -e 's/test_merge_interleave_cell_add_remove/_&/' \
94 + -e 's/test_merge_conflicts_get_diff_indices_shifted/_&/' \
95 + -e 's/test_merge_inserts_within_deleted_range/_&/' \
96 + nbdime/tests/test_merge_notebooks.py || die
97 + distutils-r1_python_prepare_all
98 +}
99 +
100 +python_configure_all() {
101 + use webtools || mydistutilsargs=( --skip-npm )
102 +}
103 +
104 +src_test() {
105 + # user.email and user.name are not configured in the sandbox
106 + git config --global user.email "larry@g.o" || die
107 + git config --global user.name "Larry the Cow" || die
108 + python_foreach_impl python_test
109 +}