-
Notifications
You must be signed in to change notification settings - Fork 21
/
setup.py
96 lines (85 loc) · 2.79 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
#!/usr/bin/python3
import io
import os
import re
import codecs
from setuptools import setup
#Package meta-data.
NAME = 'pyzm'
DESCRIPTION = 'ZoneMinder API, Logger and other base utilities for python programmers'
URL = 'https://github.com/ZoneMinder/pyzm/'
AUTHOR_EMAIL = '[email protected]'
AUTHOR = 'Pliable Pixels'
LICENSE = 'GPL'
INSTALL_REQUIRES=[
'SQLAlchemy>=1.3.20,<1.4.0',
'mysql-connector-python>=8.0.16',
'requests>=2.18.4',
'dateparser>=1.0.0',
'websocket-client>=0.57.0',
'progressbar2 >=3.53.1',
'portalocker>=2.3.0',
'imutils >=0.5.3',
'Shapely >=1.7.0',
'numpy >=1.13.3',
'Pillow',
'psutil >=5.7.3',
'python-dotenv'
]
here = os.path.abspath(os.path.dirname(__file__))
# read the contents of your README file
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
f.close()
def read(*parts):
with codecs.open(os.path.join(here, *parts), 'r') as fp:
data = fp.read()
fp.close()
return data
def find_version(*file_paths):
version_file = read(*file_paths)
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
setup(name = NAME,
python_requires='>=3.0.0',
version = find_version('pyzm','__init__.py'),
description = DESCRIPTION,
long_description = long_description,
long_description_content_type='text/markdown',
author = AUTHOR,
author_email = AUTHOR_EMAIL,
url = URL,
license = LICENSE,
install_requires=INSTALL_REQUIRES,
py_modules = [
'pyzm.api',
'pyzm.helpers.Base',
'pyzm.helpers.Monitors',
'pyzm.helpers.Monitor',
'pyzm.helpers.Events',
'pyzm.helpers.Event',
'pyzm.helpers.States',
'pyzm.helpers.State',
'pyzm.helpers.Configs',
'pyzm.helpers.Media',
'pyzm.helpers.utils',
'pyzm.helpers.globals',
'pyzm.ZMLog',
'pyzm.ZMEventNotification',
'pyzm.ZMMemory',
'pyzm.ml.alpr',
'pyzm.ml.face',
'pyzm.ml.face_dlib',
'pyzm.ml.face_tpu',
'pyzm.ml.face_train_dlib',
'pyzm.ml.object',
'pyzm.ml.coral_edgetpu',
'pyzm.ml.aws_rekognition',
'pyzm.ml.hog',
'pyzm.ml.virelai',
'pyzm.ml.yolo',
'pyzm.ml.detect_sequence'
]
)