commit:     68cea2c0af9c9736ef5b058213574b7f7e45eb31
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 21 10:42:22 2022 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Fri Oct 21 10:42:22 2022 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=68cea2c0

dev-python/numba: bump to 0.56.3

Also correct tbb dep version requirements.
Closes: https://github.com/gentoo/sci/pull/1174

Co-authored-by: =?UTF-8?q?J=C3=A9r=C3=B4me=20Carretero?= <cJ <AT> zougloub.eu>
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 .../numba/files/numba-0.51.2-skip_tests.patch      | 46 ----------------------
 .../{numba-0.56.0.ebuild => numba-0.56.3.ebuild}   |  6 +--
 2 files changed, 2 insertions(+), 50 deletions(-)

diff --git a/dev-python/numba/files/numba-0.51.2-skip_tests.patch 
b/dev-python/numba/files/numba-0.51.2-skip_tests.patch
deleted file mode 100644
index 327271a04..000000000
--- a/dev-python/numba/files/numba-0.51.2-skip_tests.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-diff --git a/numba/tests/test_jitclasses.py b/numba/tests/test_jitclasses.py
-index 87f1165..c1c5f35 100644
---- a/numba/tests/test_jitclasses.py
-+++ b/numba/tests/test_jitclasses.py
-@@ -909,6 +909,7 @@ class TestJitClass(TestCase, MemoryLeakMixin):
-         self.assertEqual(t[2:2:1], 2)
-         self.assertEqual(t[6:6:1], 3)
- 
-+    @unittest.skip("Gentoo has not reverted the LLVM 'truncate longlabel' 
patch")
-     def test_jitclass_longlabel_not_truncated(self):
-         # See issue #3872, llvm 7 introduced a max label length of 1024 chars
-         # Numba ships patched llvm 7.1 (ppc64le) and patched llvm 8 to undo 
this
-diff --git a/numba/tests/test_np_functions.py 
b/numba/tests/test_np_functions.py
-index 01c15fd..3d9e228 100644
---- a/numba/tests/test_np_functions.py
-+++ b/numba/tests/test_np_functions.py
-@@ -2028,6 +2028,7 @@ class TestNPFunctions(MemoryLeakMixin, TestCase):
-                     params = {'ary': ary, 'to_begin': a, 'to_end': b}
-                     _check(params)
- 
-+    @unittest.skip("unhandled type error")
-     def test_ediff1d_edge_cases(self):
-         # NOTE: NumPy 1.16 has a variety of behaviours for type conversion, 
see
-         # https://github.com/numpy/numpy/issues/13103, as this is not resolved
-diff --git a/numba/tests/test_record_dtype.py 
b/numba/tests/test_record_dtype.py
-index 6d479c4..2357206 100644
---- a/numba/tests/test_record_dtype.py
-+++ b/numba/tests/test_record_dtype.py
-@@ -796,7 +796,7 @@ class TestRecordDtype(unittest.TestCase):
-         # len(transformed) is generally 10, but could be longer if a large
-         # number of typecodes are in use. Checking <20 should provide enough
-         # tolerance.
--        self.assertLess(len(transformed), 20)
-+        self.assertLessEqual(len(transformed), 20)
- 
-         struct_arr = types.Array(rec, 1, 'C')
-         transformed = mangle_type(struct_arr)
-@@ -804,7 +804,7 @@ class TestRecordDtype(unittest.TestCase):
-         self.assertNotIn('first', transformed)
-         self.assertNotIn('second', transformed)
-         # Length is usually 50 - 5 chars tolerance as above.
--        self.assertLess(len(transformed), 50)
-+        self.assertLessEqual(len(transformed), 50)
- 
-     def test_record_two_arrays(self):
-         """

diff --git a/dev-python/numba/numba-0.56.0.ebuild 
b/dev-python/numba/numba-0.56.3.ebuild
similarity index 94%
rename from dev-python/numba/numba-0.56.0.ebuild
rename to dev-python/numba/numba-0.56.3.ebuild
index 15eae53a7..af3ffd6e8 100644
--- a/dev-python/numba/numba-0.56.0.ebuild
+++ b/dev-python/numba/numba-0.56.3.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 PYTHON_COMPAT=( python3_{8..10} )
 
-DISTUTILS_USE_SETUPTOOLS=rdepend
+DISTUTILS_USE_PEP517=setuptools
 inherit optfeature multiprocessing distutils-r1
 
 DESCRIPTION="NumPy aware dynamic Python compiler using LLVM"
@@ -23,14 +23,13 @@ RDEPEND="
        <=dev-python/llvmlite-0.40.0
        >=dev-python/numpy-1.18.0[${PYTHON_USEDEP}]
        <dev-python/numpy-1.23[${PYTHON_USEDEP}]
-       threads? ( >=dev-cpp/tbb-2021.1 )
+       threads? ( >=dev-cpp/tbb-2021.1 <dev-cpp/tbb-2021.6 )
 "
 BDEPEND="
        dev-python/pip[${PYTHON_USEDEP}]
        dev-python/versioneer[${PYTHON_USEDEP}]
 "
 
-DISTUTILS_IN_SOURCE_BUILD=1
 distutils_enable_tests unittest
 distutils_enable_sphinx docs/source dev-python/numpydoc 
dev-python/sphinx_rtd_theme
 
@@ -73,7 +72,6 @@ python_compile() {
 
 # 
https://numba.pydata.org/numba-doc/latest/developer/contributing.html?highlight=test#running-tests
 python_test() {
-       distutils_install_for_testing
        ${EPYTHON} setup.py build_ext --inplace || die \
                "${EPYTHON} failed to build_ext"
        ${EPYTHON} runtests.py -m $(makeopts_jobs) || die \

Reply via email to