Restrict NumPy and Pandas versions (#539)

Shap is incompatible with NumPy 1.24 due to a deprecated usage becoming
an error. There is no fix in Shap yet so an earlier version of NumPy must
be used.
Pandas 2.0 was recently released we will continue to use the latest 1.5 release 
to avoid any incompatibilities.
This commit is contained in:
David Kyle 2023-05-19 16:04:33 +01:00 committed by GitHub
parent f7ea3bd476
commit b507bb6d6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -2,9 +2,9 @@
# Basic requirements
#
elasticsearch>=8.3,<9
pandas>=1.5
pandas>=1.5,<2
matplotlib>=3.6
numpy<2
numpy<1.24
tqdm<5
#

View File

@ -2,6 +2,6 @@
# Basic requirements
#
elasticsearch>=8.3,<9
pandas>=1.5
pandas>=1.5,<2
matplotlib>=3.6
numpy<2

View File

@ -83,9 +83,9 @@ setup(
packages=find_packages(include=["eland", "eland.*"]),
install_requires=[
"elasticsearch>=8.3,<9",
"pandas>=1.5",
"pandas>=1.5,<2",
"matplotlib>=3.6",
"numpy<2",
"numpy<1.24",
],
scripts=["bin/eland_import_hub_model"],
python_requires=">=3.8",