Skip to content

Commit

Permalink
silence NumPy deprecation warning on CI for Python 3.12 by pinning ve…
Browse files Browse the repository at this point in the history
…rsion to 1.26.4 (#1383)
  • Loading branch information
slayoo authored Sep 1, 2024
1 parent cd9d730 commit 5bf30f9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,18 @@ def get_long_description():
else ">=0.51.2"
),
# TODO #1344: (numpy 2.0.0 incompatibility in https://github.com/bjodah/chempy/issues/234)
"numpy" + ("==1.24.4" if CI else "<2.0.0"),
"numpy"
+ (
{
8: "==1.24.4",
9: "==1.24.4",
10: "==1.24.4",
11: "==1.24.4",
12: "==1.26.4",
}[sys.version_info.minor]
if CI
else ""
),
"Pint" + ("==0.21.1" if CI else ""),
"chempy" + ("==0.8.3" if CI else ""),
"scipy"
Expand Down

0 comments on commit 5bf30f9

Please sign in to comment.