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/ipyparallel/
Date: Wed, 02 Sep 2020 09:12:11
Message-Id: 1599037907.281e9668bad082593b23b35dff6bc50ae62bf857.mgorny@gentoo
1 commit: 281e9668bad082593b23b35dff6bc50ae62bf857
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 2 08:36:10 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 2 09:11:47 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=281e9668
7
8 dev-python/ipyparallel: Remove py36 in new rev due to ipython
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/ipyparallel/ipyparallel-6.3.0-r1.ebuild | 62 ++++++++++++++++++++++
13 1 file changed, 62 insertions(+)
14
15 diff --git a/dev-python/ipyparallel/ipyparallel-6.3.0-r1.ebuild b/dev-python/ipyparallel/ipyparallel-6.3.0-r1.ebuild
16 new file mode 100644
17 index 00000000000..f478bc55e98
18 --- /dev/null
19 +++ b/dev-python/ipyparallel/ipyparallel-6.3.0-r1.ebuild
20 @@ -0,0 +1,62 @@
21 +# Copyright 1999-2020 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=7
25 +
26 +PYTHON_COMPAT=( python3_{7..9} )
27 +PYTHON_REQ_USE="threads(+)"
28 +DISTUTILS_USE_SETUPTOOLS=rdepend
29 +
30 +inherit distutils-r1 eutils
31 +
32 +DESCRIPTION="Interactive Parallel Computing with IPython"
33 +HOMEPAGE="https://ipyparallel.readthedocs.io/"
34 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
35 +
36 +LICENSE="BSD"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~arm64 ~x86 ~amd64-linux ~x86-linux"
39 +IUSE="doc test"
40 +RESTRICT="!test? ( test )"
41 +
42 +# About tests and tornado
43 +# Upstreams claims to work fine with tornado 5, and it's indeed possible to
44 +# launch a cluster with tornado 5 installed, but tests definitely don't run with
45 +# tornado 5 installed. Upstreams CI runs with tornado 4. This is why we limit
46 +# ourselves to <tornado-5 when running tests.
47 +
48 +RDEPEND="
49 + dev-python/decorator[${PYTHON_USEDEP}]
50 + dev-python/ipykernel[${PYTHON_USEDEP}]
51 + dev-python/ipython[${PYTHON_USEDEP}]
52 + dev-python/ipython_genutils[${PYTHON_USEDEP}]
53 + dev-python/jupyter_client[${PYTHON_USEDEP}]
54 + dev-python/python-dateutil[${PYTHON_USEDEP}]
55 + >=dev-python/pyzmq-14.4.0[${PYTHON_USEDEP}]
56 + www-servers/tornado[${PYTHON_USEDEP}]
57 + "
58 +BDEPEND="${RDEPEND}
59 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
60 + test? (
61 + dev-python/ipython[test]
62 + dev-python/mock[${PYTHON_USEDEP}]
63 + dev-python/pytest[${PYTHON_USEDEP}]
64 + dev-python/testpath[${PYTHON_USEDEP}]
65 + )
66 + "
67 +
68 +distutils_enable_sphinx docs/source
69 +distutils_enable_tests pytest
70 +
71 +src_prepare() {
72 + # TODO: investigate
73 + sed -e 's:test_unicode:_&:' \
74 + -e 's:test_temp_flags:_&:' \
75 + -i ipyparallel/tests/test_view.py || die
76 +
77 + distutils-r1_src_prepare
78 +}
79 +
80 +pkg_postinst() {
81 + optfeature "Jupyter Notebook integration" dev-python/notebook
82 +}