mirror of
https://github.com/elastic/eland.git
synced 2025-07-11 00:02:14 +08:00
Align dependencies between requirement files and setup.py (#460)
This commit is contained in:
parent
8294224e34
commit
b5ea1cf228
@ -1,19 +1,36 @@
|
|||||||
|
#
|
||||||
|
# Basic requirements
|
||||||
|
#
|
||||||
elasticsearch>=8,<9
|
elasticsearch>=8,<9
|
||||||
pandas>=1.2.0
|
pandas>=1.2,<2
|
||||||
matplotlib
|
matplotlib<4
|
||||||
|
numpy<2
|
||||||
|
tqdm<5
|
||||||
|
|
||||||
|
#
|
||||||
|
# Extras
|
||||||
|
#
|
||||||
|
scikit-learn>=0.22.1,<2
|
||||||
|
xgboost>=0.90,<2
|
||||||
|
scikit-learn>=0.22.1,<2
|
||||||
|
lightgbm>=2,<4
|
||||||
|
|
||||||
|
# PyTorch doesn't support Python 3.10 yet (pytorch/pytorch#66424)
|
||||||
|
sentence-transformers>=2.1.0,<3; python_version<'3.10'
|
||||||
|
torch>=1.9.0,<2; python_version<'3.10'
|
||||||
|
transformers[torch]>=4.12.0,<5; python_version<'3.10'
|
||||||
|
|
||||||
|
#
|
||||||
|
# Testing
|
||||||
|
#
|
||||||
pytest>=5.2.1
|
pytest>=5.2.1
|
||||||
pytest-mock
|
pytest-mock
|
||||||
nbval
|
|
||||||
numpydoc>=0.9.0
|
|
||||||
scikit-learn>=0.22.1
|
|
||||||
xgboost>=1
|
|
||||||
nox
|
|
||||||
lightgbm
|
|
||||||
pytest-cov
|
pytest-cov
|
||||||
mypy
|
nbval
|
||||||
huggingface-hub>=0.0.17
|
|
||||||
|
|
||||||
# Torch doesn't support Python 3.10 yet (pytorch/pytorch#66424)
|
#
|
||||||
sentence-transformers>=2.1.0; python_version<'3.10'
|
# Docs
|
||||||
torch>=1.9.0; python_version<'3.10'
|
#
|
||||||
transformers[torch]>=4.12.0; python_version<'3.10'
|
nox
|
||||||
|
numpydoc>=0.9.0
|
||||||
|
mypy
|
@ -1,3 +1,7 @@
|
|||||||
elasticsearch>=8.0.0a1,<9
|
#
|
||||||
pandas>=1
|
# Basic requirements
|
||||||
matplotlib
|
#
|
||||||
|
elasticsearch>=8,<9
|
||||||
|
pandas>=1.2,<2
|
||||||
|
matplotlib<4
|
||||||
|
numpy<2
|
||||||
|
8
setup.py
8
setup.py
@ -56,7 +56,7 @@ with open(path.join(here, "README.md"), "r", "utf-8") as f:
|
|||||||
|
|
||||||
extras = {
|
extras = {
|
||||||
"xgboost": ["xgboost>=0.90,<2"],
|
"xgboost": ["xgboost>=0.90,<2"],
|
||||||
"scikit-learn": ["scikit-learn>=0.22.1,<1"],
|
"scikit-learn": ["scikit-learn>=0.22.1,<2"],
|
||||||
"lightgbm": ["lightgbm>=2,<4"],
|
"lightgbm": ["lightgbm>=2,<4"],
|
||||||
"pytorch": [
|
"pytorch": [
|
||||||
"sentence-transformers>=2.1.0,<3",
|
"sentence-transformers>=2.1.0,<3",
|
||||||
@ -83,9 +83,9 @@ setup(
|
|||||||
packages=find_packages(include=["eland", "eland.*"]),
|
packages=find_packages(include=["eland", "eland.*"]),
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"elasticsearch>=8,<9",
|
"elasticsearch>=8,<9",
|
||||||
"pandas>=1.2,<1.4",
|
"pandas>=1.2,<2",
|
||||||
"matplotlib",
|
"matplotlib<4",
|
||||||
"numpy",
|
"numpy<2",
|
||||||
],
|
],
|
||||||
scripts=["bin/eland_import_hub_model"],
|
scripts=["bin/eland_import_hub_model"],
|
||||||
python_requires=">=3.7",
|
python_requires=">=3.7",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user