-
Notifications
You must be signed in to change notification settings - Fork 20
/
setup.py
57 lines (51 loc) · 1.52 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 io
from setuptools import setup
from torchbench.version import __version__
name = "torchbench"
author = "Atlas ML"
author_email = "[email protected]"
license = "Apache-2.0"
url = "https://sotabench.com"
description = (
"Easily benchmark Machine Learning models on selected tasks and datasets"
" - with PyTorch"
)
def get_requirements():
with io.open("requirements.txt") as f:
return [
line.strip()
for line in f.readlines()
if not line.strip().startswith("#")
]
setup(
name=name,
version=__version__,
author=author,
author_email=author_email,
maintainer=author,
maintainer_email=author_email,
description=description,
long_description=io.open("README.md", "r", encoding="utf-8").read(),
long_description_content_type="text/markdown",
url=url,
platforms=["Windows", "POSIX", "MacOSX"],
license=license,
packages=[
name,
"torchbench.datasets",
"torchbench.image_classification",
"torchbench.image_generation",
"torchbench.language_modelling",
"torchbench.object_detection",
"torchbench.semantic_segmentation",
],
include_package_data=True,
install_requires=get_requirements(),
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
)