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: Thu, 07 Oct 2021 21:48:35
Message-Id: 1633641936.3ee2c4941febad134f139f5a5aa461b2cd182fee.mgorny@gentoo
1 commit: 3ee2c4941febad134f139f5a5aa461b2cd182fee
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Oct 7 21:25:36 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 7 21:25:36 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ee2c494
7
8 dev-python/joblib: Bump to 1.1.0
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.1.0.ebuild | 46 +++++++++++++++++++++++++++++++++++
14 2 files changed, 47 insertions(+)
15
16 diff --git a/dev-python/joblib/Manifest b/dev-python/joblib/Manifest
17 index a8a91d76971..6686dc714c7 100644
18 --- a/dev-python/joblib/Manifest
19 +++ b/dev-python/joblib/Manifest
20 @@ -1 +1,2 @@
21 DIST joblib-1.0.1.tar.gz 347176 BLAKE2B 046ec87d446eb3075d867e41bb87039062531294d9b6c0be8d3cb42ccdf47dd58f1bc46a599ade64fc210e93fcad6e3007af82dbc670e1eaec1c67b425f87712 SHA512 39b1579efad44d6e51db501dbaa8378e7c8a423822ee3264a8bed44b720f59e6d08993a00f995c45beada3dd59b8e4101c47e587c9bf72027b01723838b533ab
22 +DIST joblib-1.1.0.tar.gz 350428 BLAKE2B 6b9b449e012752e561b267c8e27475252fee8d56406430bc570abc6da22b913bb09b7ad8708c29c7d7c338e4f541144b4514976a9f4ce017c3764b4d717eaba8 SHA512 5efcf9fc6dd4e2cf30599dc50373e40580be38fa15c2295519eb8c3b94a07b0fe2d1a9960ec4a67846aa3176335a2634b21107664032966166b973dcbded0cea
23
24 diff --git a/dev-python/joblib/joblib-1.1.0.ebuild b/dev-python/joblib/joblib-1.1.0.ebuild
25 new file mode 100644
26 index 00000000000..4f96b96a5b1
27 --- /dev/null
28 +++ b/dev-python/joblib/joblib-1.1.0.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=8
34 +
35 +PYTHON_COMPAT=( python3_{8..10} )
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 ~riscv ~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 +}