-
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathsetup.py
84 lines (71 loc) · 2.44 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
import io
import os
import re
import setuptools
def get_long_description():
base_dir = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(base_dir, "README.md"), encoding="utf-8") as f:
return f.read()
def get_requirements():
with open("requirements.txt") as f:
return f.read().splitlines()
def get_version():
current_dir = os.path.abspath(os.path.dirname(__file__))
version_file = os.path.join(current_dir, "torchyolo", "__init__.py")
with io.open(version_file, encoding="utf-8") as f:
return re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', f.read(), re.M).group(1)
_DEV_REQUIREMENTS = [
"black==21.7b0",
"flake8==3.9.2",
"isort==5.9.2",
"click==8.0.4",
"importlib-metadata>=1.1.0,<4.3;python_version<'3.8'",
]
_TEST_REQUIREMENTS = [
"yolov5",
"yolov6detect",
"yolov7detect",
"ultralytics",
"sort_track",
"strongsort",
"ocsort",
"bytetracker",
"norfair_tracker",
]
extras = {"tests": _TEST_REQUIREMENTS, "dev": _DEV_REQUIREMENTS}
setuptools.setup(
name="torchyolo",
version=get_version(),
author="kadirnar",
license="GPL-3.0",
description="PyTorch implementation of YOLOv5, YOLOv6, YOLOv7, YOLOv8",
long_description=get_long_description(),
long_description_content_type="text/markdown",
url="https://github.com/kadirnar/torchyolo",
packages=setuptools.find_packages(exclude=["tests"]),
extras_require=extras,
include_package_data=True,
python_requires=">=3.6",
install_requires=get_requirements(),
classifiers=[
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Education",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
keywords="machine-learning, deep-learning, pytorch, vision, yolov6,yolox, object-detection, yolov7, detector, yolov5",
entry_points={
"console_scripts": [
"torchyolo=torchyolo.cli:app",
],
},
)