forked from fairlearn/fairlearn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (55 loc) · 2.07 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
# Copyright (c) Microsoft Corporation and contributors.
# Licensed under the MIT License.
import setuptools
import fairlearn
# Fetch ReadMe
with open("README.md", "r") as fh:
long_description = fh.read()
# Use requirements.txt to set the install_requires
with open('requirements.txt') as f:
install_requires = [line.strip() for line in f]
# Fetch separate requirements file for each extension
extras = ["customplots"]
extras_require = dict()
for e in extras:
req_file = "requirements-{0}.txt".format(e)
with open(req_file) as f:
extras_require[e] = [line.strip() for line in f]
setuptools.setup(
name=fairlearn.__name__,
version=fairlearn.__version__,
author="Miroslav Dudik, Richard Edgar, Brandon Horn, Roman Lutz",
author_email="[email protected]",
description="Algorithms for mitigating unfairness in supervised machine learning",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/fairlearn/fairlearn",
packages=setuptools.find_packages(),
python_requires='>=3.6',
install_requires=install_requires,
extras_require=extras_require,
classifiers=[
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 3 - Alpha"
],
include_package_data=True,
data_files=[
('share/jupyter/nbextensions/fairlearn-widget', [
'fairlearn/widget/static/extension.js',
'fairlearn/widget/static/extension.js.map',
'fairlearn/widget/static/index.js',
'fairlearn/widget/static/index.js.map'
]),
("etc/jupyter/nbconfig/notebook.d", [
"jupyter-config/nbconfig/notebook.d/fairlearn-widget.json"
]),
('share/jupyter/lab/extensions', [
'fairlearn/widget/js/'
'fairlearn_widget/labextension/fairlearn-widget-0.1.0.tgz'
])],
zip_safe=False,
)