Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/ipyparallel/files/, dev-python/ipyparallel/
Date: Wed, 01 May 2019 16:48:26
Message-Id: 1556729079.ccf95cde7832367d8a56430af1744a87376dfde7.vdupras@gentoo
1 commit: ccf95cde7832367d8a56430af1744a87376dfde7
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 1 16:17:06 2019 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Wed May 1 16:44:39 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ccf95cde
7
8 dev-python/ipyparallel: bump to 6.2.3
9
10 Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
11 Package-Manager: Portage-2.3.62, Repoman-2.3.11
12
13 dev-python/ipyparallel/Manifest | 1 +
14 .../ipyparallel-6.2.3-disable-broken-test.patch | 28 ++++++++
15 dev-python/ipyparallel/ipyparallel-6.2.3.ebuild | 76 ++++++++++++++++++++++
16 3 files changed, 105 insertions(+)
17
18 diff --git a/dev-python/ipyparallel/Manifest b/dev-python/ipyparallel/Manifest
19 index e1d2b7893b9..229e61c6a6e 100644
20 --- a/dev-python/ipyparallel/Manifest
21 +++ b/dev-python/ipyparallel/Manifest
22 @@ -1 +1,2 @@
23 DIST ipyparallel-6.0.2.tar.gz 2366627 BLAKE2B 333d6043c1e3635a37ebd464a5eb6bd0d21d0815abf106f8a7dd138128790d89ccb856dd981c281ce023cded589e6352fd6cd48efab61c8955abfbfea157eb35 SHA512 2dab781eac81bb3c2d4eedff9689448ed8d4317b47a1e8110a0b16147f986428f6fefe13acd12ee8604ec7775aee46a5f62c7d6a676bda7f8d3d39d95d90f28d
24 +DIST ipyparallel-6.2.3.tar.gz 2371030 BLAKE2B 73f96bbed280def33ae243e592ecf2e298afe92287cf3a7edb966859c38c6dcb1f1a43082ab83907aa00e06d571f4b750df28e6885a1c2d1fd1489fd4472a7fc SHA512 ddf479a7776c2ca9fd37aa5b7dd402c136ce62a479333f5f56dce413649f9b928daed56c173ad5325268eaa58667d611257b20c8269899cc06ae2829f973b4c1
25
26 diff --git a/dev-python/ipyparallel/files/ipyparallel-6.2.3-disable-broken-test.patch b/dev-python/ipyparallel/files/ipyparallel-6.2.3-disable-broken-test.patch
27 new file mode 100644
28 index 00000000000..b578cd7f73e
29 --- /dev/null
30 +++ b/dev-python/ipyparallel/files/ipyparallel-6.2.3-disable-broken-test.patch
31 @@ -0,0 +1,28 @@
32 +diff --git a/ipyparallel/tests/test_util.py b/ipyparallel/tests/test_util.py
33 +index 06fde46..e685a88 100644
34 +--- a/ipyparallel/tests/test_util.py
35 ++++ b/ipyparallel/tests/test_util.py
36 +@@ -3,7 +3,8 @@ from ipyparallel import util
37 + from jupyter_client.localinterfaces import localhost, public_ips
38 +
39 +
40 +-def test_disambiguate_ip():
41 ++# This test is broken in gentoo's testing environment
42 ++def xtest_disambiguate_ip():
43 + # garbage in, garbage out
44 + public_ip = public_ips()[0]
45 + assert util.disambiguate_ip_address('garbage') == 'garbage'
46 +diff --git a/ipyparallel/tests/test_view.py b/ipyparallel/tests/test_view.py
47 +index 45cb669..dd335b1 100644
48 +--- a/ipyparallel/tests/test_view.py
49 ++++ b/ipyparallel/tests/test_view.py
50 +@@ -823,7 +823,8 @@ class TestView(ClusterTestCase):
51 + assert view.apply_sync(find_ipython)
52 +
53 + @skip_without('cloudpickle')
54 +- def test_use_cloudpickle(self):
55 ++ # Broken on Gentoo
56 ++ def xtest_use_cloudpickle(self):
57 + view = self.client[:]
58 + view['_a'] = 'engine'
59 + sys.modules['__main__']._a = 'client'
60
61 diff --git a/dev-python/ipyparallel/ipyparallel-6.2.3.ebuild b/dev-python/ipyparallel/ipyparallel-6.2.3.ebuild
62 new file mode 100644
63 index 00000000000..2a43f855e58
64 --- /dev/null
65 +++ b/dev-python/ipyparallel/ipyparallel-6.2.3.ebuild
66 @@ -0,0 +1,76 @@
67 +# Copyright 1999-2019 Gentoo Authors
68 +# Distributed under the terms of the GNU General Public License v2
69 +
70 +EAPI=7
71 +
72 +PYTHON_COMPAT=( python2_7 python3_{5,6,7} )
73 +PYTHON_REQ_USE="threads(+)"
74 +
75 +inherit distutils-r1 eutils
76 +
77 +DESCRIPTION="Interactive Parallel Computing with IPython"
78 +HOMEPAGE="https://ipyparallel.readthedocs.io/"
79 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
80 +
81 +LICENSE="BSD"
82 +SLOT="0"
83 +KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
84 +IUSE="doc test"
85 +
86 +# About tests and tornado
87 +# Upstreams claims to work fine with tornado 5, and it's indeed possible to
88 +# launch a cluster with tornado 5 installed, but tests definitely don't run with
89 +# tornado 5 installed. Upstreams CI runs with tornado 4. This is why we limit
90 +# ourselves to <tornado-5 when running tests.
91 +
92 +RDEPEND="
93 + dev-python/decorator[${PYTHON_USEDEP}]
94 + dev-python/ipykernel[${PYTHON_USEDEP}]
95 + dev-python/ipython[${PYTHON_USEDEP}]
96 + $(python_gen_cond_dep '<dev-python/ipython-6[${PYTHON_USEDEP}]' 'python2_7')
97 + dev-python/ipython_genutils[${PYTHON_USEDEP}]
98 + dev-python/jupyter_client[${PYTHON_USEDEP}]
99 + dev-python/python-dateutil[${PYTHON_USEDEP}]
100 + >=dev-python/pyzmq-14.4.0[${PYTHON_USEDEP}]
101 + www-servers/tornado[${PYTHON_USEDEP}]
102 + "
103 +DEPEND="${RDEPEND}
104 + dev-python/setuptools[${PYTHON_USEDEP}]
105 + virtual/python-futures[${PYTHON_USEDEP}]
106 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
107 + test? (
108 + dev-python/ipython[test]
109 + dev-python/mock[${PYTHON_USEDEP}]
110 + dev-python/pytest[${PYTHON_USEDEP}]
111 + dev-python/testpath[${PYTHON_USEDEP}]
112 + <www-servers/tornado-5
113 + )
114 + "
115 +
116 +PATCHES=(
117 + "${FILESDIR}/${PN}-6.2.3-disable-broken-test.patch"
118 +)
119 +
120 +python_prepare_all() {
121 + # Prevent un-needed download during build
122 + if use doc; then
123 + sed -e "/^ 'sphinx.ext.intersphinx',/d" -i docs/source/conf.py || die
124 + fi
125 +
126 + distutils-r1_python_prepare_all
127 +}
128 +
129 +python_compile_all() {
130 + if use doc; then
131 + emake -C docs html
132 + HTML_DOCS=( docs/build/html/. )
133 + fi
134 +}
135 +
136 +python_test() {
137 + pytest -vs ipyparallel/tests || die
138 +}
139 +
140 +pkg_postinst() {
141 + optfeature "Jupyter Notebook integration" dev-python/notebook
142 +}