2018-04-24 13:31:25 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-xarray
|
|
|
|
#
|
2023-01-07 14:07:26 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2018-04-24 13:31:25 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
Accepting request 638355 from devel:languages:python:numeric
- update to version 0.10.9:
* Enhancements
+ differentiate() and differentiate() are newly added. (GH1332) By
Keisuke Fujii.
+ Default colormap for sequential and divergent data can now be
set via set_options() (GH2394) By Julius Busecke.
+ min_count option is newly supported in sum(), prod() and sum(),
and prod(). (GH2230) By Keisuke Fujii.
+ plot() now accepts the kwargs xscale, yscale, xlim, ylim,
xticks, yticks just like Pandas. Also xincrease=False,
yincrease=False now use matplotlib’s axis inverting methods
instead of setting limits. By Deepak Cherian. (GH2224)
+ DataArray coordinates and Dataset coordinates and data variables
are now displayed as a b … y z rather than a b c d …. (GH1186)
By Seth P.
+ A new CFTimeIndex-enabled cftime_range() function for use in
generating dates from standard or non-standard calendars. By
Spencer Clark.
+ When interpolating over a datetime64 axis, you can now provide a
datetime string instead of a datetime64
object. E.g. da.interp(time='1991-02-01') (GH2284) By Deepak
Cherian.
+ A clear error message is now displayed if a set or dict is
passed in place of an array (GH2331) By Maximilian Roos.
+ Applying unstack to a large DataArray or Dataset is now much
faster if the MultiIndex has not been modified after stacking
the indices. (GH1560) By Maximilian Maahn.
+ You can now control whether or not to offset the coordinates
when using the roll method and the current behavior, coordinates
rolled by default, raises a deprecation warning unless
OBS-URL: https://build.opensuse.org/request/show/638355
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=5
2018-10-01 06:17:06 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-04-24 13:31:25 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2023-05-31 08:28:20 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-04-24 13:31:25 +00:00
|
|
|
Name: python-xarray
|
- update to version 2023.12.0:
- This release brings new `hypothesis <https://hypothesis.works/>`_ strategies for testing, significantly faster rolling aggregations as well as:
``ffill`` and ``bfill`` with ``numbagg``, a new :py:meth:`Dataset.eval` method, and improvements to
- reading and writing Zarr arrays (including a new ``"a-"`` mode).:
- Thanks to our 16 contributors:
- Anderson Banihirwe, Ben Mares, Carl Andersson, Deepak Cherian, Doug Latornell, Gregorio L. Trevisan, Illviljan, Jens Hedegaard Nielsen, Justus Magin, Mathias Hauser, Max Jones, Maximilian Roos, Michael Niklas, Patrick Hoefler, Ryan Abernathey, Tom Nicholas:
- New Features:
- Added hypothesis strategies for generating :py:class:`xarray.Variable` objects containing arbitrary data, useful for parametrizing downstream tests.
Accessible under :py:mod:`testing.strategies`, and documented in a new page on testing in the User Guide.
(:issue:`6911`, :pull:`8404`)
By `Tom Nicholas <https://github.com/TomNicholas>`_.
- :py:meth:`rolling` uses `numbagg <https://github.com/numbagg/numbagg>`_ for
most of its computations by default. Numbagg is up to 5x faster than bottleneck
where parallelization is possible. Where parallelization isn't possible — for
example a 1D array — it's about the same speed as bottleneck, and 2-5x faster
than pandas' default functions. (:pull:`8493`). numbagg is an optional
dependency, so requires installing separately.
By `Maximilian Roos <https://github.com/max-sixty>`_.
- Use a concise format when plotting datetime arrays. (:pull:`8449`).
By `Jimmy Westling <https://github.com/illviljan>`_.
- Avoid overwriting unchanged existing coordinate variables when appending with :py:meth:`Dataset.to_zarr` by setting ``mode='a-'``.
By `Ryan Abernathey <https://github.com/rabernat>`_ and `Deepak Cherian <https://github.com/dcherian>`_.
- :py:meth:`~xarray.DataArray.rank` now operates on dask-backed arrays, assuming
the core dim has exactly one chunk. (:pull:`8475`).
By `Maximilian Roos <https://github.com/max-sixty>`_.
- Add a :py:meth:`Dataset.eval` method, similar to the pandas' method of the
same name. (:pull:`7163`). This is currently marked as experimental and
doesn't yet support the ``numexpr`` engine.
- :py:meth:`Dataset.drop_vars` & :py:meth:`DataArray.drop_vars` allow passing a
callable, similar to :py:meth:`Dataset.where` & :py:meth:`Dataset.sortby` & others.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=84
2023-12-13 18:22:40 +00:00
|
|
|
Version: 2023.12.0
|
2018-04-24 13:31:25 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: N-D labeled arrays and datasets in Python
|
|
|
|
License: Apache-2.0
|
2019-09-21 20:14:20 +00:00
|
|
|
URL: https://github.com/pydata/xarray
|
2018-04-24 13:31:25 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/x/xarray/xarray-%{version}.tar.gz
|
2021-05-27 06:19:25 +00:00
|
|
|
# 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
|
- update to version 2023.02.0:
- This release brings a major upgrade to :py:func:`xarray.concat`, many bug fixes,:
- and a bump in supported dependency versions. Thanks to our 11 contributors:
- Aron Gergely, Deepak Cherian, Illviljan, James Bourbeau, Joe Hamman,:
- Justus Magin, Hauke Schulz, Kai Mühlbauer, Ken Mankoff, Spencer Clark, Tom Nicholas.:
- Breaking changes:
- Support for ``python 3.8`` has been dropped and the minimum versions of some
dependencies were changed (:pull:`7461`):
===================== ========= ========
Package Old New
===================== ========= ========
python 3.8 3.9
numpy 1.20 1.21
pandas 1.3 1.4
dask 2021.11 2022.1
distributed 2021.11 2022.1
h5netcdf 0.11 0.13
lxml 4.6 4.7
numba 5.4 5.5
===================== ========= ========
- Deprecations:
- Following pandas, the `closed` parameters of :py:func:`cftime_range` and
:py:func:`date_range` are deprecated in favor of the `inclusive` parameters,
and will be removed in a future version of xarray (:issue:`6985`:,
:pull:`7373`).
- Bug fixes:
- :py:func:`xarray.concat` can now concatenate variables present in some datasets but
not others (:issue:`508`, :pull:`7400`).
- Handle ``keep_attrs`` option in binary operators of :py:meth:`Dataset` (:issue:`7390`, :pull:`7391`).
- Improve error message when using dask in :py:func:`apply_ufunc` with ``output_sizes`` not supplied. (:pull:`7509`)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=78
2023-03-09 20:44:38 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.9}
|
- update to version 2023.12.0:
- This release brings new `hypothesis <https://hypothesis.works/>`_ strategies for testing, significantly faster rolling aggregations as well as:
``ffill`` and ``bfill`` with ``numbagg``, a new :py:meth:`Dataset.eval` method, and improvements to
- reading and writing Zarr arrays (including a new ``"a-"`` mode).:
- Thanks to our 16 contributors:
- Anderson Banihirwe, Ben Mares, Carl Andersson, Deepak Cherian, Doug Latornell, Gregorio L. Trevisan, Illviljan, Jens Hedegaard Nielsen, Justus Magin, Mathias Hauser, Max Jones, Maximilian Roos, Michael Niklas, Patrick Hoefler, Ryan Abernathey, Tom Nicholas:
- New Features:
- Added hypothesis strategies for generating :py:class:`xarray.Variable` objects containing arbitrary data, useful for parametrizing downstream tests.
Accessible under :py:mod:`testing.strategies`, and documented in a new page on testing in the User Guide.
(:issue:`6911`, :pull:`8404`)
By `Tom Nicholas <https://github.com/TomNicholas>`_.
- :py:meth:`rolling` uses `numbagg <https://github.com/numbagg/numbagg>`_ for
most of its computations by default. Numbagg is up to 5x faster than bottleneck
where parallelization is possible. Where parallelization isn't possible — for
example a 1D array — it's about the same speed as bottleneck, and 2-5x faster
than pandas' default functions. (:pull:`8493`). numbagg is an optional
dependency, so requires installing separately.
By `Maximilian Roos <https://github.com/max-sixty>`_.
- Use a concise format when plotting datetime arrays. (:pull:`8449`).
By `Jimmy Westling <https://github.com/illviljan>`_.
- Avoid overwriting unchanged existing coordinate variables when appending with :py:meth:`Dataset.to_zarr` by setting ``mode='a-'``.
By `Ryan Abernathey <https://github.com/rabernat>`_ and `Deepak Cherian <https://github.com/dcherian>`_.
- :py:meth:`~xarray.DataArray.rank` now operates on dask-backed arrays, assuming
the core dim has exactly one chunk. (:pull:`8475`).
By `Maximilian Roos <https://github.com/max-sixty>`_.
- Add a :py:meth:`Dataset.eval` method, similar to the pandas' method of the
same name. (:pull:`7163`). This is currently marked as experimental and
doesn't yet support the ``numexpr`` engine.
- :py:meth:`Dataset.drop_vars` & :py:meth:`DataArray.drop_vars` allow passing a
callable, similar to :py:meth:`Dataset.where` & :py:meth:`Dataset.sortby` & others.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=84
2023-12-13 18:22:40 +00:00
|
|
|
BuildRequires: %{python_module numpy-devel >= 1.22}
|
2023-01-07 14:07:26 +00:00
|
|
|
BuildRequires: %{python_module packaging >= 21.3}
|
- update to version 2023.12.0:
- This release brings new `hypothesis <https://hypothesis.works/>`_ strategies for testing, significantly faster rolling aggregations as well as:
``ffill`` and ``bfill`` with ``numbagg``, a new :py:meth:`Dataset.eval` method, and improvements to
- reading and writing Zarr arrays (including a new ``"a-"`` mode).:
- Thanks to our 16 contributors:
- Anderson Banihirwe, Ben Mares, Carl Andersson, Deepak Cherian, Doug Latornell, Gregorio L. Trevisan, Illviljan, Jens Hedegaard Nielsen, Justus Magin, Mathias Hauser, Max Jones, Maximilian Roos, Michael Niklas, Patrick Hoefler, Ryan Abernathey, Tom Nicholas:
- New Features:
- Added hypothesis strategies for generating :py:class:`xarray.Variable` objects containing arbitrary data, useful for parametrizing downstream tests.
Accessible under :py:mod:`testing.strategies`, and documented in a new page on testing in the User Guide.
(:issue:`6911`, :pull:`8404`)
By `Tom Nicholas <https://github.com/TomNicholas>`_.
- :py:meth:`rolling` uses `numbagg <https://github.com/numbagg/numbagg>`_ for
most of its computations by default. Numbagg is up to 5x faster than bottleneck
where parallelization is possible. Where parallelization isn't possible — for
example a 1D array — it's about the same speed as bottleneck, and 2-5x faster
than pandas' default functions. (:pull:`8493`). numbagg is an optional
dependency, so requires installing separately.
By `Maximilian Roos <https://github.com/max-sixty>`_.
- Use a concise format when plotting datetime arrays. (:pull:`8449`).
By `Jimmy Westling <https://github.com/illviljan>`_.
- Avoid overwriting unchanged existing coordinate variables when appending with :py:meth:`Dataset.to_zarr` by setting ``mode='a-'``.
By `Ryan Abernathey <https://github.com/rabernat>`_ and `Deepak Cherian <https://github.com/dcherian>`_.
- :py:meth:`~xarray.DataArray.rank` now operates on dask-backed arrays, assuming
the core dim has exactly one chunk. (:pull:`8475`).
By `Maximilian Roos <https://github.com/max-sixty>`_.
- Add a :py:meth:`Dataset.eval` method, similar to the pandas' method of the
same name. (:pull:`7163`). This is currently marked as experimental and
doesn't yet support the ``numexpr`` engine.
- :py:meth:`Dataset.drop_vars` & :py:meth:`DataArray.drop_vars` allow passing a
callable, similar to :py:meth:`Dataset.where` & :py:meth:`Dataset.sortby` & others.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=84
2023-12-13 18:22:40 +00:00
|
|
|
BuildRequires: %{python_module pandas >= 1.4}
|
2023-09-13 07:39:53 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-02-01 15:13:57 +00:00
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
2018-04-24 13:31:25 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-09-13 07:39:53 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2018-04-24 13:31:25 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2023-09-13 07:39:53 +00:00
|
|
|
Requires: python-numpy >= 1.22
|
2023-01-07 14:07:26 +00:00
|
|
|
Requires: python-packaging >= 21.3
|
- update to version 2023.02.0:
- This release brings a major upgrade to :py:func:`xarray.concat`, many bug fixes,:
- and a bump in supported dependency versions. Thanks to our 11 contributors:
- Aron Gergely, Deepak Cherian, Illviljan, James Bourbeau, Joe Hamman,:
- Justus Magin, Hauke Schulz, Kai Mühlbauer, Ken Mankoff, Spencer Clark, Tom Nicholas.:
- Breaking changes:
- Support for ``python 3.8`` has been dropped and the minimum versions of some
dependencies were changed (:pull:`7461`):
===================== ========= ========
Package Old New
===================== ========= ========
python 3.8 3.9
numpy 1.20 1.21
pandas 1.3 1.4
dask 2021.11 2022.1
distributed 2021.11 2022.1
h5netcdf 0.11 0.13
lxml 4.6 4.7
numba 5.4 5.5
===================== ========= ========
- Deprecations:
- Following pandas, the `closed` parameters of :py:func:`cftime_range` and
:py:func:`date_range` are deprecated in favor of the `inclusive` parameters,
and will be removed in a future version of xarray (:issue:`6985`:,
:pull:`7373`).
- Bug fixes:
- :py:func:`xarray.concat` can now concatenate variables present in some datasets but
not others (:issue:`508`, :pull:`7400`).
- Handle ``keep_attrs`` option in binary operators of :py:meth:`Dataset` (:issue:`7390`, :pull:`7391`).
- Improve error message when using dask in :py:func:`apply_ufunc` with ``output_sizes`` not supplied. (:pull:`7509`)
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-xarray?expand=0&rev=78
2023-03-09 20:44:38 +00:00
|
|
|
Requires: python-pandas >= 1.4
|
2018-05-29 08:34:57 +00:00
|
|
|
Provides: python-xray = %{version}
|
|
|
|
Obsoletes: python-xray < %{version}
|
|
|
|
BuildArch: noarch
|
2021-02-15 13:28:30 +00:00
|
|
|
# SECTION extras accel
|
2022-11-22 15:35:40 +00:00
|
|
|
Recommends: python-scipy
|
2021-02-15 13:28:30 +00:00
|
|
|
Recommends: python-bottleneck
|
2022-08-18 14:37:42 +00:00
|
|
|
Recommends: python-flox
|
2022-11-22 15:35:40 +00:00
|
|
|
Recommends: python-numbagg
|
|
|
|
# /SECTION
|
|
|
|
# SECTION extras parallalel
|
|
|
|
Suggests: python-dask-complete
|
2021-02-15 13:28:30 +00:00
|
|
|
# /SECTION
|
|
|
|
# SECTION extras viz
|
2022-11-22 15:35:40 +00:00
|
|
|
Suggests: python-matplotlib
|
|
|
|
Suggests: python-seaborn
|
2021-02-15 13:28:30 +00:00
|
|
|
Suggests: python-nc-time-axis
|
|
|
|
#/SECTION
|
|
|
|
# SECTION extras io
|
|
|
|
Suggests: python-netCDF4
|
2022-11-22 15:35:40 +00:00
|
|
|
Suggests: python-h5netcdf
|
2023-01-07 14:07:26 +00:00
|
|
|
Suggests: (python-pydap if python-base < 3.10)
|
2022-11-22 15:35:40 +00:00
|
|
|
Suggests: python-zarr
|
2021-02-15 13:28:30 +00:00
|
|
|
Suggests: python-fsspec
|
2022-11-22 15:35:40 +00:00
|
|
|
Suggests: python-cftime
|
|
|
|
Suggests: python-rasterio
|
2021-02-15 13:28:30 +00:00
|
|
|
Suggests: python-cfgrib
|
2022-11-22 15:35:40 +00:00
|
|
|
Suggests: python-pooch
|
2021-02-15 13:28:30 +00:00
|
|
|
#/SECTION
|
2018-04-24 13:31:25 +00:00
|
|
|
# SECTION tests
|
2022-11-22 15:35:40 +00:00
|
|
|
BuildRequires: %{python_module Bottleneck}
|
2023-09-13 07:39:53 +00:00
|
|
|
BuildRequires: %{python_module dask-dataframe}
|
|
|
|
BuildRequires: %{python_module dask-diagnostics}
|
2022-11-22 15:35:40 +00:00
|
|
|
BuildRequires: %{python_module h5netcdf}
|
|
|
|
BuildRequires: %{python_module matplotlib}
|
|
|
|
BuildRequires: %{python_module netCDF4}
|
2021-05-27 06:19:25 +00:00
|
|
|
BuildRequires: %{python_module pooch}
|
2021-02-15 13:28:30 +00:00
|
|
|
BuildRequires: %{python_module pytest-xdist}
|
|
|
|
BuildRequires: %{python_module pytest}
|
2022-11-22 15:35:40 +00:00
|
|
|
BuildRequires: %{python_module scipy}
|
|
|
|
BuildRequires: %{python_module zarr}
|
2018-04-24 13:31:25 +00:00
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
xarray (formerly xray) is a python-pandas-like and pandas-compatible
|
|
|
|
toolkit for analytics on multi-dimensional arrays. It provides
|
|
|
|
N-dimensional variants of the python-pandas labeled data structures,
|
|
|
|
rather than the tabular data that pandas uses.
|
|
|
|
|
|
|
|
The Common Data Model for self-describing scientific data is used.
|
|
|
|
The dataset is an in-memory representation of a netCDF file.
|
|
|
|
|
|
|
|
%prep
|
2021-02-15 13:28:30 +00:00
|
|
|
%autosetup -p1 -n xarray-%{version}
|
2021-05-27 06:19:25 +00:00
|
|
|
|
2020-02-01 15:13:57 +00:00
|
|
|
chmod -x xarray/util/print_versions.py
|
2018-04-24 13:31:25 +00:00
|
|
|
|
|
|
|
%build
|
2023-09-13 07:39:53 +00:00
|
|
|
%pyproject_wheel
|
2018-04-24 13:31:25 +00:00
|
|
|
|
|
|
|
%install
|
2023-09-13 07:39:53 +00:00
|
|
|
%pyproject_install
|
2018-04-24 13:31:25 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2023-09-13 07:39:53 +00:00
|
|
|
# obs file open race conditions?
|
|
|
|
donttest="(test_open_mfdataset_manyfiles and (h5netcdf or netCDF4))"
|
2021-02-15 13:28:30 +00:00
|
|
|
if [ $(getconf LONG_BIT) -eq 32 ]; then
|
2022-11-22 15:35:40 +00:00
|
|
|
# https://github.com/pydata/xarray/issues/5341
|
|
|
|
# https://github.com/pydata/xarray/issues/5375
|
|
|
|
# still precision problems in 2022.11.0
|
2023-01-07 14:07:26 +00:00
|
|
|
donttest="$donttest or (test_interpolate_chunk_advanced and linear)"
|
2022-11-22 15:35:40 +00:00
|
|
|
# tests for 64bit types
|
2023-09-13 07:39:53 +00:00
|
|
|
donttest="$donttest or TestZarrDictStore or TestZarrDirectoryStore or TestZarrWriteEmpty"
|
2021-02-15 13:28:30 +00:00
|
|
|
fi
|
2023-01-07 14:07:26 +00:00
|
|
|
%pytest -n auto -rsEf -k "not ($donttest)" xarray
|
2018-04-24 13:31:25 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
2022-08-18 14:37:42 +00:00
|
|
|
%doc README.md
|
2018-04-24 13:31:25 +00:00
|
|
|
%license LICENSE licenses/
|
2021-02-15 13:28:30 +00:00
|
|
|
%{python_sitelib}/xarray
|
2023-09-13 07:39:53 +00:00
|
|
|
%{python_sitelib}/xarray-%{version}.dist-info
|
2018-04-24 13:31:25 +00:00
|
|
|
|
|
|
|
%changelog
|