Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-iminuit for openSUSE:Factory 
checked in at 2024-09-24 17:33:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-iminuit (Old)
 and      /work/SRC/openSUSE:Factory/.python-iminuit.new.29891 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-iminuit"

Tue Sep 24 17:33:56 2024 rev:34 rq:1202829 version:2.28.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-iminuit/python-iminuit.changes    
2024-08-02 17:28:08.631300180 +0200
+++ /work/SRC/openSUSE:Factory/.python-iminuit.new.29891/python-iminuit.changes 
2024-09-24 17:34:12.891436751 +0200
@@ -1,0 +2,8 @@
+Mon Sep 23 19:25:45 UTC 2024 - Ben Greiner <c...@bnavigator.de>
+
+- Fix numba/numpy resolve blocker in obs: Test in multibuild
+  * -test: no numba, numpy >= 2.1
+  * -test-numba: numpy < 2.1 for numba 0.60
+* Remove entry_points empty file workaround: fixed in toolchain
+
+-------------------------------------------------------------------

New:
----
  _multibuild

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-iminuit.spec ++++++
--- /var/tmp/diff_new_pack.YQXVDu/_old  2024-09-24 17:34:13.575465387 +0200
+++ /var/tmp/diff_new_pack.YQXVDu/_new  2024-09-24 17:34:13.575465387 +0200
@@ -16,38 +16,57 @@
 #
 
 
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == ""
+%define psuffix %{nil}
+%bcond_with test
+%else
+%bcond_without test
+%define psuffix -%{flavor}
+%if "%{flavor}" == "test-numba"
+%bcond_without numba
+%else
+%bcond_with numba
+%endif
+%endif
+
 %{?sle15_python_module_pythons}
-Name:           python-iminuit
+Name:           python-iminuit%{psuffix}
 Version:        2.28.0
 Release:        0
 Summary:        Python bindings for MINUIT2
 License:        MIT
 URL:            https://github.com/scikit-hep/iminuit
 Source0:        
https://files.pythonhosted.org/packages/source/i/iminuit/iminuit-%{version}.tar.gz
-BuildRequires:  %{python_module Cython}
+%if !%{with test}
 BuildRequires:  %{python_module devel >= 3.9}
-BuildRequires:  %{python_module numpy >= 1.21.0}
-BuildRequires:  %{python_module numpy-devel}
+BuildRequires:  %{python_module numpy-devel >= 1.21}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pybind11 >= 2.9.0}
 BuildRequires:  %{python_module pybind11-devel}
 BuildRequires:  %{python_module scikit-build-core-pyproject >= 0.3.0}
-BuildRequires:  %{python_module setuptools}
-BuildRequires:  %{python_module wheel}
 BuildRequires:  cmake >= 3.13
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
+%endif
 BuildRequires:  python-rpm-macros
-Requires:       python-numpy >= 1.21.0
+Requires:       python-numpy >= 1.21
 Recommends:     python-matplotlib
 Recommends:     python-scipy
-# SECTION test requirements
-BuildRequires:  %{python_module ipywidgets if %python-base >= 3.10}
-BuildRequires:  %{python_module matplotlib}
+%if %{with test}
+BuildRequires:  %{python_module iminuit = %{version}}
+%if %{with numba}
+# numba 0.60 requires numpy < 2.1. This resolves to numpy1,
+# if no other **Build**Requires on a conflicting numpy interferes.
 BuildRequires:  %{python_module numba}
+%endif
+BuildRequires:  %{python_module Cython}
+BuildRequires:  %{python_module ipywidgets}
+BuildRequires:  %{python_module matplotlib}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module scipy}
 BuildRequires:  %{python_module tabulate}
+%endif
 # /SECTION
 %python_subpackages
 
@@ -64,24 +83,27 @@
 rm -fr extern/pybind11
 
 %build
+%if !%{with test}
 export CXXFLAGS="%{optflags}"
 export CMAKE_ARGS="-DIMINUIT_EXTERNAL_PYBIND11=ON -DCMAKE_VERBOSE_MAKEFILE=ON"
 %pyproject_wheel
+%endif
 
 %install
+%if !%{with test}
 %pyproject_install
-%{python_expand # remove empty file and dedup
-f=%{buildroot}%{$python_sitearch}/iminuit-%{version}.dist-info/entry_points.txt
-[ -f $f -a ! -s $f  ] && rm $f
-%fdupes %{buildroot}%{$python_sitearch}
-}
+%endif
 
+%if %{with test}
 %check
-%pytest_arch
+%pytest_arch -v
+%endif
 
+%if !%{with test}
 %files %{python_files}
 %doc README.rst
 %license LICENSE
 %{python_sitearch}/iminuit/
 %{python_sitearch}/iminuit-%{version}.dist-info/
+%endif
 

++++++ _multibuild ++++++
<multibuild>
  <package>test</package>
  <package>test-numba</package>
</multibuild>

Reply via email to