1
0
forked from pool/python-xarray

Accepting request 1267447 from devel:languages:python:numeric

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1267447
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xarray?expand=0&rev=53
This commit is contained in:
2025-04-07 17:15:07 +00:00
committed by Git OBS Bridge
6 changed files with 160 additions and 16 deletions

View File

@@ -1,6 +1,8 @@
--- xarray-2024.11.0/xarray/tutorial.py 2024-11-22 21:58:55.000000000 +0100
+++ xarray-2024.11.0/xarray/tutorial.py.new 2024-11-24 14:18:51.684909924 +0100
@@ -162,9 +162,11 @@
Index: xarray-2025.03.0/xarray/tutorial.py
===================================================================
--- xarray-2025.03.0.orig/xarray/tutorial.py
+++ xarray-2025.03.0/xarray/tutorial.py
@@ -164,9 +164,11 @@ def open_dataset(
downloader = pooch.HTTPDownloader(headers=headers)
# retrieve the file

13
no-mypy-test-plugin.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: xarray-2025.03.0/pyproject.toml
===================================================================
--- xarray-2025.03.0.orig/pyproject.toml
+++ xarray-2025.03.0/pyproject.toml
@@ -296,8 +296,6 @@ ban-relative-imports = "all"
addopts = [
"--strict-config",
"--strict-markers",
- "--mypy-only-local-stub",
- "--mypy-pyproject-toml-file=pyproject.toml",
]
# We want to forbid warnings from within xarray in our tests — instead we should

View File

@@ -1,3 +1,127 @@
-------------------------------------------------------------------
Sun Mar 30 08:19:37 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 2025.03.0:
* spelling fix: possibilites -> possibilities
* Duck array ops for `all` and `any`
* `map_over_datasets`: fix error message for wrong result type
* Use resolution-dependent default units for lazy time encoding
* DOC: Fix 404 on Cubed's documentation
* use mean of min/max years as offset in calculation of
datetime64 mean
* Fix dataarray drop attrs
* Start splitting up `dataset.py`
* Upgrade mypy to 1.15
* implement map_over_datasets kwargs
* run CI on `python=3.13`
* Prune data tree for Isomorphic operations
* Skip failing array api test.
* Pass node path to tokenize in `open_datatree`
* Fix false timedelta decoding `SerializationWarning` and
improve warning message
* Add typos check to pre-commit hooks
* Ensure KeyError raised for zarr datasets missing dim names
* Improve handling of dtype and NaT when encoding/decoding
masked and packaged datetimes and timedeltas
* fix and supress some test warnings
* Update asv badge url in README.md
* Fix broken Zarr test
* Pin pandas stubs
* Use `to_numpy` in time decoding
* explicitly cast the dtype of `where`'s condition parameter to
`bool`
* Better `uv` compatibility
* Change `python_files` in `pyproject.toml` to a list
* Don't skip tests when on a `mypy` branch
* Fix type issues from pandas stubs
* Refactor compatibility modules into xarray.compat package
* Fix version in requires_zarr_v3 fixture
* Adds open_datatree and load_datatree to the tutorial module
* Update flaky pydap test
- update to 2025.01.2:
* This release brings non-nanosecond datetime and timedelta
resolution to xarray, sharded reading in zarr, suggestion of
correct names when trying to access non-existent data
variables and bug fixes!
* Remove outdated quantile test.
* Relax nanosecond datetime restriction in CF time decoding
* fix upstream dev issues
* Suggest the correct name when no key matches in the dataset
* cast type to PDDatetimeUnitOptions
* Update time coding tests to assert exact equality
* remove dask-expr from CI runs, fix related tests
* Use zarr-fixture to prevent thread leakage errors
* fix weighted polyfit for arrays with more than 2 dimensions
* Fix test_doc_example on big-endian systems
* Remove unnecessary a article
* Fix some typing
* Use flox for grouped first, last
* Add `shards` to `valid_encodings` to enable sharded Zarr
writing
* Add shxarray to the xarray ecosystem list
* Remove repetitive that (replace it with the)
* Enable `DataTree.to_zarr(compute=False)`
* Add `time_unit` argument to `CFTimeIndex.to_datetimeindex`
* fix mean for datetime-like using the respective time
resolution unit
* Enable passing a `CFTimedeltaCoder` to `decode_timedelta`
* Revert "Use flox for grouped first, last (#9986)"
* Fix infer_freq, check for subdtype "datetime64"/"timedelta64"
* Migrate Zarr region="auto" tests to a class
* Fix the push method when the limit parameter is bigger than
the chunk…
* Use `freq="D"` instead of `freq="d"` in `pd.timedelta_range`
* cast `numpy` scalars to arrays in `NamedArray.from_array`
* remove outdated type-ignores
* Preserve order of variables in combine_by_coords
* Add FAQ answer about API stability & backwards compatibility
* release notes: 2025.01.2
- update to 2025.01.1:
* split out CFDatetimeCoder, deprecate use_cftime as kwarg
* Fix zarr upstream tests
- update to 2025.01.0:
* Add blank What's New
* Upgrade ruff to 0.8.0
* Improved duck array wrapping
* Use compute instead of load in plot
* Described default centre argument behaviour in rolling
functions
* Fix type annotations for `get_axis_num` (GH 9822)
* Test type annotations for Variable.get_axis_num
* FIX: gracfully handle missing seaborn dependency
* move ensure_dtype_not_object from conventions to backends
* Fixed function links in dataarray.py and dataset.py
* Fix seed for random test data.
* Set `zarr_format` for `zarr.consolidate_metadata`
* Reference ncdata in docs.
* Add Pyproject pre-commit hooks
* dask tests: Avoid check for non-copies, xfail pandas
comparison
* Avoid local functions in push
* Add token to codecov
* Remove deprecated behavior for non-dim positional args
* Fix/silence upstream tests
* finalize deprecation of "closed"-parameter
* Fix upstream Zarr compatibility
* Fix interpolation when non-numeric coords are present.
* Use integers instead of randint
* Add "unit"-parameter to date_range, enhance iso time parser
to us
* Add missing DataTree attributes to docs
* move scalar-handling logic into `possibly_convert_objects`
* remove unused "type: ignore" comments in test_plot.py
* Optimize idxmin, idxmax with dask
* Cache pre-existing Zarr arrays in Zarr backend
* Explicitly configure ReadTheDocs build to use conf.py
* Skip dask rolling
* Rewrite interp to use `apply_ufunc`
* friendlier error messages for missing chunk managers
* Edit serialization error message
* Enhance and move ISO-8601 parser to coding.times
* fix warning from scipy backend guess_can_open on directory
* time coding refactor
- add no-mypy-test-plugin.patch: skip pytest-mypy dependency
-------------------------------------------------------------------
Fri Dec 6 12:27:55 UTC 2024 - Ben Greiner <code@bnavigator.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-xarray
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,19 +25,19 @@
%define psuffix %{nil}
%endif
%define ghversion 2024.11.0
%{?sle15_python_module_pythons}
Name: python-xarray%{psuffix}
Version: 2024.11.0
Version: 2025.03.0
Release: 0
Summary: N-D labeled arrays and datasets in Python
License: Apache-2.0
URL: https://github.com/pydata/xarray
Source: https://github.com/pydata/xarray/archive/refs/tags/v%{ghversion}.tar.gz#/xarray-%{ghversion}-gh.tar.gz
Source: https://github.com/pydata/xarray/archive/refs/tags/v%{version}.tar.gz#/xarray-%{version}-gh.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-OPENSUSE: skip dependency on pytest-mypy
Patch1: no-mypy-test-plugin.patch
BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
@@ -79,7 +79,7 @@ Recommends: python-numbagg >= 0.6
%description accel
The [accel] extra for xarray, N-D labeled arrays and datasets in Python
Except flox and numbagg, because they are not packaged yet.
Use `pip-%{python_bin_suffix} --user install flox numbagg` to install from PyPI, if needed.
Use `pip --user install flox numbagg` to install from PyPI, if needed.
%package complete
Summary: The python xarray[complete] extra
@@ -109,7 +109,7 @@ Recommends: python-pre-commit
%description dev
The [dev] extra for xarray, N-D labeled arrays and datasets in Python
Except pre-commit, Use `pip-%{python_bin_suffix} --user install pre-commit` to install, if needed.
Except pre-commit, Use `pip --user install pre-commit` to install, if needed.
%package io
Summary: The python xarray[io] extra
@@ -132,6 +132,11 @@ The [io] extra for xarray, N-D labeled arrays and datasets in Python
#%%package parallel
#Summary: The python xarray[parallel] extra
#Requires: python-dask-complete >= 2023.11
@@ -151,10 +156,10 @@ Recommends: python-nc-time-axis
The [viz] extra for xarray, N-D labeled arrays and datasets in Python
Except nc-time-axis, because it's not packaged yet.
Use `pip-%{python_bin_suffix} --user install nc-time-axis` to install from PyPI, if needed.
Use `pip --user install nc-time-axis` to install from PyPI, if needed.
%prep
%autosetup -p1 -n xarray-%{ghversion}
%autosetup -p1 -n xarray-%{version}
chmod -x xarray/util/print_versions.py
%build
@@ -197,7 +202,7 @@ donttest="$donttest or test_h5netcdf_storage_options or test_source_encoding_alw
%doc README.md
%license LICENSE licenses/
%{python_sitelib}/xarray
%{python_sitelib}/xarray-%{version}.dist-info
%{python_sitelib}/xarray-*.dist-info
%files %{python_files accel}
%doc README.md

View File

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

View File

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