-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
117 lines (105 loc) · 2.81 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import find_packages, setup
with open("README.md") as readme_file:
readme = readme_file.read()
with open("CHANGELOG.md") as history_file:
history = history_file.read()
# Common libraries
requirements = [
"appdirs==1.4.4",
"boto3==1.17.74",
"Click>=6.0",
"deprecation>=2.0.6",
"dill==0.3.4",
"docker==5.0.0",
"GitPython==3.1.17",
"google-api-python-client==1.12.8",
"google-auth==1.32.1",
"google-cloud==0.34.0",
"google-cloud-container==2.5.0",
"grpcio==1.34.0",
"kubernetes==12.0.1",
"lmdb==1.2.1",
"matplotlib==3.4.2",
"numpy==1.20.3",
"oauth2client==4.1.3",
"sklearn==0.0",
"supermutes==0.2.5",
"tabulate>=0.8.5",
"tensorpack==0.11",
]
# Libraries used by torch
torch_reqs = [
"sacrebleu==1.5.1",
"torch==1.9.0",
"torchvision==0.10.0",
]
tensorflow_reqs = [
"tensorflow==1.13.2",
]
setup_requirements = [
"pytest-runner",
]
lint_requirements = [
"black==21.5b2",
"isort==5.6.4",
]
test_requirements = (
[
"codecov==2.1.9",
"coverage==5.5",
"freezegun==1.0.0",
"pre-commit",
"pytest>=3",
"pytest-cov==2.10.1",
"pytest-mock==3.3.1",
"wcwidth==0.2.5",
]
+ lint_requirements
+ torch_reqs
+ tensorflow_reqs
)
dev_requirements = torch_reqs + tensorflow_reqs + lint_requirements + test_requirements
extras = {
"test": test_requirements,
"lint": lint_requirements,
"torch": torch_reqs,
"tensorflow": tensorflow_reqs,
"dev": dev_requirements,
}
setup(
author="Ralf Grubenmann",
author_email="ralf.grubenmann@epfl.ch",
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
],
description="A public and reproducible collection of reference implementations and benchmark suite for distributed machine learning systems.",
entry_points={
"console_scripts": [
"mlbench=mlbench_core.cli:cli_group",
],
},
install_requires=requirements,
license="Apache Software License 2.0",
long_description=readme + "\n\n" + history,
include_package_data=True,
keywords="mlbench",
name="mlbench_core",
packages=find_packages(),
setup_requires=setup_requirements,
test_suite="tests",
tests_require=test_requirements,
extras_require=extras,
url="https://github.com/mlbench/mlbench_core",
version="3.0.0-dev23",
zip_safe=False,
)