From 196af5de6adc7e583a3ffb7af8eb43cdaae6520b Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Fri, 25 Oct 2024 12:32:01 +0200 Subject: [PATCH 01/15] don't install `dask` reason: `dask-expr` depends on `pyarrow`, which doesn't support python 3.13 yet --- ci/requirements/environment-3.13.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/requirements/environment-3.13.yml b/ci/requirements/environment-3.13.yml index dbb446f4454..4d2679ccad0 100644 --- a/ci/requirements/environment-3.13.yml +++ b/ci/requirements/environment-3.13.yml @@ -9,9 +9,9 @@ dependencies: - bottleneck - cartopy - cftime - - dask-core - - dask-expr - - distributed + # - dask-core + # - dask-expr + # - distributed - flox - fsspec - h5netcdf From d5f86b838a6114413236b4a28639ce78861a000e Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Fri, 25 Oct 2024 12:32:32 +0200 Subject: [PATCH 02/15] don't install `pydap` reason: depends on `webob`, which makes use of `cgi`, a stdlib that got removed in python 3.13 --- ci/requirements/environment-3.13.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/requirements/environment-3.13.yml b/ci/requirements/environment-3.13.yml index 4d2679ccad0..212c365f637 100644 --- a/ci/requirements/environment-3.13.yml +++ b/ci/requirements/environment-3.13.yml @@ -34,7 +34,7 @@ dependencies: - pip - pooch - pre-commit - - pydap + # - pydap - pytest - pytest-cov - pytest-env From 98cadef63c3227799855811ac5ce49c04d1fa342 Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Fri, 25 Oct 2024 12:35:03 +0200 Subject: [PATCH 03/15] run CI on python 3.13 --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e0f9489e325..563db55e682 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -47,7 +47,7 @@ jobs: matrix: os: ["ubuntu-latest", "macos-latest", "windows-latest"] # Bookend python versions - python-version: ["3.10", "3.12"] + python-version: ["3.10", "3.12", "3.13"] env: [""] include: # Minimum python version: From b51957eca9e95e1d76c35f37c1c6255cf6922c2d Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Fri, 25 Oct 2024 12:36:05 +0200 Subject: [PATCH 04/15] same for windows --- ci/requirements/environment-windows-3.13.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ci/requirements/environment-windows-3.13.yml b/ci/requirements/environment-windows-3.13.yml index 448e3f70c0c..46d69da69cc 100644 --- a/ci/requirements/environment-windows-3.13.yml +++ b/ci/requirements/environment-windows-3.13.yml @@ -7,9 +7,9 @@ dependencies: - bottleneck - cartopy - cftime - - dask-core - - dask-expr - - distributed + # - dask-core + # - dask-expr + # - distributed - flox - fsspec - h5netcdf @@ -29,7 +29,7 @@ dependencies: # - pint>=0.22 - pip - pre-commit - - pydap + # - pydap - pytest - pytest-cov - pytest-env From ddda8515493c53129bef055ba33bbe73de286a0e Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Fri, 25 Oct 2024 13:39:55 +0200 Subject: [PATCH 05/15] classifier --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 80d7bbd4711..8c95f246597 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,6 +12,7 @@ classifiers = [ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Scientific/Engineering", ] description = "N-D labeled arrays and datasets in Python" From b5f7c61b98c24370de28674f62400b02a9c6ef42 Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Fri, 25 Oct 2024 13:42:29 +0200 Subject: [PATCH 06/15] whats-new --- doc/whats-new.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 18fae4e0151..6e2109e6b96 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -21,7 +21,8 @@ v.2024.10.1 (unreleased) New Features ~~~~~~~~~~~~ - +- support python 3.13 (no free-threading) (:issue:`9664`, :pull:`9681`) + By `Justus Magin `_. Breaking changes ~~~~~~~~~~~~~~~~ From df216f537084af74c8940761400019dc8672ec76 Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Fri, 22 Nov 2024 22:40:34 +0100 Subject: [PATCH 07/15] fix bad merge --- doc/whats-new.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index e475f7f8288..2d4a71f443d 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -28,8 +28,6 @@ New Features ~~~~~~~~~~~~ - support python 3.13 (no free-threading) (:issue:`9664`, :pull:`9681`) By `Justus Magin `_. - -Breaking changes - Added :py:meth:`DataTree.persist` method (:issue:`9675`, :pull:`9682`). By `Sam Levang `_. - Added ``write_inherited_coords`` option to :py:meth:`DataTree.to_netcdf` From 3e98ddf6735a66afb634fb9d75d11b29740ab46c Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Fri, 22 Nov 2024 23:10:59 +0100 Subject: [PATCH 08/15] try installing `dask` + `distributed` --- ci/requirements/environment-3.13.yml | 6 +++--- ci/requirements/environment-windows-3.13.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ci/requirements/environment-3.13.yml b/ci/requirements/environment-3.13.yml index 212c365f637..f43a5f70735 100644 --- a/ci/requirements/environment-3.13.yml +++ b/ci/requirements/environment-3.13.yml @@ -9,9 +9,9 @@ dependencies: - bottleneck - cartopy - cftime - # - dask-core - # - dask-expr - # - distributed + - dask-core + - dask-expr + - distributed - flox - fsspec - h5netcdf diff --git a/ci/requirements/environment-windows-3.13.yml b/ci/requirements/environment-windows-3.13.yml index 46d69da69cc..b699dc1b482 100644 --- a/ci/requirements/environment-windows-3.13.yml +++ b/ci/requirements/environment-windows-3.13.yml @@ -7,9 +7,9 @@ dependencies: - bottleneck - cartopy - cftime - # - dask-core - # - dask-expr - # - distributed + - dask-core + - dask-expr + - distributed - flox - fsspec - h5netcdf From 18d6e8ad701df6691ed9d0f7e7ce692defe081fd Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Mon, 25 Nov 2024 12:24:44 +0100 Subject: [PATCH 09/15] move the whats-new entry --- doc/whats-new.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 805d4bc72b4..6d4e13473f3 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -21,6 +21,8 @@ v.2024.11.1 (unreleased) New Features ~~~~~~~~~~~~ +- support python 3.13 (no free-threading) (:issue:`9664`, :pull:`9681`) + By `Justus Magin `_. Breaking changes @@ -56,8 +58,6 @@ Benoit Bovy, Deepak Cherian, Dimitri Papadopoulos Orfanos, Holly Mandel, James B New Features ~~~~~~~~~~~~ -- support python 3.13 (no free-threading) (:issue:`9664`, :pull:`9681`) - By `Justus Magin `_. - Added :py:meth:`DataTree.persist` method (:issue:`9675`, :pull:`9682`). By `Sam Levang `_. - Added ``write_inherited_coords`` option to :py:meth:`DataTree.to_netcdf` From 50ecda16ccf390246d23bf1bf99b07e34d984825 Mon Sep 17 00:00:00 2001 From: Deepak Cherian Date: Tue, 3 Dec 2024 11:39:51 -0700 Subject: [PATCH 10/15] Update .github/workflows/ci.yaml --- .github/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 79702ef1eea..d65c53ed75c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -47,7 +47,7 @@ jobs: matrix: os: ["ubuntu-latest", "macos-latest", "windows-latest"] # Bookend python versions - python-version: ["3.10", "3.12", "3.13"] + python-version: ["3.10", "3.13"] env: [""] include: # Minimum python version: From d6d9bd9bdac48c08893efd9396ee84d5679b35ee Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Thu, 30 Jan 2025 17:21:55 +0100 Subject: [PATCH 11/15] explicitly install `pyarrow` --- ci/requirements/environment-3.13.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/requirements/environment-3.13.yml b/ci/requirements/environment-3.13.yml index fe72d8928b5..cca3a7a746b 100644 --- a/ci/requirements/environment-3.13.yml +++ b/ci/requirements/environment-3.13.yml @@ -33,7 +33,8 @@ dependencies: - pip - pooch - pre-commit - # - pydap + - pyarrow # pandas raises a deprecation warning without this, breaking doctests + - pydap - pytest - pytest-cov - pytest-env From b0439a794315df7ff6fc254ec23efdcb81101f61 Mon Sep 17 00:00:00 2001 From: Justus Magin Date: Thu, 30 Jan 2025 17:22:12 +0100 Subject: [PATCH 12/15] install `numba` and packages depending on it --- ci/requirements/environment-3.13.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/requirements/environment-3.13.yml b/ci/requirements/environment-3.13.yml index cca3a7a746b..82dff7575fa 100644 --- a/ci/requirements/environment-3.13.yml +++ b/ci/requirements/environment-3.13.yml @@ -22,8 +22,8 @@ dependencies: - matplotlib-base - nc-time-axis - netcdf4 - # - numba - # - numbagg + - numba + - numbagg - numexpr - numpy - opt_einsum @@ -43,7 +43,7 @@ dependencies: - rasterio - scipy - seaborn - # - sparse + - sparse - toolz - typing_extensions - zarr From 28757c9383795dc19880150e9c76bbbf0b6d6cd9 Mon Sep 17 00:00:00 2001 From: Deepak Cherian Date: Wed, 12 Feb 2025 09:09:02 -0700 Subject: [PATCH 13/15] More to 3.13, prep for 3.14, bump all-but-dask to 3.12 --- .github/workflows/ci.yaml | 15 +++++++-------- ...{environment-3.13.yml => environment-3.14.yml} | 4 ++-- ...dows-3.13.yml => environment-windows-3.14.yml} | 0 3 files changed, 9 insertions(+), 10 deletions(-) rename ci/requirements/{environment-3.13.yml => environment-3.14.yml} (96%) rename ci/requirements/{environment-windows-3.13.yml => environment-windows-3.14.yml} (100%) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4b7c6202944..713da24f577 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -59,14 +59,13 @@ jobs: os: ubuntu-latest # Latest python version: - env: "all-but-numba" - python-version: "3.12" + python-version: "3.13" os: ubuntu-latest - env: "all-but-dask" - # Not 3.12 because of pint - python-version: "3.11" + python-version: "3.12" os: ubuntu-latest - env: "flaky" - python-version: "3.12" + python-version: "3.13" os: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -78,10 +77,10 @@ jobs: if [[ ${{ matrix.os }} == windows* ]] ; then - if [[ ${{ matrix.python-version }} != "3.13" ]]; then + if [[ ${{ matrix.python-version }} != "3.14" ]]; then echo "CONDA_ENV_FILE=ci/requirements/environment-windows.yml" >> $GITHUB_ENV else - echo "CONDA_ENV_FILE=ci/requirements/environment-windows-3.13.yml" >> $GITHUB_ENV + echo "CONDA_ENV_FILE=ci/requirements/environment-windows-3.14.yml" >> $GITHUB_ENV fi elif [[ "${{ matrix.env }}" != "" ]] ; then @@ -98,10 +97,10 @@ jobs: echo "PYTEST_ADDOPTS=-W default" >> $GITHUB_ENV fi else - if [[ ${{ matrix.python-version }} != "3.13" ]]; then + if [[ ${{ matrix.python-version }} != "3.14" ]]; then echo "CONDA_ENV_FILE=ci/requirements/environment.yml" >> $GITHUB_ENV else - echo "CONDA_ENV_FILE=ci/requirements/environment-3.13.yml" >> $GITHUB_ENV + echo "CONDA_ENV_FILE=ci/requirements/environment-3.14.yml" >> $GITHUB_ENV fi fi diff --git a/ci/requirements/environment-3.13.yml b/ci/requirements/environment-3.14.yml similarity index 96% rename from ci/requirements/environment-3.13.yml rename to ci/requirements/environment-3.14.yml index 82dff7575fa..90c0c91e151 100644 --- a/ci/requirements/environment-3.13.yml +++ b/ci/requirements/environment-3.14.yml @@ -22,8 +22,8 @@ dependencies: - matplotlib-base - nc-time-axis - netcdf4 - - numba - - numbagg + # - numba + # - numbagg - numexpr - numpy - opt_einsum diff --git a/ci/requirements/environment-windows-3.13.yml b/ci/requirements/environment-windows-3.14.yml similarity index 100% rename from ci/requirements/environment-windows-3.13.yml rename to ci/requirements/environment-windows-3.14.yml From d330f3d63d162f850d396b809a41ac7a49590ec2 Mon Sep 17 00:00:00 2001 From: Deepak Cherian Date: Wed, 12 Feb 2025 09:11:42 -0700 Subject: [PATCH 14/15] comment out sparse --- ci/requirements/environment-3.14.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/requirements/environment-3.14.yml b/ci/requirements/environment-3.14.yml index 90c0c91e151..cca3a7a746b 100644 --- a/ci/requirements/environment-3.14.yml +++ b/ci/requirements/environment-3.14.yml @@ -43,7 +43,7 @@ dependencies: - rasterio - scipy - seaborn - - sparse + # - sparse - toolz - typing_extensions - zarr From 6e6f03eac8edb909f85fda7db71ece9fa97ad3fd Mon Sep 17 00:00:00 2001 From: Deepak Cherian Date: Wed, 12 Feb 2025 09:12:40 -0700 Subject: [PATCH 15/15] fix whats-new --- doc/whats-new.rst | 4 ---- 1 file changed, 4 deletions(-) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 52b3c1b552d..6a3666d58ac 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -114,10 +114,6 @@ eventually be deprecated. New Features ~~~~~~~~~~~~ -- Better support wrapping additional array types (e.g. ``cupy`` or ``jax``) by calling generalized - duck array operations throughout more xarray methods. (:issue:`7848`, :pull:`9798`). -- Relax nanosecond datetime restriction in CF time decoding (:issue:`7493`, :pull:`9618`, :pull:`9977`, :pull:`9966`, :pull:`9999`). - By `Kai Mühlbauer `_ and `Spencer Clark `_. - Relax nanosecond resolution restriction in CF time coding and permit :py:class:`numpy.datetime64` or :py:class:`numpy.timedelta64` dtype arrays with ``"s"``, ``"ms"``, ``"us"``, or ``"ns"`` resolution throughout xarray pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy