-
Notifications
You must be signed in to change notification settings - Fork 252
/
setup.py
75 lines (68 loc) · 2.87 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
from setuptools import find_packages, setup
def readme():
with open("README.md", encoding="utf-8") as f:
return f.read()
# read version file
exec(open('alibi/version.py').read())
extras_require = {
'ray': ['ray>=0.8.7, <3.0.0'],
# shap is separated due to build issues, see https://github.com/slundberg/shap/pull/1802
'shap': [
'shap>=0.40.0, <0.44.0', # versioning: https://github.com/SeldonIO/alibi/issues/333
'numba>=0.50.0, !=0.54.0, <0.60.0', # Avoid 0.54 due to: https://github.com/SeldonIO/alibi/issues/466
],
'tensorflow': ['tensorflow>=2.0.0, !=2.6.0, !=2.6.1, <2.15.0'],
'torch': ['torch>=1.9.0, <3.0.0'],
'all': [
'ray>=0.8.7, <3.0.0',
'shap>=0.40.0, <0.44.0',
'numba>=0.50.0, !=0.54.0, <0.60.0',
'tensorflow>=2.0.0, !=2.6.0, !=2.6.1, <2.15.0',
'torch>=1.9.0, <3.0.0'
]
}
if __name__ == '__main__':
setup(name='alibi',
author='Seldon Technologies Ltd.',
author_email='[email protected]',
version=__version__, # type: ignore # noqa F821
description='Algorithms for monitoring and explaining machine learning models',
long_description=readme(),
long_description_content_type='text/markdown',
url='https://github.com/SeldonIO/alibi',
license="Business Source License 1.1",
packages=find_packages(),
include_package_data=True,
python_requires='>=3.8',
# lower bounds based on Debian Stable versions where available
install_requires=[
'numpy>=1.16.2, <2.0.0',
'pandas>=1.0.0, <3.0.0',
'scikit-learn>=1.0.0, <2.0.0',
'spacy[lookups]>=2.0.0, <4.0.0',
'blis<0.8.0', # Windows memory issues https://github.com/explosion/thinc/issues/771
'scikit-image>=0.17.2, <0.23', # introduced `start_label` argument for `slic`
'requests>=2.21.0, <3.0.0',
'Pillow>=5.4.1, <11.0',
'attrs>=19.2.0, <24.0.0',
'scipy>=1.1.0, <2.0.0',
'matplotlib>=3.0.0, <4.0.0',
'typing-extensions>=3.7.4.3',
'dill>=0.3.0, <0.4.0',
'transformers>=4.7.0, <5.0.0',
'tqdm>=4.28.1, <5.0.0',
],
extras_require=extras_require,
test_suite='tests',
zip_safe=False,
classifiers=[
"Intended Audience :: Science/Research",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"License :: Other/Proprietary License",
"Topic :: Scientific/Engineering",
])