Hello community,
here is the log from the commit of package python-h5py for openSUSE:Factory checked in at 2020-11-29 12:30:19
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-h5py (Old)
and /work/SRC/openSUSE:Factory/.python-h5py.new.5913 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-h5py"
Sun Nov 29 12:30:19 2020 rev:16 rq:851345 version:3.1.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-h5py/python-h5py.changes 2020-05-11 13:45:01.693587316 +0200
+++ /work/SRC/openSUSE:Factory/.python-h5py.new.5913/python-h5py.changes 2020-11-29 12:30:28.802126691 +0100
@@ -1,0 +2,23 @@
+Thu Nov 26 14:55:53 UTC 2020 - Atri Bhattacharya
+
+- Update to version 3.1.0:
+ * See https://docs.h5py.org/en/latest/whatsnew/3.1.html for list
+ of changes.
+- Changes from version 3.0.0: See
+ https://docs.h5py.org/en/latest/whatsnew/3.0.html
+- Drop upstreamed patches:
+ * remove_unittest2.patch.
+ * no_include_opt.patch.
+- Add python-h5py-relax-dependency-versions.patch to allow building
+ against more recent versions of numpy than minimally required.
+- Python 2 is no longer supported; at least version 3.6 is
+ required.
+- Run all tests except:
+ * MPI based ones, as we build against the non-mpi version of
+ hdf5.
+ * Offset test which overflows on 32-bit.
+- Tests require python-cached-property for openSUSE <= 1500.
+- Fix `requires_eq` on libhdf5 (oS:F now has libhdf_hl103)
+ already.
+
+-------------------------------------------------------------------
Old:
----
h5py-2.10.0.tar.gz
no_include_opt.patch
remove_unittest2.patch
New:
----
h5py-3.1.0.tar.gz
python-h5py-relax-dependency-versions.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-h5py.spec ++++++
--- /var/tmp/diff_new_pack.oYR20j/_old 2020-11-29 12:30:29.310127205 +0100
+++ /var/tmp/diff_new_pack.oYR20j/_new 2020-11-29 12:30:29.314127209 +0100
@@ -17,21 +17,20 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define skip_python2 1
Name: python-h5py
-Version: 2.10.0
+Version: 3.1.0
Release: 0
Summary: Python interface to the Hierarchical Data Format library
License: BSD-3-Clause
Group: Development/Libraries/Python
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 mcepl@suse.cz -- remove dependency unittest2
-Patch1: remove_unittest2.patch
+# PATCH-FEATURE-OPENSUSE python-h5py-relax-dependency-versions.patch badshah400@gmail.com -- Build against newer version of numpy
+Patch0: python-h5py-relax-dependency-versions.patch
BuildRequires: %{python_module Cython >= 0.23}
BuildRequires: %{python_module devel}
-BuildRequires: %{python_module numpy-devel >= 1.7}
+BuildRequires: %{python_module numpy-devel >= 1.12}
BuildRequires: %{python_module pkgconfig}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
@@ -40,9 +39,12 @@
BuildRequires: hdf5-devel
BuildRequires: python-rpm-macros
Requires: hdf5
-Requires: python-numpy >= 1.7
+Requires: python-numpy >= 1.12
Requires: python-six
-%requires_eq libhdf5_hl100
+%requires_eq libhdf5
+%if 0%{?suse_version} <= 1500
+BuildRequires: %{python_module cached-property}
+%endif
%python_subpackages
%description
@@ -53,8 +55,7 @@
metaphor, indexed by name.
%prep
-%setup -q -n h5py-%{version}
-%autopatch -p1
+%autosetup -p1 -n h5py-%{version}
%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
@@ -65,14 +66,16 @@
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
-export PYTHONDONTWRITEBYTECODE=1
-# test_float_round_tripping -- overflows on 32bit
-# py3 only code must be skipped
-%pytest_arch %{buildroot}%{$python_sitearch}/h5py/tests/ -k 'not (test_highlevel_access or test_deprecation_available_ftypes or test_read_uncompressed_offsets or test_read_write_chunk or test_float_round_tripping)'
+# Offset test fails on 32-bit and we don't build against mpi-hdf5
+%ifarch %{ix86}
+%pytest_arch %{buildroot}%{$python_sitearch}/h5py/tests/ -k 'not (TestMPI or test_float_round_tripping)'
+%else
+%pytest_arch %{buildroot}%{$python_sitearch}/h5py/tests/ -k 'not TestMPI'
+%endif
%files %{python_files}
%license lzf/LICENSE.txt
-%doc ANN.rst README.rst lzf/README.txt examples licenses/*
+%doc README.rst lzf/README.txt examples licenses/*
%{python_sitearch}/h5py/
%{python_sitearch}/h5py-%{version}-py*.egg-info
++++++ h5py-2.10.0.tar.gz -> h5py-3.1.0.tar.gz ++++++
++++ 18977 lines of diff (skipped)
++++++ python-h5py-relax-dependency-versions.patch ++++++
Index: h5py-3.1.0/setup.py
===================================================================
--- h5py-3.1.0.orig/setup.py
+++ h5py-3.1.0/setup.py
@@ -49,14 +49,14 @@ SETUP_REQUIRES = [
f"Cython >=0.29; python_version<'3.8'",
f"Cython >=0.29.14; python_version>='3.8'",
] + [
- f"numpy =={np_min}; python_version{py_condition}"
+ f"numpy >={np_min}; python_version{py_condition}"
for np_min, py_condition in NUMPY_MIN_VERSIONS
]
if setup_configure.mpi_enabled():
RUN_REQUIRES.append('mpi4py >=3.0.0')
- SETUP_REQUIRES.append("mpi4py ==3.0.0; python_version<'3.8'")
- SETUP_REQUIRES.append("mpi4py ==3.0.3; python_version>='3.8'")
+ SETUP_REQUIRES.append("mpi4py >=3.0.0; python_version<'3.8'")
+ SETUP_REQUIRES.append("mpi4py >=3.0.3; python_version>='3.8'")
# Set the environment variable H5PY_SETUP_REQUIRES=0 if we need to skip
# setup_requires for any reason.