Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-xarray for openSUSE:Factory checked in at 2021-06-01 10:35:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-xarray (Old) and /work/SRC/openSUSE:Factory/.python-xarray.new.1898 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "python-xarray" Tue Jun 1 10:35:00 2021 rev:27 rq:895658 version:0.18.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-xarray/python-xarray.changes 2021-05-16 23:44:16.353102581 +0200 +++ /work/SRC/openSUSE:Factory/.python-xarray.new.1898/python-xarray.changes 2021-06-01 10:35:26.824607245 +0200 @@ -1,0 +2,69 @@ +Tue May 25 17:25:46 UTC 2021 - Matej Cepl <mcepl@suse.com> + +- Add local_dataset.patch allowing the use of the cached datasets + (gh#pydata/xarray#5377). +- Add scipy-interpolate.patch adding a missing import + scipy.interpolate to test_interp.py (gh#pydata/xarray#5375). +- Add test_resample_loffset.patch to fix test_resample_loffset + test (gh#pydata/xarray#5364). + +------------------------------------------------------------------- +Thu May 20 11:58:50 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at> + +- update to version 0.18.2: + - This release reverts a regression in xarray's unstacking of dask-backed arrays.: +- remove fix_test_resample_loffset.patch, doesn't work + +------------------------------------------------------------------- +Wed May 19 13:53:54 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at> + +- add fix_test_resample_loffset.patch to fix test fail on i586 + https://github.com/pydata/xarray/issues/5341 + +------------------------------------------------------------------- +Wed May 19 07:26:03 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at> + +- update to version 0.18.1: + - This release is intended as a small patch release to be compatible with the new: +2021.5.0 ``dask.distributed`` release. It also includes a new +``drop_duplicates`` method, some documentation improvements, the beginnings of + - our internal Index refactoring, and some bug fixes.: + - Thank you to all 16 contributors!: + - Anderson Banihirwe, Andrew, Benoit Bovy, Brewster Malevich, Giacomo Caria,: + - Illviljan, James Bourbeau, Keewis, Maximilian Roos, Ravin Kumar, Stephan Hoyer,: + - Thomas Nicholas, Tom Nicholas, Zachary Moon.: + - New Features: + - Implement :py:meth:`DataArray.drop_duplicates` + to remove duplicate dimension values (:pull:`5239`). + By `Andrew Huang <https://github.com/ahuang11>`_. + - Allow passing ``combine_attrs`` strategy names to the ``keep_attrs`` parameter of + :py:func:`apply_ufunc` (:pull:`5041`) + By `Justus Magin <https://github.com/keewis>`_. + - :py:meth:`Dataset.interp` now allows interpolation with non-numerical datatypes, + such as booleans, instead of dropping them. (:issue:`4761` :pull:`5008`). + By `Jimmy Westling <https://github.com/illviljan>`_. + - Raise more informative error when decoding time variables with invalid reference dates. + (:issue:`5199`, :pull:`5288`). By `Giacomo Caria <https://github.com/gcaria>`_. + - Bug fixes: + - Opening netCDF files from a path that doesn't end in ``.nc`` without supplying + an explicit ``engine`` works again (:issue:`5295`), fixing a bug introduced in + 0.18.0. + By `Stephan Hoyer <https://github.com/shoyer>`_ + - Documentation: + - Clean up and enhance docstrings for the :py:class:`DataArray.plot` and ``Dataset.plot.*`` + families of methods (:pull:`5285`). + By `Zach Moon <https://github.com/zmoon>`_. + - Explanation of deprecation cycles and how to implement them added to contributors + guide. (:pull:`5289`) + By `Tom Nicholas <https://github.com/TomNicholas>`_. + - Internal Changes: + - Explicit indexes refactor: add an ``xarray.Index`` base class and + ``Dataset.xindexes`` / ``DataArray.xindexes`` properties. Also rename + ``PandasIndexAdapter`` to ``PandasIndex``, which now inherits from + ``xarray.Index`` (:pull:`5102`). + By `Benoit Bovy <https://github.com/benbovy>`_. + - Updated the release guide for developers. Now accounts for actions that are automated via github + actions. (:pull:`5274`). + By `Tom Nicholas <https://github.com/TomNicholas>`_. + +------------------------------------------------------------------- Old: ---- xarray-0.18.0.tar.gz New: ---- local_dataset.patch scipy-interpolate.patch test_resample_loffset.patch xarray-0.18.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-xarray.spec ++++++ --- /var/tmp/diff_new_pack.JGlR26/_old 2021-06-01 10:35:27.624608607 +0200 +++ /var/tmp/diff_new_pack.JGlR26/_new 2021-06-01 10:35:27.624608607 +0200 @@ -21,12 +21,21 @@ # NEP 29: Numpy 1.20 dropped support for Python 3.6, python36-numpy is removed from Tumbleweed. xarray will follow on next release %define skip_python36 1 Name: python-xarray -Version: 0.18.0 +Version: 0.18.2 Release: 0 Summary: N-D labeled arrays and datasets in Python License: Apache-2.0 URL: https://github.com/pydata/xarray Source: https://files.pythonhosted.org/packages/source/x/xarray/xarray-%{version}.tar.gz +# PATCH-FEATURE-UPSTREAM local_dataset.patch gh#pydata/xarray#5377 mcepl@suse.com +# fix xr.tutorial.open_dataset to work with the preloaded cache. +Patch0: local_dataset.patch +# PATCH-FIX-UPSTREAM scipy-interpolate.patch gh#pydata/xarray#5375 mcepl@suse.com +# Add missing import scipy.interpolate +Patch1: scipy-interpolate.patch +# PATCH-FIX-UPSTREAM test_resample_loffset.patch gh#pydata/xarray#5364 mcepl@suse.com +# use assert_allclose in test_resample_loffset test +Patch2: test_resample_loffset.patch BuildRequires: %{python_module numpy >= 1.15} BuildRequires: %{python_module numpy-devel >= 1.14} BuildRequires: %{python_module pandas >= 0.25} @@ -63,6 +72,7 @@ #/SECTION # SECTION tests BuildRequires: %{python_module dask-dataframe} +BuildRequires: %{python_module pooch} BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest} BuildRequires: %{python_module scipy} @@ -80,6 +90,7 @@ %prep %autosetup -p1 -n xarray-%{version} + chmod -x xarray/util/print_versions.py %build @@ -92,7 +103,8 @@ %check if [ $(getconf LONG_BIT) -eq 32 ]; then # precision errors on 32-bit - donttest="(test_interpolate_chunk_advanced and linear)" + # for test_resample_loffset: https://github.com/pydata/xarray/issues/5341 + donttest="((test_interpolate_chunk_advanced or test_resample_loffset) and linear)" fi %pytest -n auto ${donttest:+ -k "not ($donttest)"} xarray ++++++ local_dataset.patch ++++++ --- xarray/tutorial.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/xarray/tutorial.py +++ b/xarray/tutorial.py @@ -139,7 +139,10 @@ def open_dataset( url = f"{base_url}/raw/{version}/{path.name}" # retrieve the file - filepath = pooch.retrieve(url=url, known_hash=None, path=cache_dir) + fname = pathlib.Path(cache_dir, path).expanduser() + if not fname.exists(): + fname = None + filepath = pooch.retrieve(url=url, fname=fname, known_hash=None, path=cache_dir) ds = _open_dataset(filepath, engine=engine, **kws) if not cache: ds = ds.load() ++++++ scipy-interpolate.patch ++++++ --- xarray/tests/test_interp.py | 1 + 1 file changed, 1 insertion(+) --- a/xarray/tests/test_interp.py +++ b/xarray/tests/test_interp.py @@ -20,6 +20,7 @@ from .test_dataset import create_test_da try: import scipy + import scipy.interpolate except ImportError: pass ++++++ test_resample_loffset.patch ++++++ --- xarray/tests/test_dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/xarray/tests/test_dataset.py +++ b/xarray/tests/test_dataset.py @@ -3988,7 +3988,7 @@ class TestDataset: expected_ = ds.bar.to_series().resample("24H").mean() expected_.index += to_offset("-12H") expected = DataArray.from_series(expected_) - assert_identical(actual, expected) + assert_allclose(actual, expected) def test_resample_by_mean_discarding_attrs(self): times = pd.date_range("2000-01-01", freq="6H", periods=10) ++++++ xarray-0.18.0.tar.gz -> xarray-0.18.2.tar.gz ++++++ ++++ 7523 lines of diff (skipped)