From 0c9cb480706129a200440da7aa22e9cf9440fcba Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Tue, 29 Apr 2025 23:36:30 +1200 Subject: [PATCH 1/2] Bump minimum supported version to packaging>=24.2 Setuptools>=77.0.0 requires "packaging>=24.2" to work properly. Xref https://github.com/pypa/setuptools/issues/4894 --- .github/workflows/ci_tests_legacy.yaml | 2 +- environment.yml | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci_tests_legacy.yaml b/.github/workflows/ci_tests_legacy.yaml index 6701461da62..44a33a45c96 100644 --- a/.github/workflows/ci_tests_legacy.yaml +++ b/.github/workflows/ci_tests_legacy.yaml @@ -64,7 +64,7 @@ jobs: numpy=1.26 pandas xarray - packaging + packaging=24.2 contextily=1.5 geopandas=1.0 ipython diff --git a/environment.yml b/environment.yml index 05e18df3426..bf78c41b84e 100644 --- a/environment.yml +++ b/environment.yml @@ -10,7 +10,7 @@ dependencies: - numpy>=1.26 - pandas>=2.1 - xarray>=2023.07 - - packaging + - packaging>=24.2 # Optional dependencies - contextily>=1.5 - geopandas>=1.0 diff --git a/pyproject.toml b/pyproject.toml index 82b07cd59f0..d8007e4c2d8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -38,7 +38,7 @@ dependencies = [ "numpy>=1.26", "pandas>=2.1", "xarray>=2023.07", - "packaging", + "packaging>=24.2", ] dynamic = ["version"] From eb3e47e9fa5457671264ed0b7eda87a01514f303 Mon Sep 17 00:00:00 2001 From: Wei Ji <23487320+weiji14@users.noreply.github.com> Date: Wed, 30 Apr 2025 11:50:40 +1200 Subject: [PATCH 2/2] Pin to packaging>=24.2 in requirements.txt --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 48e2c87bbb4..e17f53add57 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,4 @@ numpy>=1.26 pandas>=2.1 xarray>=2023.07 -packaging +packaging>=24.2