forked from pool/python-xarray
- 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:
committed by
Git OBS Bridge
parent
a3858e8c38
commit
18833ec076
@@ -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
|
||||
%define skip_python36 1
|
||||
Name: python-xarray
|
||||
Version: 0.18.1
|
||||
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-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-devel >= 1.14}
|
||||
BuildRequires: %{python_module pandas >= 0.25}
|
||||
@@ -82,7 +80,6 @@ The dataset is an in-memory representation of a netCDF file.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n xarray-%{version}
|
||||
%patch0 -p1
|
||||
chmod -x xarray/util/print_versions.py
|
||||
|
||||
%build
|
||||
@@ -95,7 +92,8 @@ chmod -x xarray/util/print_versions.py
|
||||
%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
|
||||
|
||||
|
Reference in New Issue
Block a user