From 7efc31a1bfd0feeeacee62c70119f4287594e67c41a50db301a17674f0014e1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 18 Aug 2022 14:37:42 +0000 Subject: [PATCH] Accepting request 995160 from home:apersaud:branches:devel:languages:python:numeric update to latest version OBS-URL: https://build.opensuse.org/request/show/995160 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=67 --- local_dataset.patch | 2 +- python-xarray.changes | 165 ++++++++++++++++++++++++++++++++++++++++ python-xarray.spec | 40 +++++----- scipy-interpolate.patch | 2 +- xarray-2022.3.0.tar.gz | 3 - xarray-2022.6.0.tar.gz | 3 + 6 files changed, 191 insertions(+), 24 deletions(-) delete mode 100644 xarray-2022.3.0.tar.gz create mode 100644 xarray-2022.6.0.tar.gz diff --git a/local_dataset.patch b/local_dataset.patch index 0ee942b..9248f02 100644 --- a/local_dataset.patch +++ b/local_dataset.patch @@ -4,7 +4,7 @@ --- a/xarray/tutorial.py +++ b/xarray/tutorial.py -@@ -139,7 +139,10 @@ def open_dataset( +@@ -149,7 +149,10 @@ def open_dataset( url = f"{base_url}/raw/{version}/{path.name}" # retrieve the file diff --git a/python-xarray.changes b/python-xarray.changes index a92cc66..ee5d308 100644 --- a/python-xarray.changes +++ b/python-xarray.changes @@ -1,3 +1,168 @@ +------------------------------------------------------------------- +Sun Aug 7 03:12:48 UTC 2022 - Arun Persaud + +- specfile: + * updated requirements versions + * added new requirements: packaging and flox (recommends) + * require python >= 3.8 + * update line numbers in patches + * changed README.rst->README.md + +- update to version 2022.6.0: + * This release brings a number of bug fixes and improvements, most + notably a major internal refactor of the indexing functionality, + the use of flox in groupby operations, and experimental support + for the new Python Array API standard. It also stops testing + support for the abandoned PyNIO. + * Much effort has been made to preserve backwards compatibility as + part of the indexing refactor. We are aware of one unfixed issue. + * New Features + + Add Dataset.dtypes, core.coordinates.DatasetCoordinates.dtypes, + core.coordinates.DataArrayCoordinates.dtypes properties: Mapping + from variable names to dtypes. (PR6706) By Michael Niklas. + + Initial typing support for groupby(), rolling(), rolling_exp(), + coarsen(), weighted(), resample(), (PR6702) By Michael Niklas. + + Experimental support for wrapping any array type that conforms + to the python array api standard. (PR6804) By Tom White. + * Bug fixes + + save_mfdataset() now passes **kwargs on to Dataset.to_netcdf(), + allowing the encoding and unlimited_dims options with + save_mfdataset(). (GH6684) By Travis A. O’Brien. + + Fix backend support of pydap versions <3.3.0 (GH6648, + PR6656). By Hauke Schulz. + + Dataset.where() with drop=True now behaves correctly with mixed + dimensions. (GH6227, PR6690) By Michael Niklas. + + Accommodate newly raised OutOfBoundsTimedelta error in the + development version of pandas when decoding times outside the + range that can be represented with nanosecond-precision values + (GH6716, PR6717). By Spencer Clark. + + open_dataset() with dask and ~ in the path now resolves the home + directory instead of raising an error. (GH6707, PR6710) By + Michael Niklas. + + DataArrayRolling.__iter__() with center=True now works + correctly. (GH6739, PR6744) By Michael Niklas. + * Internal Changes + + xarray.core.groupby, xarray.core.rolling, + xarray.core.rolling_exp, xarray.core.weighted and + xarray.core.resample modules are no longer imported by + default. (PR6702) + +- changes from version 2022.06.0rc0: + * This pre-release brings a number of bug fixes and improvements, + most notably a major internal refactor of the indexing + functionality and the use of flox in groupby operations. It also + stops testing support for the abandoned PyNIO. + * Known Regressions + + reset_coords(drop=True) does not create indexes (GH6607) + * New Features + + The zarr backend is now able to read NCZarr. By Mattia Almansi. + + Add a weighted quantile method to DatasetWeighted and + DataArrayWeighted (PR6059). By Christian Jauvin and David Huard. + + Add a create_index=True parameter to Dataset.stack() and + DataArray.stack() so that the creation of multi-indexes is + optional (PR5692). By Benoît Bovy. + + Multi-index levels are now accessible through their own, regular + coordinates instead of virtual coordinates (PR5692). By Benoît + Bovy. + + Add a display_values_threshold option to control the total + number of array elements which trigger summarization rather than + full repr in (numpy) array detailed views of the html repr + (PR6400). By Benoît Bovy. + + Allow passing chunks in kwargs form to Dataset.chunk(), + DataArray.chunk(), and Variable.chunk(). (PR6471) By Tom + Nicholas. + + Add core.groupby.DatasetGroupBy.cumsum() and + core.groupby.DataArrayGroupBy.cumsum(). By Vladislav Skripniuk + and Deepak Cherian. (PR3147, PR6525, GH3141) + + Expose inline_array kwarg from dask.array.from_array in + open_dataset(), Dataset.chunk(), DataArray.chunk(), and + Variable.chunk(). (PR6471) + + Expose the inline_array kwarg from dask.array.from_array() in + open_dataset(), Dataset.chunk(), DataArray.chunk(), and + Variable.chunk(). (PR6471) By Tom Nicholas. + + polyval() now supports Dataset and DataArray args of any shape, + is faster and requires less memory. (PR6548) By Michael Niklas. + + Improved overall typing. + + Dataset.to_dict() and DataArray.to_dict() may now optionally + include encoding attributes. (PR6635) By Joe Hamman. + + Upload development versions to TestPyPI. By Justus Magin. + * Breaking changes + + PyNIO support is now untested. + + The Dataset and DataArray rename" methods do not implicitly add + or drop indexes. (PR5692). By Benoît Bovy. + + Many arguments like keep_attrs, axis, and skipna are now keyword + only for all reduction operations like .mean. By Deepak Cherian, + Jimmy Westling. + + Xarray’s ufuncs have been removed, now that they can be replaced + by numpy’s ufuncs in all supported versions of numpy. By + Maximilian Roos. + + xr.polyval() now uses the coord argument directly instead of its + index coordinate. (PR6548) By Michael Niklas. + * Bug fixes + + Dataset.to_zarr() now allows to write all attribute types + supported by zarr-python. By Mattia Almansi. + + Set skipna=None for all quantile methods + (e.g. Dataset.quantile()) and ensure it skips missing values for + float dtypes (consistent with other methods). This should not + change the behavior (PR6303). By Mathias Hauser. + + Many bugs fixed by the explicit indexes refactor, mainly related + to multi-index (virtual) coordinates. See the corresponding + pull-request on GitHub for more details. (PR5692). By Benoît + Bovy. + + Fixed “unhashable type” error trying to read NetCDF file with + variable having its ‘units’ attribute not str + (e.g. numpy.ndarray) (GH6368). By Oleh Khoma. + + Omit warning about specified dask chunks separating chunks on + disk when the underlying array is empty (e.g., because of an + empty dimension) (GH6401). By Joseph K Aicher. + + Fixed the poor html repr performance on large multi-indexes + (PR6400). By Benoît Bovy. + + Allow fancy indexing of duck dask arrays along multiple + dimensions. (PR6414) By Justus Magin. + + In the API for backends, support dimensions that express their + preferred chunk sizes as a tuple of integers. (GH6333, PR6334) + By Stan West. + + Fix bug in where() when passing non-xarray objects with + keep_attrs=True. (GH6444, PR6461) By Sam Levang. + + Allow passing both other and drop=True arguments to + DataArray.where() and Dataset.where() (PR6466, PR6467). By + Michael Delgado. + + Ensure dtype encoding attributes are not added or modified on + variables that contain datetime-like values prior to being + passed to xarray.conventions.decode_cf_variable() (GH6453, + PR6489). By Spencer Clark. + + Dark themes are now properly detected in Furo-themed Sphinx + documents (GH6500, PR6501). By Kevin Paul. + + Dataset.isel(), DataArray.isel() with drop=True works as + intended with scalar DataArray indexers. (GH6554, PR6579) By + Michael Niklas. + + Fixed silent overflow issue when decoding times encoded with + 32-bit and below unsigned integer data types (GH6589, + PR6598). By Spencer Clark. + + Fixed .chunks loading lazy data (GH6538). By Deepak Cherian. + * Documentation + + Revise the documentation for developers on specifying a + backend’s preferred chunk sizes. In particular, correct the + syntax and replace lists with tuples in the examples. (GH6333, + PR6334) By Stan West. + + Mention that DataArray.rename() can rename coordinates. (GH5458, + PR6665) By Michael Niklas. + + Added examples to Dataset.thin() and DataArray.thin() By Emma + Marshall. + * Performance + + GroupBy binary operations are now vectorized. Previously this + involved looping over all groups. (GH5804, PR6160) By Deepak + Cherian. + + Substantially improved GroupBy operations using flox. This is + auto-enabled when flox is installed. Use + xr.set_options(use_flox=False) to use the old + algorithm. (GH4473, GH4498, GH659, GH2237, PR271). By Deepak + Cherian, Anderson Banihirwe, Jimmy Westling. + * Internal Changes + + Many internal changes due to the explicit indexes refactor. See + the corresponding pull-request on GitHub for more + details. (PR5692). By Benoît Bovy. + ------------------------------------------------------------------- Fri Mar 4 18:00:26 UTC 2022 - Sebastian Wagner diff --git a/python-xarray.spec b/python-xarray.spec index 0c1614f..d094224 100644 --- a/python-xarray.spec +++ b/python-xarray.spec @@ -17,9 +17,8 @@ %{?!python_module:%define python_module() python3-%{**}} -%define skip_python2 1 Name: python-xarray -Version: 2022.3.0 +Version: 2022.6.0 Release: 0 Summary: N-D labeled arrays and datasets in Python License: Apache-2.0 @@ -31,41 +30,44 @@ 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 -BuildRequires: %{python_module numpy >= 1.18} +BuildRequires: %{python_module base >= 3.8} +BuildRequires: %{python_module numpy >= 1.19} BuildRequires: %{python_module numpy-devel >= 1.14} -BuildRequires: %{python_module pandas >= 1.1} +BuildRequires: %{python_module packaging >= 20.0} +BuildRequires: %{python_module pandas >= 1.2} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-numpy >= 1.15 -Requires: python-pandas >= 0.25 +Requires: python-numpy >= 1.19 +Requires: python-pandas >= 1.2 Provides: python-xray = %{version} Obsoletes: python-xray < %{version} BuildArch: noarch -Suggests: python-dask-all >= 2.30 +Suggests: python-dask-all >= 2021.4 # SECTION extras accel -Recommends: python-scipy >= 1.5 +Recommends: python-scipy >= 1.6 Recommends: python-bottleneck -Recommends: python-numbagg >= 0.51 +Recommends: python-flox +Recommends: python-numbagg >= 0.53 # /SECTION # SECTION extras viz -Suggests: python-matplotlib >= 3.3 +Suggests: python-matplotlib >= 3.4 Suggests: python-seaborn >= 0.11 Suggests: python-nc-time-axis #/SECTION # SECTION extras io Suggests: python-netCDF4 -Suggests: python-h5netcdf +Suggests: python-h5netcdf >= 0.11 Suggests: python-pydap -Suggests: python-zarr >= 2.5 +Suggests: python-zarr >= 2.8 Suggests: python-fsspec -Suggests: python-cftime >= 1.2 -Suggests: python-rasterio +Suggests: python-cftime >= 1.4 +Suggests: python-rasterio >= 1.2 Suggests: python-cfgrib -Suggests: python-distributed >= 2.30 -Suggests: python-pint >= 0.16 -Suggests: python-sparse >= 0.11 +Suggests: python-distributed >= 2021.4 +Suggests: python-pint >= 0.17 +Suggests: python-sparse >= 0.12 Suggests: python-toolz >= 0.11 #/SECTION # SECTION tests @@ -74,7 +76,7 @@ BuildRequires: %{python_module dask-diagnostics if %python-base < 3.10} BuildRequires: %{python_module pooch} BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module scipy} +BuildRequires: %{python_module scipy >= 1.6} # /SECTION %python_subpackages @@ -108,7 +110,7 @@ fi %pytest -n auto ${donttest:+ -k "not ($donttest)"} xarray %files %{python_files} -%doc README.rst +%doc README.md %license LICENSE licenses/ %{python_sitelib}/xarray %{python_sitelib}/xarray-%{version}*-info diff --git a/scipy-interpolate.patch b/scipy-interpolate.patch index f5db581..c5b10e7 100644 --- a/scipy-interpolate.patch +++ b/scipy-interpolate.patch @@ -4,7 +4,7 @@ --- a/xarray/tests/test_interp.py +++ b/xarray/tests/test_interp.py -@@ -20,6 +20,7 @@ from .test_dataset import create_test_da +@@ -24,6 +24,7 @@ from .test_dataset import create_test_da try: import scipy diff --git a/xarray-2022.3.0.tar.gz b/xarray-2022.3.0.tar.gz deleted file mode 100644 index f5d51ec..0000000 --- a/xarray-2022.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:398344bf7d170477aaceff70210e11ebd69af6b156fe13978054d25c48729440 -size 2943007 diff --git a/xarray-2022.6.0.tar.gz b/xarray-2022.6.0.tar.gz new file mode 100644 index 0000000..fe79a3b --- /dev/null +++ b/xarray-2022.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1028d198493f66bb15bd35dcfdd11defd831cbee3af6589fff16f41bddd67e84 +size 3013166