From 624ca76ff3bb58a95d39468caecb04a88cd917e92996ae0d4a447a77fae89b6c Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 12 Jul 2022 11:50:45 +0000 Subject: [PATCH] Accepting request 988564 from home:bnavigator:branches:devel:languages:python:numeric - Update to 0.55.2 * This is a maintenance release to support NumPy 1.22 and Apple M1. * Backport #8027: Support for NumPy 1.22 * update max NumPy for 0.55.2 * Backport #8052 Ensure pthread is linked in when building for ppc64le. * Backport #8102 to fix numpy requirements * Backport #8109 Pin TBB support with respect to incompatible 2021.6 API. OBS-URL: https://build.opensuse.org/request/show/988564 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numba?expand=0&rev=53 --- numba-0.55.1.tar.gz | 3 --- numba-0.55.2.tar.gz | 3 +++ python-numba.changes | 14 ++++++++++++++ python-numba.spec | 21 ++++++++++++--------- 4 files changed, 29 insertions(+), 12 deletions(-) delete mode 100644 numba-0.55.1.tar.gz create mode 100644 numba-0.55.2.tar.gz diff --git a/numba-0.55.1.tar.gz b/numba-0.55.1.tar.gz deleted file mode 100644 index 1f0b5df..0000000 --- a/numba-0.55.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:03e9069a2666d1c84f93b00dbd716fb8fedde8bb2c6efafa2f04842a46442ea3 -size 2308272 diff --git a/numba-0.55.2.tar.gz b/numba-0.55.2.tar.gz new file mode 100644 index 0000000..d431a4c --- /dev/null +++ b/numba-0.55.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e428d9e11d9ba592849ccc9f7a009003eb7d30612007e365afe743ce7118c6f4 +size 2302683 diff --git a/python-numba.changes b/python-numba.changes index e5d6aed..c73341b 100644 --- a/python-numba.changes +++ b/python-numba.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Mon Jul 11 16:05:33 UTC 2022 - Ben Greiner + +- Update to 0.55.2 + * This is a maintenance release to support NumPy 1.22 and Apple + M1. + * Backport #8027: Support for NumPy 1.22 + * update max NumPy for 0.55.2 + * Backport #8052 Ensure pthread is linked in when building for + ppc64le. + * Backport #8102 to fix numpy requirements + * Backport #8109 Pin TBB support with respect to incompatible + 2021.6 API. + ------------------------------------------------------------------- Sat Jan 29 13:23:43 UTC 2022 - Ben Greiner diff --git a/python-numba.spec b/python-numba.spec index ec1f6c0..2fd8b20 100644 --- a/python-numba.spec +++ b/python-numba.spec @@ -19,6 +19,9 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 %define plainpython python +# upper bound is exclusive: min-numpy_ver <= numpy < max_numpy_ver +%define min_numpy_ver 1.18 +%define max_numpy_ver 1.23 %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "test" %define psuffix -test @@ -28,7 +31,7 @@ %bcond_with test %endif Name: python-numba%{psuffix} -Version: 0.55.1 +Version: 0.55.2 Release: 0 Summary: NumPy-aware optimizing compiler for Python using LLVM License: BSD-2-Clause @@ -39,16 +42,16 @@ Patch0: fix-max-name-size.patch # PATCH-FIX-OPENSUSE skip tests failing due to OBS specifics Patch3: skip-failing-tests.patch BuildRequires: %{python_module devel >= 3.7} -BuildRequires: %{python_module numpy-devel >= 1.18 with %python-numpy-devel < 1.22} +BuildRequires: %{python_module numpy-devel >= %{min_numpy_ver} with %python-numpy-devel < %{max_numpy_ver}} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: python-rpm-macros -BuildRequires: tbb-devel >= 2021 +BuildRequires: (tbb-devel >= 2021 with tbb-devel < 2021.6) Requires: (python-llvmlite >= 0.38 with python-llvmlite < 0.39) -Requires: (python-numpy >= 1.18 with python-numpy < 1.22) +Requires: (python-numpy >= %{min_numpy_ver} with python-numpy < %{max_numpy_ver}) Requires(post): update-alternatives -Requires(preun):update-alternatives +Requires(postun):update-alternatives Recommends: python-Jinja2 Recommends: python-Pygments Recommends: python-cffi @@ -60,8 +63,8 @@ BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module Pygments} BuildRequires: %{python_module cffi} BuildRequires: %{python_module ipython} -BuildRequires: %{python_module numba >= %{version}} -BuildRequires: %{python_module numba-devel >= %{version}} +BuildRequires: %{python_module numba = %{version}} +BuildRequires: %{python_module numba-devel = %{version}} BuildRequires: %{python_module pip} BuildRequires: %{python_module psutil} BuildRequires: %{python_module pytest} @@ -94,8 +97,8 @@ data structures such as those that exist in NumPy. Summary: Development files for numba applications Requires: %{name} = %{version} Requires: python-devel -Requires: python-numpy-devel >= 1.11 Requires: %{plainpython}(abi) = %{python_version} +Requires: (python-numpy-devel >= %{min_numpy_ver} with python-numpy-devel < %{max_numpy_ver}) %description devel This package contains files for developing applications using numba. @@ -143,7 +146,7 @@ popd %if !%{with test} %post -%{python_install_alternative numba pycc} +%python_install_alternative numba pycc %postun %python_uninstall_alternative numba