-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
56 lines (49 loc) · 1.85 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
import setuptools
# Developer self-reminder for uploading to PyPI:
# - Install: wheel, twine
# - Build : python setup.py sdist bdist_wheel
# - Deploy : twine upload dist/*
#
# Coverage for v2: pytest tests/experimental --cov=fairbench/experimental --cov-report=html
long_description = (
"A comprehensive AI fairness exploration framework.<br>"
"**Homepage:** https://fairbench.readthedocs.io<br>"
"**Repository:** https://github.com/mever-team/FairBench"
)
def read_requirements(filename):
try:
with open(filename, "r") as file:
return file.read().splitlines()
except FileNotFoundError:
print(f"Warning: {filename} not found. Using an empty list of requirements.")
return []
requirements = read_requirements("requirements.txt")
interactive_requirements = read_requirements("requirements[interactive].txt")
vision_requirements = read_requirements("requirements[vision].txt")
llm_requirements = read_requirements("requirements[llm].txt")
graph_requirements = read_requirements("requirements[graph].txt")
# Setup configuration
setuptools.setup(
name="fairbench",
version="0.7.5",
author="Emmanouil (Manios) Krasanakis",
author_email="[email protected]",
description="A fairness assessment framework",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://fairbench.readthedocs.io",
packages=setuptools.find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
python_requires=">=3.9",
install_requires=requirements,
extras_require={
"interactive": interactive_requirements,
"vision": vision_requirements,
"graph": graph_requirements,
"llm": llm_requirements,
},
)