Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-h5netcdf for openSUSE:Factory checked in at 2022-08-09 15:43:47 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-h5netcdf (Old) and /work/SRC/openSUSE:Factory/.python-h5netcdf.new.1521 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-h5netcdf" Tue Aug 9 15:43:47 2022 rev:6 rq:994143 version:1.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-h5netcdf/python-h5netcdf.changes 2022-08-01 21:33:18.714157889 +0200 +++ /work/SRC/openSUSE:Factory/.python-h5netcdf.new.1521/python-h5netcdf.changes 2022-08-09 15:43:50.436272948 +0200 @@ -1,0 +2,7 @@ +Tue Aug 2 12:08:07 UTC 2022 - Matej Cepl <mc...@suse.com> + +- Update to 1.0.2: + - Adapt boolean indexing as h5py 3.7.0 + - Fix several tests to work with new h5py 3.7.0 + +------------------------------------------------------------------- Old: ---- h5netcdf-1.0.1.tar.gz New: ---- h5netcdf-1.0.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-h5netcdf.spec ++++++ --- /var/tmp/diff_new_pack.mYJSeB/_old 2022-08-09 15:43:50.872274184 +0200 +++ /var/tmp/diff_new_pack.mYJSeB/_new 2022-08-09 15:43:50.876274196 +0200 @@ -20,7 +20,7 @@ %define skip_python2 1 %define skip_python36 1 Name: python-h5netcdf -Version: 1.0.1 +Version: 1.0.2 Release: 0 Summary: A Python library to use netCDF4 files via h5py License: BSD-3-Clause @@ -57,8 +57,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -# gh#h5netcdf/h5netcdf#179 -%pytest -rs -k 'not (test_more_than_7_attr_creation_track_order or test_bool_slicing_length_one_dim)' +%pytest -rs %files %{python_files} %doc README.rst ++++++ h5netcdf-1.0.1.tar.gz -> h5netcdf-1.0.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/h5netcdf-1.0.1/CHANGELOG.rst new/h5netcdf-1.0.2/CHANGELOG.rst --- old/h5netcdf-1.0.1/CHANGELOG.rst 2022-06-27 09:26:03.000000000 +0200 +++ new/h5netcdf-1.0.2/CHANGELOG.rst 2022-08-02 11:33:39.000000000 +0200 @@ -1,5 +1,11 @@ Change Log ---------- +Version 1.0.2 (August 2nd, 2022): + +- Adapt boolean indexing as h5py 3.7.0 started supporting it. + By `Kai M??hlbauer <https://github.com/kmuehlbauer>`_. +- Fix several tests to work with new h5py 3.7.0. + By `Mark Harfouche <https://github.com/hmaarrfk>`_ and `Kai M??hlbauer <https://github.com/kmuehlbauer>`_. Version 1.0.1 (June 27th, 2022): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/h5netcdf-1.0.1/PKG-INFO new/h5netcdf-1.0.2/PKG-INFO --- old/h5netcdf-1.0.1/PKG-INFO 2022-06-27 09:26:19.558160000 +0200 +++ new/h5netcdf-1.0.2/PKG-INFO 2022-08-02 11:34:00.711885000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: h5netcdf -Version: 1.0.1 +Version: 1.0.2 Summary: netCDF4 via h5py Home-page: https://h5netcdf.org Author: h5netcdf developers diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/h5netcdf-1.0.1/doc/devguide.rst new/h5netcdf-1.0.2/doc/devguide.rst --- old/h5netcdf-1.0.1/doc/devguide.rst 2022-06-27 09:26:03.000000000 +0200 +++ new/h5netcdf-1.0.2/doc/devguide.rst 2022-08-02 11:33:39.000000000 +0200 @@ -11,6 +11,7 @@ ------------ - `Aleksandar Jelenak <https://github.com/ajelenak>`_ +- `Bas Couwenberg <https://github.com/sebastic>`_. - `Brett Naul <https://github.com/bnaul>`_ - `Dion H??fner <https://github.com/dionhaefner>`_ - `Drew Parsons <https://github.com/drew-parsons>`_ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/h5netcdf-1.0.1/doc/feature.rst new/h5netcdf-1.0.2/doc/feature.rst --- old/h5netcdf-1.0.1/doc/feature.rst 2022-06-27 09:26:03.000000000 +0200 +++ new/h5netcdf-1.0.2/doc/feature.rst 2022-08-02 11:33:39.000000000 +0200 @@ -14,7 +14,7 @@ +---------------------+-------------------------+----------------+------------------+ | feature | legacyapi | new api | type | +=====================+=========================+================+==================+ -| 1D boolean indexer | |check| | |cross| | Variable/Dataset | +| 1D boolean indexer | |check| | |check| | Variable/Dataset | +---------------------+-------------------------+----------------+------------------+ | resize on write | |check| | |cross| | Dimension | | | | | Variable/Dataset | diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/h5netcdf-1.0.1/doc/index.rst new/h5netcdf-1.0.2/doc/index.rst --- old/h5netcdf-1.0.1/doc/index.rst 2022-06-27 09:26:03.000000000 +0200 +++ new/h5netcdf-1.0.2/doc/index.rst 2022-08-02 11:33:39.000000000 +0200 @@ -50,7 +50,7 @@ `xarray issue tracker`_ only one day later. The library evolved constantly over the years (fixing bugs and adding enhancements) -and gained contributions from 14 other :ref:`contributors` so far. The library is widely used, +and gained contributions from 15 other :ref:`contributors` so far. The library is widely used, especially as backend within `xarray`_. Early 2020 Kai M??hlbauer started to add contributions and after some time he volunteered diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/h5netcdf-1.0.1/h5netcdf/_version.py new/h5netcdf-1.0.2/h5netcdf/_version.py --- old/h5netcdf-1.0.1/h5netcdf/_version.py 2022-06-27 09:26:18.000000000 +0200 +++ new/h5netcdf-1.0.2/h5netcdf/_version.py 2022-08-02 11:34:00.000000000 +0200 @@ -1,5 +1,5 @@ # coding: utf-8 # file generated by setuptools_scm # don't change, don't track in version control -__version__ = version = '1.0.1' -__version_tuple__ = version_tuple = (1, 0, 1) +__version__ = version = '1.0.2' +__version_tuple__ = version_tuple = (1, 0, 2) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/h5netcdf-1.0.1/h5netcdf/core.py new/h5netcdf-1.0.2/h5netcdf/core.py --- old/h5netcdf-1.0.1/h5netcdf/core.py 2022-06-27 09:26:03.000000000 +0200 +++ new/h5netcdf-1.0.2/h5netcdf/core.py 2022-08-02 11:33:39.000000000 +0200 @@ -280,7 +280,12 @@ if isinstance(self._parent._root, Dataset): # this is only for legacyapi key = _expanded_indexer(key, self.ndim) - key = _transform_1d_boolean_indexers(key) + # fix boolean indexing for affected versions + # https://github.com/h5py/h5py/pull/2079 + # https://github.com/h5netcdf/h5netcdf/pull/125/ + h5py_version = version.parse(h5py.__version__) + if version.parse("3.0.0") <= h5py_version < version.parse("3.7.0"): + key = _transform_1d_boolean_indexers(key) if getattr(self._root, "decode_vlen_strings", False): string_info = self._root._h5py.check_string_dtype(self._h5ds.dtype) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/h5netcdf-1.0.1/h5netcdf/tests/test_h5netcdf.py new/h5netcdf-1.0.2/h5netcdf/tests/test_h5netcdf.py --- old/h5netcdf-1.0.1/h5netcdf/tests/test_h5netcdf.py 2022-06-27 09:26:03.000000000 +0200 +++ new/h5netcdf-1.0.2/h5netcdf/tests/test_h5netcdf.py 2022-08-02 11:33:39.000000000 +0200 @@ -1600,7 +1600,8 @@ # https://github.com/h5netcdf/h5netcdf/issues/136#issuecomment-1017457067 @pytest.mark.parametrize("track_order", [False, True]) def test_more_than_7_attr_creation_track_order(tmp_local_netcdf, track_order): - if track_order: + h5py_version = version.parse(h5py.__version__) + if track_order and h5py_version < version.parse("3.7.0"): expected_errors = pytest.raises(KeyError) else: # We don't expect any errors. This is effectively a void context manager @@ -1695,9 +1696,12 @@ data = ds["hello"][bool_slice, :] np.testing.assert_equal(data, np.zeros((1, 2))) - # should raise for h5py >= 3.0.0 + # should raise for h5py >= 3.0.0 and h5py < 3.7.0 + # https://github.com/h5py/h5py/pull/2079 + # https://github.com/h5netcdf/h5netcdf/pull/125/ with h5netcdf.File(tmp_local_netcdf, "r") as ds: - if version.parse(h5py.__version__) >= version.parse("3.0.0"): + h5py_version = version.parse(h5py.__version__) + if version.parse("3.0.0") <= h5py_version < version.parse("3.7.0"): error = "Indexing arrays must have integer dtypes" with pytest.raises(TypeError) as e: ds["hello"][bool_slice, :] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/h5netcdf-1.0.1/h5netcdf.egg-info/PKG-INFO new/h5netcdf-1.0.2/h5netcdf.egg-info/PKG-INFO --- old/h5netcdf-1.0.1/h5netcdf.egg-info/PKG-INFO 2022-06-27 09:26:19.000000000 +0200 +++ new/h5netcdf-1.0.2/h5netcdf.egg-info/PKG-INFO 2022-08-02 11:34:00.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: h5netcdf -Version: 1.0.1 +Version: 1.0.2 Summary: netCDF4 via h5py Home-page: https://h5netcdf.org Author: h5netcdf developers