%global _empty_manifest_terminate_build 0
Name:		python-xarray
Version:	2025.12.0
Release:	1
Summary:	N-D labeled arrays and datasets in Python
License:	Apache-2.0
URL:		https://github.com/pydata/xarray
Source0:	https://files.pythonhosted.org/packages/source/x/xarray/xarray-%{version}.tar.gz
BuildArch:	noarch

%description
xarray introduces labels in the form of dimensions, coordinates and attributes 
on top of raw NumPy-like arrays, which allows for a more intuitive, more 
concise, and less error-prone developer experience.

%package -n python3-xarray
Summary:	N-D labeled arrays and datasets in Python
Provides:	python-xarray = %{version}-%{release}
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools 
BuildRequires:  python3-pip python3-wheel
BuildRequires:  python3-hatchling python3-hatch-vcs
Requires:	python3-numpy
Requires:	python3-pandas
Requires:	python3-packaging
%description -n python3-xarray
xarray introduces labels in the form of dimensions, coordinates and attributes 
on top of raw NumPy-like arrays, which allows for a more intuitive, more 
concise, and less error-prone developer experience.

%package help
Summary:	Development documents and examples for xarray
Provides:	python3-xarray-doc
%description help
xarray introduces labels in the form of dimensions, coordinates and attributes 
on top of raw NumPy-like arrays, which allows for a more intuitive, more 
concise, and less error-prone developer experience.

%prep
%autosetup -n xarray-%{version}

%build
%pyproject_build

%install
%pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi
if [ -f README.txt ]; then cp -af README.txt %{buildroot}/%{_pkgdocdir}; fi

%files -n python3-xarray 
%{python3_sitelib}/*

%files help 
%{_docdir}/*

%changelog
* Tue Dec 30 2025 chukaiping <chukaiping@baidu.com> - 2025.12.0-1
- Update to 2025.12.0
- Fix numpy typing issue with numpy=2.3.5 
- Add GitHub Codespaces config for Pixi 
- small changes to the pixi env definitions

* Thu Nov 20 2025 lvwq <lvwenqiang@kylinos.cn> - 2025.11.0-1
- Update to 2025.11.0

* Tue Oct 07 2025 panzhe <panzhe@kylinos.cn> - 2025.9.1-1
- Update package to version 2025.9.1
- DataTree.from_dict supports passing in DataArray and nested dictionary values
- ``engine='netcdf4'`` supports reading and writing in-memory netCDF files

* Fri Sep 5 2025 lilu <lilu@kylinos.cn> - 2025.9.0-1
- Update package to version 2025.9.0
- Support rechunking by SeasonResampler for seasonal data analysis
- Add convenience methods to Coordinates
- Fix contour plots not normalizing the colors correctly when using for example logarithmic norms

* Wed Aug 20 2025 zhang_wenyu <zhang_wenyu@hoperun.com> - 2025.8.0-1
- Update package to version 2025.8.0
  * Improve warning message and tests for timedelta decoding
  * Call super().__init__() in st.SearchStrategy subclasses
  * Fix convert calendar with different dimension name
  * Restructure API documentation into organized sections
  * Fix DatetimeAccessor.strftime errors due to upstream changes
  * Fix transpose of BoolTypeArray, NativeEndiannessArray
  * interp - Prefer broadcast over reindex when possible
  * Update documentation to copy tags when forking, so versioning is reasonable

* Thu Mar 27 2025  openeuler_bot <infra@openeuler.sh> - 2025.3.0-1
- This release drops support for Python 3.9, and adds support for grouping by multiple arrays (version: v2024.09.0).
- This release extends the API for groupby operations with various grouper objects, and includes improvements to the documentation and numerous bugfixes (version: v2024.07.0).
- This release brings compatibility with numpy 2 and various performance optimizations (version: v2024.06.0).
- This release brings tested support for Python 3.13, support for reading Zarr V3 datasets into a DataTree, significant improvements to datetime & timedelta encoding/decoding (version: v2025.03.0).

* Fri Oct 25 2024 caiyuxin <caiyuxin@kylinos.cn> - 2024.10.0-1
- Update package to version 2024.10.0
  * Support for Zarr-Python 3
  * Added zarr backends for open_groups()
  * Added support for vectorized interpolation using additional interpolators from the scipy.interpolate module
  * Fix passing missing arguments to when opening hdf5 and netCDF4 datatrees
  * Make illegal path-like variable names when constructing a DataTree from a Dataset
  * Fix bug when encoding times with missing values as floats in the case when the non-missing times could in theory be encoded with integers 
  * Fix a few bugs affecting groupby reductions with flox. 
  * Fix the safe_chunks validation option on the to_zarr method
  * Fix binning by multiple variables where some bins have no observations.
  * Fix issue where polyfit wouldn’t handle non-dimension coordinates.
  Pelase see log : https://github.com/pydata/xarray/releases/tag/v2024.10.0


* Wed Aug 07 2024 yaoxin <yao_xin001@hoperun.com> - 2024.7.0-1
- Update to 2024.7.0
  * Move Sphinx directives out of
  * Add test for rechunking to a size string
  * Support duplicate dimensions in .chunk
  * Split out distributed writes in zarr docs
  * groupby: remove some internal use of IndexVariable
  * Remove mypy exclusions for a couple more libraries
  * switch to datetime unit "D"
  * Fix example code formatting for CachingFileManager
  * Change np.core.defchararray to np.char
  * Fix dark-theme in html[data-theme=dark]-tags
  * Fix reductions for np.complex_ dtypes with numbagg
  Pelase see log : https://github.com/pydata/xarray/releases

* Tue Mar 05 2024 yueyuankun <yueyuankun@kylinos.cn> - 2024.2.0-1
- Update package to version 2024.2.0

* Wed Dec 27 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 2023.12.0-1
- Update package to version 2023.12.0

* Wed Jul 05 2023 chenzixuan <chenzixuan@kylinos.cn> - 2023.6.0-1
- Update package to version 2023.6.0

* Fri May 19 2023 wangjunqi <wangjunqi@kylinos.cn> - 2023.5.0-1
- Update package to version 2023.5.0

* Thu Feb 16 2023 wubijie <wubijie@kylinos.cn> - 2023.2.0-1
- Update package to version 2023.2.0

* Mon Nov 21 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 2022.11.0-1
- Update package to version 2022.11.0

* Tue Sep 27 2022 guozhengxin <guozhengxin@kylinos.cn> - 2022.6.0-1
- Upgrade package to version 2022.6.0

* Thu Dec 02 2021 Python_Bot <Python_Bot@openeuler.org> - 0.20.1-1
- Package Init