- 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

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=52
This commit is contained in:
Sebastian Wagner 2021-05-21 15:59:35 +00:00 committed by Git OBS Bridge
parent a3858e8c38
commit 18833ec076
5 changed files with 13 additions and 19 deletions

View File

@ -1,11 +0,0 @@
--- xarray-0.18.1/xarray/tests/test_dataset.py 2021-05-19 15:51:40.453553119 +0200
+++ xarray-0.18.1/xarray/tests/test_dataset.py 2021-05-19 15:52:03.669706686 +0200
@@ -3988,7 +3988,7 @@
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)

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
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> Wed May 19 13:53:54 UTC 2021 - Sebastian Wagner <sebix+novell.com@sebix.at>

View File

@ -21,14 +21,12 @@
# NEP 29: Numpy 1.20 dropped support for Python 3.6, python36-numpy is removed from Tumbleweed. xarray will follow on next release # 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 %define skip_python36 1
Name: python-xarray Name: python-xarray
Version: 0.18.1 Version: 0.18.2
Release: 0 Release: 0
Summary: N-D labeled arrays and datasets in Python Summary: N-D labeled arrays and datasets in Python
License: Apache-2.0 License: Apache-2.0
URL: https://github.com/pydata/xarray URL: https://github.com/pydata/xarray
Source: https://files.pythonhosted.org/packages/source/x/xarray/xarray-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/x/xarray/xarray-%{version}.tar.gz
# PATCH-FIX-UPSTREAM fix_test_resample_loffset -- https://github.com/pydata/xarray/issues/5341
Patch0: fix_test_resample_loffset.patch
BuildRequires: %{python_module numpy >= 1.15} BuildRequires: %{python_module numpy >= 1.15}
BuildRequires: %{python_module numpy-devel >= 1.14} BuildRequires: %{python_module numpy-devel >= 1.14}
BuildRequires: %{python_module pandas >= 0.25} BuildRequires: %{python_module pandas >= 0.25}
@ -82,7 +80,6 @@ The dataset is an in-memory representation of a netCDF file.
%prep %prep
%autosetup -p1 -n xarray-%{version} %autosetup -p1 -n xarray-%{version}
%patch0 -p1
chmod -x xarray/util/print_versions.py chmod -x xarray/util/print_versions.py
%build %build
@ -95,7 +92,8 @@ chmod -x xarray/util/print_versions.py
%check %check
if [ $(getconf LONG_BIT) -eq 32 ]; then if [ $(getconf LONG_BIT) -eq 32 ]; then
# precision errors on 32-bit # 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 fi
%pytest -n auto ${donttest:+ -k "not ($donttest)"} xarray %pytest -n auto ${donttest:+ -k "not ($donttest)"} xarray

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:47177fbd76d656852f742d2d8e97e9dfc97b68a91d03dd26ca5475319fc8d859
size 2849935

3
xarray-0.18.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5d2e72a228286fcf60f66e16876bd27629a1a70bf64822c565f16515c4d10284
size 2850065