commit: b01e2b31843386dad9c19dbb3f1c5aaf02382de5 Author: Tomas Fabrizio Orsi <torsi <AT> fi <DOT> uba <DOT> ar> AuthorDate: Thu May 11 13:38:37 2023 +0000 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> CommitDate: Thu May 11 14:43:12 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b01e2b31
dev-python/joblib: add 1.2.0 Closes: https://bugs.gentoo.org/906143 Closes: https://github.com/gentoo/gentoo/pull/30991 Signed-off-by: Tomas Fabrizio Orsi <torsi <AT> fi.uba.ar> Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> dev-python/joblib/Manifest | 1 + dev-python/joblib/joblib-1.2.0.ebuild | 47 +++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/dev-python/joblib/Manifest b/dev-python/joblib/Manifest index 54208e24f11f..e85abfb4041b 100644 --- a/dev-python/joblib/Manifest +++ b/dev-python/joblib/Manifest @@ -1 +1,2 @@ DIST joblib-1.1.0.tar.gz 350428 BLAKE2B 6b9b449e012752e561b267c8e27475252fee8d56406430bc570abc6da22b913bb09b7ad8708c29c7d7c338e4f541144b4514976a9f4ce017c3764b4d717eaba8 SHA512 5efcf9fc6dd4e2cf30599dc50373e40580be38fa15c2295519eb8c3b94a07b0fe2d1a9960ec4a67846aa3176335a2634b21107664032966166b973dcbded0cea +DIST joblib-1.2.0.gh.tar.gz 345345 BLAKE2B e18be536054829057ff320eda320a7548434108b3fc6c92a03df73dc68e093d039c656c1d674ea26fb6419bdfc39d26cfc28236a6bfbf0dcbf3ace7e52b0c829 SHA512 de882f2ff8dd936b4f98352b9ee1cc56c3a734f215a74257cf90a25736afd9e6b93e6538929b7a29f5956e6fccbdfcbf8b39c8fd68035a8857721f7a76066133 diff --git a/dev-python/joblib/joblib-1.2.0.ebuild b/dev-python/joblib/joblib-1.2.0.ebuild new file mode 100644 index 000000000000..8a4cce5b3458 --- /dev/null +++ b/dev-python/joblib/joblib-1.2.0.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +DESCRIPTION="Tools to provide lightweight pipelining in Python" +HOMEPAGE="https://joblib.readthedocs.io/en/latest/ + https://github.com/joblib/joblib" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" + +RDEPEND=" + dev-python/cloudpickle[${PYTHON_USEDEP}] + dev-python/loky[${PYTHON_USEDEP}] +" +# joblib is imported by setup.py so we need ${RDEPEND} +BDEPEND=" + ${RDEPEND} + test? ( + dev-python/threadpoolctl[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + # unbundle + rm -r joblib/externals || die + sed -e "s:'joblib.externals[^']*',\?::g" -i setup.py || die + find -name '*.py' -exec \ + sed -e 's:\(joblib\)\?\.externals\.::' \ + -e 's:from \.externals ::' \ + -i {} + || die + + # https://github.com/joblib/joblib/issues/1115 + sed -e 's:test_parallel_call_cached_function_defined_in_jupyter:_&:' \ + -i joblib/test/test_memory.py || die + + distutils-r1_python_prepare_all +}
