-
Notifications
You must be signed in to change notification settings - Fork 839
/
setup.py
67 lines (61 loc) · 2.69 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
from setuptools import setup, find_packages
from itertools import chain
long_description = """The AI Fairness 360 toolkit is an open-source library to help detect and mitigate bias in machine
learning models. The AI Fairness 360 Python package includes a comprehensive set of metrics for datasets and models to
test for biases, explanations for these metrics, and algorithms to mitigate bias in datasets and models.
We have developed the package with extensibility in mind. This library is still in development. We encourage the
contribution of your datasets, metrics, explainers, and debiasing algorithms."""
version = '0.6.1'
with open("aif360/version.py", 'w') as f:
f.write('# generated by setup.py\nversion = "{}"\n'.format(version))
extras = {
'OptimPreproc': ['cvxpy>=1.0'],
'AdversarialDebiasing': ['tensorflow>=1.13.1'],
'DisparateImpactRemover': ['BlackBoxAuditing'],
'LFR': ['torch'],
'LIME': ['lime'],
'ART': ['adversarial-robustness-toolbox>=1.0.0'],
'Reductions': ['fairlearn~=0.7'],
'FairAdapt': ['rpy2'],
'inFairness': ['skorch', 'inFairness>=0.2.2'],
'notebooks': ['jupyter', 'tqdm', 'igraph[plotting]', 'lightgbm', 'seaborn', 'ipympl'],
'OptimalTransport': ['pot'],
'FACTS': ['mlxtend', 'colorama', 'tqdm'],
}
extras['tests'] = list(chain(*extras.values(), ['pytest>=3.5', 'pytest-cov>=2.8.1']))
extras['docs'] = ['sphinx', 'jinja2>3.1.0', 'sphinx_rtd_theme'] + extras['Reductions']
extras['all'] = list(set(chain(*extras.values())))
setup(name='aif360',
version=version,
description='IBM AI Fairness 360',
author='aif360 developers',
author_email='[email protected]',
url='https://github.com/Trusted-AI/AIF360',
long_description=long_description,
long_description_content_type='text/markdown',
license='Apache License 2.0',
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
packages=find_packages(include=["aif360*"]),
python_requires='>=3.8',
install_requires=[
'numpy>=1.16',
'scipy>=1.2.0',
'pandas>=0.24.0',
'scikit-learn>=1.0',
'matplotlib',
],
extras_require=extras,
package_data={'': ['*.md', '*.R']},
include_package_data=True,
zip_safe=False)