forked from facebookresearch/ClassyVision
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
79 lines (70 loc) · 2.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
import re
import sys
from setuptools import find_namespace_packages, find_packages, setup
if __name__ == "__main__":
if sys.version_info < (3, 6):
sys.exit("Sorry, Python >=3.6 is required for Classy Vision.")
# get version string from module
with open(
os.path.join(os.path.dirname(__file__), "classy_vision/__init__.py"), "r"
) as f:
version = re.search(r"__version__ = ['\"]([^'\"]*)['\"]", f.read(), re.M).group(
1
)
print("-- Building version " + version)
with open("README.md", encoding="utf8") as f:
readme = f.read()
with open("requirements.txt") as f:
reqs = f.read()
setup(
name="classy_vision",
version=version,
description="An end-to-end PyTorch framework for image and video classification.",
long_description_content_type="text/markdown",
long_description=readme,
url="https://classyvision.ai",
project_urls={
"Documentation": "https://classyvision.ai",
"Source": "https://github.com/facebookresearch/ClassyVision",
},
license="MIT License",
python_requires=">=3.6",
packages=find_packages(exclude=("tests",))
+ find_namespace_packages(include=["hydra_plugins.*"]),
install_requires=reqs.strip().split("\n"),
extras_require={
"dev": [
"GitPython",
"black==19.3b0",
"sphinx",
"isort==5.2.2",
"bs4",
"nbconvert==6.0.7",
"pre-commit",
"parameterized",
"fairscale==0.3.7",
]
},
package_data={"classy_vision": ["configs/*.json", "templates"]},
data_files=[("classy_vision", ["classy_train.py"])],
include_package_data=True,
test_suite="test.suites.unittests",
scripts=["bin/classy-project"],
keywords=["deep learning", "pytorch", "AI"],
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Image Recognition",
],
)