Skip to content

Commit

Permalink
scipy version ci req dependent on Python ver
Browse files Browse the repository at this point in the history
  • Loading branch information
slayoo committed Apr 15, 2024
1 parent 065d6ab commit 0a5a5bf
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
18 changes: 17 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import os
import platform
import sys

from setuptools import find_packages, setup

Expand All @@ -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 "
Expand All @@ -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",
Expand Down

0 comments on commit 0a5a5bf

Please sign in to comment.