forked from fairlearn/fairlearn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (41 loc) · 1.51 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
# Copyright (c) Microsoft Corporation and Fairlearn contributors.
# Licensed under the MIT License.
import setuptools
import fairlearn
# Fetch ReadMe
with open("README.rst", "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.7',
install_requires=install_requires,
extras_require=extras_require,
classifiers=[
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 3 - Alpha"
],
include_package_data=True,
zip_safe=False,
)