-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
60 lines (53 loc) · 1.64 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
import sys
from setuptools import setup, find_packages
import os
thelibFolder = os.getcwd()
requirementPath = thelibFolder + '/requirements.txt'
if sys.version_info < (3, 7):
sys.exit('Sorry, Python >=3.7 is required for fairlib.')
with open('README.md', encoding="utf8") as f:
# strip the header and badges etc
readme = f.read().split('--------------------')[-1]
try:
with open(requirementPath) as f:
reqs = list(f.read().splitlines())
except:
reqs = [
"tqdm",
"numpy",
"docopt",
"pandas",
"scikit-learn",
"torch",
"PyYAML",
"seaborn",
"matplotlib",
"pickle5 ; python_version < '3.8'",
"transformers",
"sacremoses",
"sentencepiece",
"torchvision"
]
if __name__ == '__main__':
setup(
name='fairlib',
version="0.1.0",
author="Xudong Han",
author_email="[email protected]",
description='Unified framework for assessing and improving fairness.',
long_description=readme,
long_description_content_type='text/markdown',
url='https://github.com/HanXudong/fairlib',
python_requires='>=3.7',
# package_dir={"": ""},
packages=find_packages(),
install_requires=reqs,
include_package_data=True,
package_data={'': ['*.txt', '*.md', '*.opt']},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Natural Language :: English",
],
)