-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·78 lines (69 loc) · 2.14 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
from setuptools import setup, find_packages
import re
import os
from os import path
from os.path import splitext
from os.path import basename
from glob import glob
package_keyword = "openvi"
def get_version():
with open("__init__.py", "r") as f:
version = re.search(
r'^__version__\s*=\s*[\'"]([^\'"]*)[\'"]', f.read(), re.MULTILINE
).group(1)
return version
def package_files(directory):
paths = []
for path, directories, filenames in os.walk(directory):
for filename in filenames:
paths.append(os.path.join("..", path, filename))
return paths
extra_py_files = package_files("openvi")
readme_path = path.abspath(path.dirname(__file__))
with open(path.join(readme_path, "README.md"), encoding="utf-8") as f:
long_description = f.read()
setup(
name="openvi",
packages=find_packages(),
py_modules=[splitext(basename(path))[0] for path in glob("./*")],
package_data={"openvi": extra_py_files},
include_package_data=True,
version=get_version(),
author="OpenVI Team",
url="https://github.com/openvi-team/openvi",
description="No-code platform for computer vision",
long_description=long_description,
long_description_content_type="text/markdown",
keywords=(
"opencv, deep learning, machine learning, computer vision, image"
" processing, video processing, video analysis, video analytics, video"
),
license="Apache-2.0 license",
python_requires=">=3.7",
install_requires=[
"numpy>=1.23.0",
"Cython==0.29.30",
"opencv-contrib-python==4.5.5.64",
"onnxruntime==1.16.3",
"dearpygui==1.6.2",
"mediapipe==0.10.3",
"protobuf==3.20.0",
"filterpy==1.4.5",
"lap==0.4.0",
"cython-bbox==0.1.3",
"rich==12.4.4",
"packaging==21.3",
"protobuf==3.20.0",
"sympy==1.8",
"dearpygui_ext==0.9.5",
],
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.9",
],
entry_points={
"console_scripts": [
"openvi=main:main",
],
},
)