forked from fetchai/colearn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
86 lines (82 loc) · 2.47 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
75
76
77
78
79
80
81
82
83
84
85
86
# ------------------------------------------------------------------------------
#
# Copyright 2021 Fetch.AI Limited
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# ------------------------------------------------------------------------------
import setuptools
keras_deps = [
'tensorflow~=2.2.0',
'tensorflow_datasets~=4.2.0',
'tensorflow-privacy~=0.5.0',
]
pytorch_deps = [
'opacus~=0.10.0',
'Pillow~=8.0.1',
'scipy~=1.5.0',
'torch~=1.7.0',
'torchsummary~=1.5.0',
'torchvision~=0.8.0',
]
docs_deps = [
"mkdocs",
"mkdocs-macros-plugin",
"mkdocs-material",
"mkdocs-material-extensions",
"markdown-include",
]
grpc_deps = ['grpcio~=1.35.0',
'grpcio-tools~=1.35.0',
'prometheus_client==0.9.0',
'click'
]
all_deps = keras_deps + pytorch_deps + grpc_deps
long_description = ""
try:
with open("README.md", "r") as fh:
long_description = fh.read()
except FileNotFoundError:
print("README.md file not found, no long description available")
setuptools.setup(
name="colearn",
version="0.2.4",
author="Fetch AI",
author_email="[email protected]",
description="The Standalone Fetch AI Collective Learning Framework",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/fetchai/colearn",
packages=setuptools.find_packages(exclude=("tests", "examples", "docs")),
classifiers=[
# Need to fill in
"Operating System :: OS Independent",
],
python_requires='~=3.7',
install_requires=[
'google-cloud-storage~=1.35.0',
'matplotlib~=3.3.0',
'numpy~=1.16.0',
'pandas~=1.1.0',
'pydantic~=1.7.0',
'scikit-learn~=0.23.0',
],
tests_require=["tox~=3.20.0"],
extras_require={
'keras': keras_deps,
'pytorch': pytorch_deps,
'docs': docs_deps,
'all': all_deps,
'grpc': grpc_deps
},
)