-
Notifications
You must be signed in to change notification settings - Fork 212
/
setup.py
74 lines (62 loc) · 2.26 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
73
74
from __future__ import absolute_import, division, print_function
import setuptools
__name__ = 'federatedscope'
__version__ = '0.3.0'
URL = 'https://github.com/alibaba/FederatedScope'
minimal_requires = [
'numpy<1.23.0', 'scikit-learn==1.0.2', 'scipy==1.7.3', 'pandas',
'grpcio>=1.45.0', 'grpcio-tools', 'pyyaml>=5.1', 'fvcore', 'iopath',
'wandb', 'tensorboard', 'tensorboardX', 'pympler', 'protobuf==3.19.4',
'matplotlib'
]
test_requires = ['pytest', 'pytest-cov']
dev_requires = test_requires + ['pre-commit', 'networkx', 'matplotlib']
org_requires = ['paramiko==2.11.0', 'celery[redis]', 'cmd2']
app_requires = [
'torch-geometric==2.0.4', 'nltk', 'transformers==4.16.2',
'tokenizers==0.10.3', 'datasets', 'sentencepiece', 'textgrid', 'typeguard',
'openml==0.12.2'
]
benchmark_hpo_requires = [
'configspace==0.5.0', 'hpbandster==0.7.4', 'smac==1.3.3', 'optuna==2.10.0'
]
benchmark_htl_requires = ['learn2learn']
full_requires = org_requires + benchmark_hpo_requires + \
benchmark_htl_requires + app_requires
with open("README.md", "r", encoding='UTF-8') as fh:
long_description = fh.read()
setuptools.setup(
name=__name__,
version=__version__,
author="Alibaba Damo Academy",
author_email="[email protected]",
description="Federated learning package",
long_description=long_description,
long_description_content_type="text/markdown",
url=URL,
download_url=f'{URL}/archive/{__version__}.tar.gz',
keywords=['deep-learning', 'federated-learning', 'benchmark'],
packages=[
package for package in setuptools.find_packages()
if package.startswith(__name__)
],
install_requires=minimal_requires,
extras_require={
'test': test_requires,
'app': app_requires,
'org': org_requires,
'dev': dev_requires,
'hpo': benchmark_hpo_requires,
'htl': benchmark_htl_requires,
'full': full_requires
},
license="Apache License 2.0",
classifiers=[
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
python_requires='>=3.9',
)