forked from georgia-tech-db/evadb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
169 lines (145 loc) · 3.99 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
###############################
### EVA PACKAGAGING
###############################
import io
import os
# to read contents of README file
from pathlib import Path
from typing import Dict
from setuptools import find_packages, setup
this_directory = Path(__file__).parent
LONG_DESCRIPTION = (this_directory / "README.md").read_text()
DESCRIPTION = "EVA Video Database System (Think MySQL for videos)."
NAME = "evadb"
AUTHOR = "Georgia Tech Database Group"
AUTHOR_EMAIL = "[email protected]"
URL = "https://github.com/georgia-tech-db/eva"
def read(path, encoding="utf-8"):
path = os.path.join(os.path.dirname(__file__), path)
with io.open(path, encoding=encoding) as fp:
return fp.read()
# version.py defines the VERSION and VERSION_SHORT variables
VERSION_DICT: Dict[str, str] = {}
with open("eva/version.py", "r") as version_file:
exec(version_file.read(), VERSION_DICT)
DOWNLOAD_URL = "https://github.com/georgia-tech-db/eva"
LICENSE = "Apache License 2.0"
VERSION = VERSION_DICT["VERSION"]
minimal_requirement = [
"numpy>=1.19.5,<=1.23.5",
"opencv-python>=4.5.4.60,<4.6.0.66", # bug in easyocr
"pandas>=1.1.5",
"Pillow>=8.4.0",
"sqlalchemy>=1.4.0,<2.0.0", # major changes in 2.0.0
"sqlalchemy-utils>=0.36.6",
"lark>=1.0.0",
"pyyaml>=5.1",
"importlib-metadata<5.0",
"ray>=1.13.0",
"aenum>=2.2.0",
"decord>=0.6.0"
]
formatter_libs = [
"black>=23.1.0",
"isort>=5.10.1"
]
test_libs = [
"pytest>=6.1.2",
"pytest-cov>=2.11.1",
"pytest-random-order>=1.0.4",
"pytest-virtualenv",
"pytest-asyncio",
"pytest-xdist",
"coveralls>=3.0.1",
"mock>=4.0.3",
"flake8>=3.9.1",
"moto[s3]>=4.1.1"
]
notebook_libs = [
"ipywidgets>=7.7.2",
"matplotlib>=3.3.4",
"nbmake>=1.2.1",
"nest-asyncio>=1.5.6"
]
### NEEDED FOR INTEGRATION TESTS ONLY
integration_test_libs = [
"torch>=1.10.0",
"torchvision>=0.11.1",
"faiss-cpu" # faiss-gpu does not work on mac
]
benchmark_libs = [
"pytest-benchmark",
]
doc_libs = [
]
dist_libs = [
"wheel>=0.37.1",
"scriv>=0.16.0"
]
### NEEDED FOR AN ALTERNATE DATA SYSTEM OTHER THAN SQLITE
database_libs = [
"pymysql>=0.10.1"
]
### NEEDED FOR A BATTERIES-LOADED EXPERIENCE
udf_libs = [
"facenet-pytorch>=2.5.2", # FACE DETECTION
"easyocr>=1.5.0", # OCR EXTRACTION
"ipython",
"yolov5<=7.0.6", # OBJECT DETECTION
"detoxify", # TEXT TOXICITY CLASSIFICATION
"thefuzz" # FUZZY STRING MATCHINGz
]
### NEEDED FOR EXPERIMENTAL FEATURES
experimental_libs = [
]
INSTALL_REQUIRES = minimal_requirement + integration_test_libs + udf_libs
DEV_REQUIRES = (
INSTALL_REQUIRES
+ formatter_libs
+ test_libs
+ notebook_libs
+ benchmark_libs
+ doc_libs
+ database_libs
+ dist_libs
+ experimental_libs
)
EXTRA_REQUIRES = {
"dev": DEV_REQUIRES
}
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
long_description_content_type="text/markdown",
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=URL,
download_url=DOWNLOAD_URL,
license=LICENSE,
classifiers=[
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Information Analysis",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Development Status :: 3 - Alpha",
"Operating System :: OS Independent"
],
packages=find_packages(exclude=[
"tests",
"tests.*"
]),
# https://python-packaging.readthedocs.io/en/latest/command-line-scripts.html#the-console-scripts-entry-point
entry_points={"console_scripts": [
"eva_server=eva.eva_server:main",
"eva_client=eva.eva_cmd_client:main"
]},
python_requires=">=3.7",
install_requires=INSTALL_REQUIRES,
extras_require=EXTRA_REQUIRES,
include_package_data=True,
package_data={
"eva": ["eva.yml", "parser/eva.lark"]
}
)