Hello community,

here is the log from the commit of package python-numba for openSUSE:Factory 
checked in at 2020-04-07 10:30:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-numba (Old)
 and      /work/SRC/openSUSE:Factory/.python-numba.new.3248 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-numba"

Tue Apr  7 10:30:34 2020 rev:24 rq:791732 version:0.48.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-numba/python-numba.changes        
2020-02-21 16:43:19.290148555 +0100
+++ /work/SRC/openSUSE:Factory/.python-numba.new.3248/python-numba.changes      
2020-04-07 10:32:02.930555449 +0200
@@ -1,0 +2,6 @@
+Mon Apr  6 07:56:16 UTC 2020 - Tomáš Chvátal <[email protected]>
+
+- Switch to multibuilt as the tests take ages to build and we
+  could speed things up in 2 loops
+
+-------------------------------------------------------------------

New:
----
  _multibuild

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

Other differences:
------------------
++++++ python-numba.spec ++++++
--- /var/tmp/diff_new_pack.E6tHC3/_old  2020-04-07 10:32:03.734556496 +0200
+++ /var/tmp/diff_new_pack.E6tHC3/_new  2020-04-07 10:32:03.734556496 +0200
@@ -18,7 +18,15 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
-Name:           python-numba
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
+Name:           python-numba%{psuffix}
 Version:        0.48.0
 Release:        0
 Summary:        NumPy-aware optimizing compiler for Python using LLVM
@@ -28,6 +36,7 @@
 Patch0:         skip-failing-tests.patch
 # PATCH-FIX-UPSTREAM fix-max-name-size.patch -- fix for gh#numba/numba#3876 -- 
from gh#numba/numba#4373
 Patch1:         fix-max-name-size.patch
+%if %{with test}
 BuildRequires:  %{python_module Jinja2}
 BuildRequires:  %{python_module PyYAML}
 BuildRequires:  %{python_module Pygments}
@@ -35,14 +44,18 @@
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module ipython}
 BuildRequires:  %{python_module llvmlite >= 0.31}
+BuildRequires:  %{python_module numba >= %{version}}
+BuildRequires:  %{python_module numba-devel >= %{version}}
 BuildRequires:  %{python_module numpy-devel >= 1.11}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module scipy >= 0.16}
-BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module tbb}
+%endif
+BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module numpy-devel >= 1.11}
+BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
-BuildRequires:  python-funcsigs
 BuildRequires:  python-rpm-macros
 BuildRequires:  tbb-devel
 Requires:       python-llvmlite >= 0.31
@@ -87,26 +100,45 @@
 %autopatch -p1
 sed -i '1{\@^#!%{_bindir}/env python@d}' numba/appdirs.py
 
+# due to new numpy version tests now fail
+# Remove this with version update! (>0.48.0)
+# https://github.com/numba/numba/issues/5251
+rm numba/tests/test_np_functions.py
+rm numba/tests/test_ufuncs.py
+rm numba/tests/test_array_manipulation.py
+rm numba/tests/test_array_reductions.py
+# https://github.com/numba/numba/issues/5179
+rm numba/tests/test_hashing.py
+# timeouts randomly in OBS
+rm numba/tests/test_typedlist.py
+# as we reduced the amount of tests:
+sed -i -e 's:5000:3000:' numba/tests/test_runtests.py
+
 %build
 export CFLAGS="%{optflags} -fPIC"
 %python_build
 
 %install
+%if !%{with test}
 %python_install
 %python_expand %fdupes %{buildroot}%{$python_sitearch}
 
 %python_clone -a %{buildroot}%{_bindir}/numba
 %python_clone -a %{buildroot}%{_bindir}/pycc
+%endif
 
 %check
+%if %{with test}
 mv numba numba_temp
 export NUMBA_PARALLEL_DIAGNOSTICS=1
-%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
-%{buildroot}%{_bindir}/numba-%{$python_bin_suffix} -s
+%{python_expand export PYTHONPATH=%{$python_sitearch}
+%{_bindir}/numba-%{$python_bin_suffix} -s
 $python -m numba.runtests -v -b --exclude-tags='long_running' -m 
%{_smp_build_ncpus} -- numba.tests
 }
 mv numba_temp numba
+%endif
 
+%if !%{with test}
 %post
 %{python_install_alternative numba pycc}
 
@@ -130,5 +162,6 @@
 %{python_sitearch}/numba/*.h
 %{python_sitearch}/numba/*/*.c
 %{python_sitearch}/numba/*/*.h
+%endif
 
 %changelog

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

Reply via email to