-
Notifications
You must be signed in to change notification settings - Fork 50
/
setup.py
executable file
·73 lines (64 loc) · 2.19 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
#!/usr/bin/env python
from setuptools import setup, find_packages
VERSION = '0.1.8'
LICENSE='Apache 2.0'
INSTALL_REQUIRES = [
'pandas>=0.21.1',
'pyparsing>=2.1.4',
'python-dateutil>=2.6.0',
'pytz',
'scikit-learn>=0.18.1',
'scipy>=0.19.0',
'six>=1.10.0',
'wheel>=0.29.0',
'fire',
'BlackBoxAuditing>=0.1.26'
'ggplot'
]
PACKAGES = find_packages()
PACKAGE_DATA = {
'fairness.data.raw' : ['*.csv','*.txt'],
'fairness.data.preprocessed' : ['*.csv'],
'fairness.algorithms.kamishima' : ['kamfadm-2012ecmlpkdd/*', 'kamfadm-2012ecmlpkdd/*/*',
'kamfadm-2012ecmlpkdd/fadm/__init__.py',
'kamfadm-2012ecmlpkdd/*/*/*'],
'fairness.algorithms.zafar' : ['fair-classification-master/*',
'fair-classification-master/disparate_impact/*',
'fair-classification-master/disparate_impact/run-classifier/*']
}
INCLUDE_PACKAGE_DATA = True
PACKAGE_DIR = {
'fairness.data' : 'fairness/data',
'fairness.algorithms.kamishima' : 'fairness/algorithms/kamishima',
'fairness.algorithms.zafar' : 'fairness/algorithms/zafar'
}
ENTRY_POINTS = {
'console_scripts': [
'fairness-benchmark = fairness.benchmark:main',
'fairness-preprocess = fairness.preprocess:main',
'fairness-analysis = fairness.analysis:main'
],
}
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="fairness",
version=VERSION,
author="See Authors.txt",
author_email="fairness@haverford.edu",
license=LICENSE,
description="Fairness-aware machine learning: algorithms, comparisons, benchmarking",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/algofairness/fairness-comparison",
packages = PACKAGES,
package_data = PACKAGE_DATA,
include_package_data = INCLUDE_PACKAGE_DATA,
package_dir = PACKAGE_DIR,
classifiers=(
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
),
install_requires=INSTALL_REQUIRES
)