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
This commit is contained in:
Markéta Machová 2024-02-22 08:26:40 +00:00 committed by Git OBS Bridge
parent e45bff9a2a
commit a4f04123a2
2 changed files with 29 additions and 26 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Feb 21 15:35:47 UTC 2024 - Ben Greiner <code@bnavigator.de>
- 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 <dmueller@suse.com>

View File

@ -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