From 677a8e6c3ccb7bb25fe20e184f93886fa9be6e90 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Mon, 7 Sep 2026 23:10:20 +0800 Subject: [PATCH] SPEC 0: Bump minimum supported version to NumPy 2.2 and xarray 2024.10 --- .github/workflows/ci_tests.yaml | 4 ++-- .github/workflows/ci_tests_legacy.yaml | 4 ++-- environment.yml | 4 ++-- pyproject.toml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci_tests.yaml b/.github/workflows/ci_tests.yaml index b870051d7ec..5a6788afaf3 100644 --- a/.github/workflows/ci_tests.yaml +++ b/.github/workflows/ci_tests.yaml @@ -77,9 +77,9 @@ jobs: include: # Python 3.12 + core packages (minimum supported versions) + optional packages (minimum supported versions if any) - python-version: '3.12' - numpy-version: '2.1' + numpy-version: '2.2' pandas-version: '=2.3' - xarray-version: '=2024.7' + xarray-version: '=2024.10' optional-packages: ' contextily geopandas ipython pyarrow-core rioxarray netCDF4 sphinx-gallery' # Python 3.14 + core packages (latest versions) + optional packages - python-version: '3.14' diff --git a/.github/workflows/ci_tests_legacy.yaml b/.github/workflows/ci_tests_legacy.yaml index f42024a18bd..6e563b6aada 100644 --- a/.github/workflows/ci_tests_legacy.yaml +++ b/.github/workflows/ci_tests_legacy.yaml @@ -61,9 +61,9 @@ jobs: python=3.12 gmt=${{ matrix.gmt_version }} ghostscript - numpy=2.1 + numpy=2.2 pandas=2.3 - xarray=2024.7 + xarray=2024.10 packaging=24.2 contextily=1.5 geopandas=1.0 diff --git a/environment.yml b/environment.yml index 3bd5bddfc7a..7c280a94b58 100644 --- a/environment.yml +++ b/environment.yml @@ -7,9 +7,9 @@ dependencies: # Required dependencies - gmt=6.7.0 - ghostscript=10.07.1 - - numpy>=2.1 + - numpy>=2.2 - pandas>=2.3 - - xarray>=2024.7 + - xarray>=2024.10 - packaging>=24.2 # Optional dependencies - contextily>=1.5 diff --git a/pyproject.toml b/pyproject.toml index fecd5c3e07d..8b0957086de 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,9 +35,9 @@ classifiers = [ "Programming Language :: Python :: 3.14", ] dependencies = [ - "numpy>=2.1", + "numpy>=2.2", "pandas>=2.3", - "xarray>=2024.7", + "xarray>=2024.10", "packaging>=24.2", ] dynamic = ["version"]