Hello community, here is the log from the commit of package python-h5py for openSUSE:Factory checked in at 2018-10-12 13:11:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-h5py (Old) and /work/SRC/openSUSE:Factory/.python-h5py.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-h5py" Fri Oct 12 13:11:44 2018 rev:9 rq:641325 version:2.8.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-h5py/python-h5py.changes 2018-08-15 10:36:23.884073292 +0200 +++ /work/SRC/openSUSE:Factory/.python-h5py.new/python-h5py.changes 2018-10-12 13:11:44.635210258 +0200 @@ -1,0 +2,10 @@ +Thu Oct 11 16:34:58 UTC 2018 - Todd R <[email protected]> + +- Fix ldconfig syntax errors. + +------------------------------------------------------------------- +Wed Oct 10 14:05:08 UTC 2018 - Matěj Cepl <[email protected]> + +- Add valuerror-typerror-failing-tests.patch to make two tests pass. + +------------------------------------------------------------------- New: ---- valuerror-typerror-failing-tests.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-h5py.spec ++++++ --- /var/tmp/diff_new_pack.YKIbls/_old 2018-10-12 13:11:45.203209452 +0200 +++ /var/tmp/diff_new_pack.YKIbls/_new 2018-10-12 13:11:45.203209452 +0200 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -24,12 +24,15 @@ Summary: Python interface to the Hierarchical Data Format library License: BSD-3-Clause Group: Development/Libraries/Python -Url: https://github.com/h5py/h5py +URL: https://github.com/h5py/h5py Source: https://files.pythonhosted.org/packages/source/h/h5py/h5py-%{version}.tar.gz #PATCH-FIX-OPENSUSE no_include_opt.patch -- Don't include /opt/ directory. Patch0: no_include_opt.patch #PATCH-FIX-OPENSUSE remove_unittest2.patch [email protected] -- remove dependency unittest2 Patch1: remove_unittest2.patch +#PATCH-FIX-UPSTREAM valuerror-typerror-failing-tests.patch [email protected] +# https://github.com/h5py/h5py/issues/1088 +Patch2: valuerror-typerror-failing-tests.patch BuildRequires: %{python_module Cython >= 0.23} BuildRequires: %{python_module devel} BuildRequires: %{python_module numpy-devel >= 1.7} @@ -42,7 +45,6 @@ Requires: hdf5 Requires: python-numpy >= 1.7 Requires: python-six - %python_subpackages %description @@ -54,8 +56,7 @@ %prep %setup -q -n h5py-%{version} -%patch0 -p1 -%patch1 -p1 +%autopatch -p1 %build export CFLAGS="%{optflags} -fno-strict-aliasing" @@ -78,8 +79,8 @@ /sbin/ldconfig %files %{python_files} -%defattr(-,root,root) -%doc ANN.rst README.rst lzf/LICENSE.txt lzf/README.txt examples licenses/* +%license lzf/LICENSE.txt +%doc ANN.rst README.rst lzf/README.txt examples licenses/* %{python_sitearch}/h5py/ %{python_sitearch}/h5py-%{version}-py*.egg-info ++++++ valuerror-typerror-failing-tests.patch ++++++ --- a/h5py/tests/hl/test_dataset_swmr.py +++ b/h5py/tests/hl/test_dataset_swmr.py @@ -71,7 +71,7 @@ class TestDatasetSwmrRead(TestCase): def test_force_swmr_mode_on_raises(self): """ Verify when reading a file cannot be forcibly switched to swmr mode. When reading with SWMR the file must be opened with swmr=True.""" - with self.assertRaises(ValueError): + with self.assertRaises((ValueError, TypeError)): self.f.swmr_mode = True self.assertTrue(self.f.swmr_mode) --- a/h5py/tests/old/test_group.py +++ b/h5py/tests/old/test_group.py @@ -298,7 +298,7 @@ class TestLen(BaseMapping): def test_exc(self): """ len() on closed group gives ValueError """ self.f.close() - with self.assertRaises(ValueError): + with self.assertRaises((ValueError, TypeError)): len(self.f) class TestContains(BaseGroup):
