Script 'mail_helper' called by obssrc
Hello community,

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

Package is "python-sparse"

Tue Sep 24 17:33:59 2024 rev:18 rq:1202832 version:0.15.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-sparse/python-sparse.changes      
2024-09-02 13:13:50.964852710 +0200
+++ /work/SRC/openSUSE:Factory/.python-sparse.new.29891/python-sparse.changes   
2024-09-24 17:34:16.967607391 +0200
@@ -1,0 +2,9 @@
+Mon Sep 23 19:48:30 UTC 2024 - Ben Greiner <c...@bnavigator.de>
+
+- Switch to testing in multibuild: The obs runtime requirement
+  resolver deals with numba/numpy blockage more gracefully than
+  trying to resolve a BuildRequires on them. Numba 0.60 is
+  restricted to Numpy < 2.1 right now.
+* Test in parallel with xdist
+
+-------------------------------------------------------------------

New:
----
  _multibuild

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

Other differences:
------------------
++++++ python-sparse.spec ++++++
--- /var/tmp/diff_new_pack.xyADEb/_old  2024-09-24 17:34:18.783683417 +0200
+++ /var/tmp/diff_new_pack.xyADEb/_new  2024-09-24 17:34:18.795683919 +0200
@@ -16,8 +16,20 @@
 #
 
 
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == ""
+%define psuffix %{nil}
+%bcond_with test
+BuildArch:      noarch
+%else
+%bcond_without test
+%define psuffix -%{flavor}
+# 32bit fails in half of the test suite because the tests try to convert to 
64bit types
+ExcludeArch:    %{ix86} %{arm} ppc
+%endif
+
 %{?sle15_python_module_pythons}
-Name:           python-sparse
+Name:           python-sparse%{psuffix}
 Version:        0.15.4
 Release:        0
 Summary:        Sparse n-dimensional arrays for Python
@@ -29,20 +41,17 @@
 BuildRequires:  %{python_module setuptools >= 64}
 BuildRequires:  %{python_module setuptools_scm >= 8}
 BuildRequires:  %{python_module wheel}
-# SECTION test requirements
-BuildRequires:  %{python_module dask-array}
-BuildRequires:  %{python_module numba >= 0.49}
-BuildRequires:  %{python_module numpy >= 1.17}
-BuildRequires:  %{python_module pytest}
-BuildRequires:  %{python_module scipy >= 0.19}
-# /SECTION
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-numba >= 0.49
 Requires:       python-numpy >= 1.17
 Requires:       python-scipy >= 0.19
-BuildArch:      noarch
-
+%if %{with test}
+BuildRequires:  %{python_module dask-array}
+BuildRequires:  %{python_module pytest-xdist}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module sparse = %{version}}
+%endif
 %python_subpackages
 
 %description
@@ -59,21 +68,26 @@
 sed -i /addopts/d pytest.ini
 
 %build
+%if !%{with test}
 %pyproject_wheel
+%endif
 
 %install
+%if !%{with test}
 %pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
 
+%if %{with test}
 %check
-# 32bit fails in half of the test suite because the tests try to convert to 
64bit types
-if [ $(getconf LONG_BIT) -eq 64 ]; then
-%pytest
-fi
+%pytest -n auto
+%endif
 
+%if !%{with test}
 %files %{python_files}
 %doc README.rst docs/*.rst
 %license LICENSE
 %{python_sitelib}/sparse
-%{python_sitelib}/sparse-%{version}*-info
+%{python_sitelib}/sparse-%{version}.dist-info
+%endif
 

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

Reply via email to