From a4f04123a204d1bb50e993795870746ba5b8f365614b1d4257b94d8755352982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 22 Feb 2024 08:26:40 +0000 Subject: [PATCH] Accepting request 1148783 from home:bnavigator:branches:devel:languages:python:numeric - Simplify test flavor logic - Prepare for python39 flavor drop: Exclude build in empty test flavors - Don't test on 32bit-platforms OBS-URL: https://build.opensuse.org/request/show/1148783 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numba?expand=0&rev=80 --- python-numba.changes | 8 ++++++++ python-numba.spec | 47 ++++++++++++++++++++------------------------ 2 files changed, 29 insertions(+), 26 deletions(-) diff --git a/python-numba.changes b/python-numba.changes index 78594e5..62b0284 100644 --- a/python-numba.changes +++ b/python-numba.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Feb 21 15:35:47 UTC 2024 - Ben Greiner + +- Simplify test flavor logic +- Prepare for python39 flavor drop: Exclude build in empty test + flavors +- Don't test on 32bit-platforms + ------------------------------------------------------------------- Sat Feb 3 07:04:27 UTC 2024 - Dirk Müller diff --git a/python-numba.spec b/python-numba.spec index e8f45ec..3b64865 100644 --- a/python-numba.spec +++ b/python-numba.spec @@ -21,41 +21,39 @@ %define min_numpy_ver 1.22 %define max_numpy_ver 1.27 +%{?sle15_python_module_pythons} + %global flavor @BUILD_FLAVOR@%{nil} %if "%{flavor}" == "" %define psuffix %{nil} %bcond_with test -%endif -%if "%{flavor}" == "test-py39" -%define psuffix -test-py39 -%define skip_python310 1 -%define skip_python311 1 -%define skip_python312 1 +# Supported Platforms: https://numba.pydata.org/numba-doc/dev/user/installing.html#compatibility +ExclusiveArch: x86_64 %ix86 ppc64le %arm aarch64 +%else %bcond_without test -%endif -%if "%{flavor}" == "test-py310" -%define psuffix -test-py310 +%define psuffix -%{flavor} +%if "%{flavor}" != "test-py39" %define skip_python39 1 -%define skip_python311 1 -%define skip_python312 1 -%bcond_without test %endif -%if "%{flavor}" == "test-py311" -%define psuffix -test-py311 -%define skip_python39 1 +%if "%{flavor}" != "test-py310" %define skip_python310 1 -%define skip_python312 1 -%bcond_without test %endif -%if "%{flavor}" == "test-py312" -%define psuffix -test-py312 -%define skip_python39 1 -%define skip_python310 1 +%if "%{flavor}" != "test-py311" %define skip_python311 1 -%bcond_without test +%endif +%if "%{flavor}" != "test-py312" +%define skip_python312 1 +%endif +# The obs server-side interpreter cannot use lua or rpm shrink +%if "%pythons" == "" || "%pythons" == " " || "%pythons" == " " || "%pythons" == " " || "%pythons" == " " || ( "%pythons" == "python311" && 0%{?skip_python311} ) +ExclusiveArch: donotbuild +%define python_module() %flavor-not-enabled-in-buildset-for-suse-%{?suse_version} +%else +# Tests fail on ppc64 big endian, not resolvable on s390x, wrong types on 32-bit. See also above compatibility list for building +ExcludeArch: s390x ppc64 %ix86 %arm +%endif %endif -%{?sle15_python_module_pythons} Name: python-numba%{?psuffix} Version: 0.59.0 Release: 0 @@ -98,9 +96,6 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module scipy >= 1.0} BuildRequires: %{python_module tbb} %endif -# Tests fail on ppc64 big endian, not resolvable on s390x -# Supported Platforms: https://numba.pydata.org/numba-doc/dev/user/installing.html#compatibility -ExclusiveArch: x86_64 %ix86 ppc64le %arm aarch64 %python_subpackages %description