From 0a5a5bf6af431462b0ed3f377e4a55005e97ccf0 Mon Sep 17 00:00:00 2001 From: Sylwester Arabas Date: Mon, 15 Apr 2024 09:24:44 +0200 Subject: [PATCH] scipy version ci req dependent on Python ver --- examples/setup.py | 2 +- setup.py | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/examples/setup.py b/examples/setup.py index 8234f4d1..602c2cd3 100644 --- a/examples/setup.py +++ b/examples/setup.py @@ -30,7 +30,7 @@ def get_long_description(): "pystrict", "matplotlib", "ipywidgets" + "<8.0.3" if CI else "", - "scipy" + ("==1.10.1" if CI else ""), + "scipy", "pint", "joblib", "sympy", diff --git a/setup.py b/setup.py index ad993e7e..0fab8fb7 100644 --- a/setup.py +++ b/setup.py @@ -4,6 +4,7 @@ import os import platform +import sys from setuptools import find_packages, setup @@ -18,6 +19,12 @@ def get_long_description(): CI = "CI" in os.environ _32bit = platform.architecture()[0] == "32bit" +scipy_ci_req_by_py_ver = { + 8: "1.10.1", + 11: "1.10.1", + 12: "1.13.1", +} + setup( name="PyMPDATA", description="Numba-accelerated Pythonic implementation of MPDATA " @@ -33,7 +40,16 @@ def get_long_description(): "tests": [ "PyMPDATA-examples", "matplotlib" + (">=3.2.2" if CI else ""), - "scipy" + (">=1.10.1" if CI and not _32bit else ""), + "scipy" + + ( + { + 8: "==1.10.1", + 11: "==1.10.1", + 12: "==1.13.0", + }[sys.version_info.minor] + if CI and not _32bit + else "" + ), "jupyter-core" + ("<5.0.0" if CI else ""), "ipywidgets" + ("!=8.0.3" if CI else ""), "ghapi",