Hello community, here is the log from the commit of package python-numpy for openSUSE:Factory checked in at 2019-03-27 16:13:28 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-numpy (Old) and /work/SRC/openSUSE:Factory/.python-numpy.new.25356 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-numpy" Wed Mar 27 16:13:28 2019 rev:77 rq:688183 version:1.16.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-numpy/python-numpy.changes 2019-03-22 14:54:11.718066727 +0100 +++ /work/SRC/openSUSE:Factory/.python-numpy.new.25356/python-numpy.changes 2019-03-27 16:13:31.563635066 +0100 @@ -1,0 +2,5 @@ +Mon Mar 25 10:20:50 UTC 2019 - Thomas Bechtold <tbecht...@suse.com> + +- add fix-py34-tests.patch to fix build with python3.4 from SLE12SP4 + +------------------------------------------------------------------- New: ---- fix-py34-tests.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-numpy.spec ++++++ --- /var/tmp/diff_new_pack.qm5m1B/_old 2019-03-27 16:13:32.191634905 +0100 +++ /var/tmp/diff_new_pack.qm5m1B/_new 2019-03-27 16:13:32.195634904 +0100 @@ -91,6 +91,8 @@ Patch1: numpy-1.9.0-remove-__declspec.patch # PATCH-FIX-UPSTREAM riscv.patch -- Add support for RISC-V Patch2: riscv.patch +# # PATCH-FIX-SLE fix-py34-tests.patch -- python 3.4 support +Patch3: fix-py34-tests.patch %if 0%{?suse_version} BuildRequires: fdupes %endif @@ -165,6 +167,7 @@ %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 # Fix non-executable scripts sed -i '1s/^#!.*$//' numpy/{compat/setup,distutils/{conv_template,cpuinfo,exec_command,from_template,setup,system_info},f2py/{__init__,auxfuncs,capi_maps,cb_rules,cfuncs,common_rules,crackfortran,diagnose,f2py2e,f90mod_rules,func2subr,rules,setup,use_rules},ma/{setup,bench},matrixlib/setup,setup,testing/{print_coercion_tables,setup}}.py ++++++ fix-py34-tests.patch ++++++ Index: numpy-1.16.2/numpy/lib/tests/test_mixins.py =================================================================== --- numpy-1.16.2.orig/numpy/lib/tests/test_mixins.py +++ numpy-1.16.2/numpy/lib/tests/test_mixins.py @@ -7,6 +7,7 @@ import sys import numpy as np from numpy.testing import assert_, assert_equal, assert_raises +import pytest PY2 = sys.version_info.major < 3 @@ -199,6 +200,7 @@ class TestNDArrayOperatorsMixin(object): err_msg = 'failed for operator {}'.format(op) _assert_equal_type_and_value(expected, actual, err_msg=err_msg) + @pytest.mark.skipif(sys.version_info < (3, 5), reason="requires python >= 3.5") def test_matmul(self): array = np.array([1, 2], dtype=np.float64) array_like = ArrayLike(array)