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/joblib/
Date: Tue, 09 Feb 2021 18:48:53
Message-Id: 1612896524.db013de66cbba982e8593968217afbb7d390e59e.mgorny@gentoo
1 commit: db013de66cbba982e8593968217afbb7d390e59e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 9 18:29:14 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 9 18:48:44 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db013de6
7
8 dev-python/joblib: Bump to 1.0.1
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/joblib/Manifest | 1 +
13 dev-python/joblib/joblib-1.0.1.ebuild | 46 +++++++++++++++++++++++++++++++++++
14 2 files changed, 47 insertions(+)
15
16 diff --git a/dev-python/joblib/Manifest b/dev-python/joblib/Manifest
17 index 3a282f1ad23..9cddcefb58b 100644
18 --- a/dev-python/joblib/Manifest
19 +++ b/dev-python/joblib/Manifest
20 @@ -1 +1,2 @@
21 DIST joblib-1.0.0.tar.gz 346996 BLAKE2B 6f31dba31e451fe1d05e7a34bc211b641e10a6dda21cc6a4d283a594744caa3434748a2c2c661c468931e509d815596db18ce1cbed287ae6b0da287490256dec SHA512 3fad2f3d4d6651d2c0376403b3658defc9ae1acf08b2e187f77b440040ad414bf723241d685df862c08b88d784ded915f5794d0e0c29841d9acae4db200d7213
22 +DIST joblib-1.0.1.tar.gz 347176 BLAKE2B 046ec87d446eb3075d867e41bb87039062531294d9b6c0be8d3cb42ccdf47dd58f1bc46a599ade64fc210e93fcad6e3007af82dbc670e1eaec1c67b425f87712 SHA512 39b1579efad44d6e51db501dbaa8378e7c8a423822ee3264a8bed44b720f59e6d08993a00f995c45beada3dd59b8e4101c47e587c9bf72027b01723838b533ab
23
24 diff --git a/dev-python/joblib/joblib-1.0.1.ebuild b/dev-python/joblib/joblib-1.0.1.ebuild
25 new file mode 100644
26 index 00000000000..3a8beae1a37
27 --- /dev/null
28 +++ b/dev-python/joblib/joblib-1.0.1.ebuild
29 @@ -0,0 +1,46 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +PYTHON_COMPAT=( python3_{7..9} )
35 +
36 +inherit distutils-r1
37 +
38 +DESCRIPTION="Tools to provide lightweight pipelining in Python"
39 +HOMEPAGE="https://joblib.readthedocs.io/en/latest/
40 + https://github.com/joblib/joblib"
41 +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
42 +
43 +LICENSE="BSD"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
46 +
47 +RDEPEND="
48 + dev-python/cloudpickle[${PYTHON_USEDEP}]
49 + dev-python/loky[${PYTHON_USEDEP}]
50 +"
51 +# joblib is imported by setup.py so we need ${RDEPEND}
52 +BDEPEND="
53 + ${RDEPEND}
54 + test? (
55 + dev-python/threadpoolctl[${PYTHON_USEDEP}]
56 + )
57 +"
58 +
59 +distutils_enable_tests pytest
60 +
61 +python_prepare_all() {
62 + # unbundle
63 + rm -r joblib/externals || die
64 + sed -e "s:'joblib.externals[^']*',\?::g" -i setup.py || die
65 + find -name '*.py' -exec \
66 + sed -e 's:\(joblib\)\?\.externals\.::' \
67 + -e 's:from \.externals ::' \
68 + -i {} + || die
69 +
70 + # https://github.com/joblib/joblib/issues/1115
71 + sed -e 's:test_parallel_call_cached_function_defined_in_jupyter:_&:' \
72 + -i joblib/test/test_memory.py || die
73 +
74 + distutils-r1_python_prepare_all
75 +}