From 11002ba2254abeb3f6e480925366ae72469cb187 Mon Sep 17 00:00:00 2001 From: Tennessee Leeuwenburg Date: Sun, 30 Jun 2024 13:48:57 +1000 Subject: [PATCH 1/4] Add version pins based on somewhat recent rather than latest versions to allow more flexibility for users --- pyproject.toml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1d346cc94..81d4c268d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,11 +20,11 @@ classifiers = [ "Operating System :: OS Independent", ] dependencies = [ - "xarray", - "pandas", - "scipy", - "bottleneck", - "scikit-learn", + "xarray ~= 2024", + "pandas ~= 2.2", + "scipy" ~= 1.1", + "bottleneck ~= 1.3", + "scikit-learn ~= 1.4", ] [project.optional-dependencies] From 85dad6aafaf2c5428db0cadf5919972e9fb7a708 Mon Sep 17 00:00:00 2001 From: Tennessee Leeuwenburg Date: Sun, 30 Jun 2024 14:13:29 +1000 Subject: [PATCH 2/4] Typo, thought this was included in the last commit already --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 81d4c268d..e386b9025 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,7 +22,7 @@ classifiers = [ dependencies = [ "xarray ~= 2024", "pandas ~= 2.2", - "scipy" ~= 1.1", + "scipy ~= 1.1", "bottleneck ~= 1.3", "scikit-learn ~= 1.4", ] From b1055871de3fbe330956a01382ac7104605ddd2a Mon Sep 17 00:00:00 2001 From: Tennessee Leeuwenburg Date: Sun, 30 Jun 2024 14:22:27 +1000 Subject: [PATCH 3/4] Test alternative version number for xarray dependency The previous code worked on local testing but failed in the pipeline --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index e386b9025..9da7fb21e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,7 +20,7 @@ classifiers = [ "Operating System :: OS Independent", ] dependencies = [ - "xarray ~= 2024", + "xarray ~= 2024.1", "pandas ~= 2.2", "scipy ~= 1.1", "bottleneck ~= 1.3", From 68303e0ad27430f39c79827201ea9c22ea7ce74e Mon Sep 17 00:00:00 2001 From: Tennessee Leeuwenburg Date: Mon, 1 Jul 2024 11:07:26 +1000 Subject: [PATCH 4/4] Update required Python version 3.9 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9da7fb21e..7992f2c40 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ Scores is a package containing mathematical functions \ for the verification, evaluation and optimisation of forecasts, predictions or models. """ readme = "README.md" -requires-python = ">=3.7" +requires-python = ">=3.9" classifiers = [ "Programming Language :: Python :: 3", "License :: OSI Approved :: Apache Software License",