commit python-nibabel for openSUSE:Factory
Hello community, here is the log from the commit of package python-nibabel for openSUSE:Factory checked in at 2019-07-30 12:39:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-nibabel (Old) and /work/SRC/openSUSE:Factory/.python-nibabel.new.4126 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-nibabel" Tue Jul 30 12:39:09 2019 rev:2 rq:719706 version:2.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-nibabel/python-nibabel.changes 2019-07-28 10:22:01.592568758 +0200 +++ /work/SRC/openSUSE:Factory/.python-nibabel.new.4126/python-nibabel.changes 2019-07-30 12:39:15.166935099 +0200 @@ -1,0 +2,6 @@ +Mon Jul 29 18:56:10 UTC 2019 - Todd R <toddrme2178@gmail.com> + +- Add fix_numpy_1_17.patch to fix building with numpy 1.17.0 + From: gh#/nipy/nibabel#768 + +------------------------------------------------------------------- New: ---- fix_numpy_1_17.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-nibabel.spec ++++++ --- /var/tmp/diff_new_pack.xn8MQZ/_old 2019-07-30 12:39:20.266934252 +0200 +++ /var/tmp/diff_new_pack.xn8MQZ/_new 2019-07-30 12:39:20.266934252 +0200 @@ -24,6 +24,8 @@ Url: http://nipy.org/nibabel Group: Development/Languages/Python Source: https://files.pythonhosted.org/packages/source/n/nibabel/nibabel-%{version}.tar.gz +# PATCH-FIX-UPSTREAM fix_numpy_1_17.patch gh#/nipy/nibabel#768 +Patch1: fix_numpy_1_17.patch BuildRequires: %{python_module setuptools >= 30.3.0} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -54,6 +56,7 @@ %prep %setup -q -n nibabel-%{version} +%patch1 -p1 %build %python_build ++++++ fix_numpy_1_17.patch ++++++
From 86b4fbedfb6919fab4e3ffe21536c5df2633c57b Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" <markiewicz@stanford.edu> Date: Sat, 15 Jun 2019 14:28:04 +0200 Subject: [PATCH] FIX/TEST: Numpy casting rules have gotten more strict, raise different exception
--- nibabel/tests/test_volumeutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nibabel/tests/test_volumeutils.py b/nibabel/tests/test_volumeutils.py index 06df9eb6a..fcdc5c271 100644 --- a/nibabel/tests/test_volumeutils.py +++ b/nibabel/tests/test_volumeutils.py @@ -700,7 +700,7 @@ def test_a2f_non_numeric(): # Some versions of numpy can cast structured types to float, others not try: arr.astype(float) - except ValueError: + except (TypeError, ValueError): pass else: back_arr = write_return(arr, fobj, float)
participants (1)
-
root