forked from georgia-tech-db/evadb
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
151 lines (129 loc) · 3.55 KB
/
setup.py
File metadata and controls
151 lines (129 loc) · 3.55 KB
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
###############################
### EVA PACKAGAGING
###############################
import io
import os
import re
# 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 = "georgia.tech.db@gmail.com"
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.21.6",
"opencv-python==4.5.1.48",
"pandas==1.3.5",
"Pillow==9.0.1",
"sqlalchemy==1.3.20",
"sqlalchemy-utils==0.36.6",
"pyspark==3.0.2",
"petastorm==0.11.5",
"antlr4-python3-runtime==4.10",
"pyyaml==5.1"
]
formatter_libs = [
"black==22.6.0",
"isort==5.10.1"
]
test_libs = [
"pytest==6.1.2",
"pytest-cov==2.11.1",
"pytest-virtualenv",
"coveralls==3.0.1",
"mock==4.0.3",
"flake8==3.9.1"
]
### NEEDED FOR INTEGRATION TESTS ONLY
integration_test_libs = [
"torch==1.10.2",
"torchvision==0.11.3",
]
benchmark_libs = [
]
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",
"easyocr==1.5.0"
]
MINIMAL_REQUIRES = minimal_requirement
INSTALL_REQUIRES = minimal_requirement + formatter_libs
DATABASE_REQUIRES = INSTALL_REQUIRES + database_libs
UDF_REQUIRES = INSTALL_REQUIRES + integration_test_libs + udf_libs
DEV_REQUIRES = (
minimal_requirement
+ formatter_libs
+ test_libs
+ integration_test_libs
+ benchmark_libs
+ doc_libs
+ database_libs
+ dist_libs
+ udf_libs
)
EXTRA_REQUIRES = {
"dev": DEV_REQUIRES,
"database": DATABASE_REQUIRES,
"minimal": MINIMAL_REQUIRES,
"udf": UDF_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"]}
)