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/joblib/
Date: Thu, 26 May 2022 10:45:49
Message-Id: 1653561936.b9b6f16246b21c0d4dbd5bc21b2ee4991c24fba4.andrewammerlaan@gentoo
1 commit: b9b6f16246b21c0d4dbd5bc21b2ee4991c24fba4
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 26 10:43:34 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Thu May 26 10:45:36 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9b6f162
7
8 dev-python/joblib: pep517, enable py3.11
9
10 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
11
12 dev-python/joblib/joblib-1.1.0-r1.ebuild | 47 ++++++++++++++++++++++++++++++++
13 1 file changed, 47 insertions(+)
14
15 diff --git a/dev-python/joblib/joblib-1.1.0-r1.ebuild b/dev-python/joblib/joblib-1.1.0-r1.ebuild
16 new file mode 100644
17 index 000000000000..f627bd235c06
18 --- /dev/null
19 +++ b/dev-python/joblib/joblib-1.1.0-r1.ebuild
20 @@ -0,0 +1,47 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +PYTHON_COMPAT=( python3_{8..11} )
27 +DISTUTILS_USE_PEP517=setuptools
28 +inherit distutils-r1
29 +
30 +DESCRIPTION="Tools to provide lightweight pipelining in Python"
31 +HOMEPAGE="https://joblib.readthedocs.io/en/latest/
32 + https://github.com/joblib/joblib"
33 +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
34 +
35 +LICENSE="BSD"
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
38 +
39 +RDEPEND="
40 + dev-python/cloudpickle[${PYTHON_USEDEP}]
41 + dev-python/loky[${PYTHON_USEDEP}]
42 +"
43 +# joblib is imported by setup.py so we need ${RDEPEND}
44 +BDEPEND="
45 + ${RDEPEND}
46 + test? (
47 + dev-python/threadpoolctl[${PYTHON_USEDEP}]
48 + )
49 +"
50 +
51 +distutils_enable_tests pytest
52 +
53 +python_prepare_all() {
54 + # unbundle
55 + rm -r joblib/externals || die
56 + sed -e "s:'joblib.externals[^']*',\?::g" -i setup.py || die
57 + find -name '*.py' -exec \
58 + sed -e 's:\(joblib\)\?\.externals\.::' \
59 + -e 's:from \.externals ::' \
60 + -i {} + || die
61 +
62 + # https://github.com/joblib/joblib/issues/1115
63 + sed -e 's:test_parallel_call_cached_function_defined_in_jupyter:_&:' \
64 + -i joblib/test/test_memory.py || die
65 +
66 + distutils-r1_python_prepare_all
67 +}