Accepting request 895529 from home:mcepl:branches:devel:languages:python:numeric

- 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).

OBS-URL: https://build.opensuse.org/request/show/895529
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=53
This commit is contained in:
2021-05-27 06:19:25 +00:00
committed by Git OBS Bridge
parent f6886260f7
commit 3be3fa1151
5 changed files with 68 additions and 0 deletions

View File

@@ -27,6 +27,15 @@ 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 @@ Suggests: python-cfgrib
#/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 @@ The dataset is an in-memory representation of a netCDF file.
%prep
%autosetup -p1 -n xarray-%{version}
chmod -x xarray/util/print_versions.py
%build