-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsetup.py
118 lines (103 loc) · 4 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
from setuptools import setup, Extension, find_packages
import sys
# modified by setver.bash
version = '1.2.2'
# # https://setuptools.readthedocs.io/en/latest/setuptools.html#basic-use
setup(
name = "valkka_live",
version = version,
# python packaging is in a state of mess, as usual (**)
# https://github.com/pypa/pip/issues/5384
install_requires = [
# 'PySide2 >=5.11.1', # woops.. in 5.12 there has been some API changes
# 'PySide2 == 5.11.1',
# 'PySide2 >= 5.13.2', # 5.13.2+ is again OK
# 'PySide2 == 5.14.2', # keep this in sync with cute_mongo_forms ..
'PySide2 >= 5.14.2',
'PyQt5', # installation of this seems to be buggy nowadays..?
'cute_mongo_forms >= 0.7.4',
'imutils >= 0.4.6',
'pypng >= 0.0.18',
# 'zeep >= 3.4.0',
# 'lxml >= 4.5.0',
'valkka-onvif >= 1.6.5', # new!
'setproctitle',
'Pillow'
# 'cute_mongo_forms@git+https://github.com/elsampsa/cute_mongo_forms.git@master' # (**) won't work at the moment
],
#dependency_links = [ # install dependencies from git
# 'git+https://github.com/elsampsa/cute_mongo_forms.git' # (**) works, but is deprecated. Must use --process-dependency_links with pip3
#],
extras_require={
'www': [
'plaster_pastedeploy',
'pyramid==1.10.5',
'pyramid_jinja2==2.8',
'pyramid_debugtoolbar==4.9',
'waitress==1.4.4',
'pyramid-redis-sessions==1.0.1',
'websockets'
]
},
scripts=[
"bin/valkka-live", # sets env variables, uses run-valkka-live entry point
"bin/install-valkka-core",
"bin/update-valkka-core",
"bin/valkka-move-ps",
"bin/valkka-tune",
"bin/valkka-kill",
"bin/valkka-bionic-install",
"bin/valkka-live-generate"
],
#
entry_points={
'console_scripts': [
'run-valkka-live = valkka.live.main:main',
'valkka-live-ws-server = valkka.web.ws_serve:main'
],
'paste.app_factory': [ # used by pastedeploy => pyramid
'main = valkka.web:main'
],
},
# packages = find_packages(), # # includes python code from every directory that has an "__init__.py" file in it. If no "__init__.py" is found, the directory is omitted. Other directories / files to be included, are defined in the MANIFEST.in file
# this is needed for namespace packages:
packages=[
'valkka.live',
'valkka.live.chain',
'valkka.live.container',
'valkka.live.datamodel',
'valkka.live.discovery',
'valkka.live.qt',
'valkka.mvision',
'valkka.mvision.movement',
'valkka.mvision.nix',
'valkka.mvision.yolo3',
'valkka.mvision.yolo2',
'valkka.mvision.yolo3tiny',
'valkka.web'
],
include_package_data=True, # # conclusion: NEVER forget this : files get included but not installed
# # "package_data" keyword is a practical joke: use MANIFEST.in instead
# metadata for upload to PyPI
author = "Sampsa Riikonen",
author_email = "[email protected]",
description = "Valkka Live video surveillance program",
license = "AGPL",
keywords = "valkka video surveillance",
url = "https://elsampsa.github.io/valkka-live/",
long_description ="""
Valkka Live is modular, hackable and customizable OpenSource approach to modern video surveillance and management solutions in local area networks
""",
long_description_content_type='text/plain',
classifiers = [
'Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'Operating System :: POSIX :: Linux',
'Topic :: Multimedia :: Video',
'License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)',
'Programming Language :: Python :: 3'
],
project_urls={
'Valkka library': 'https://elsampsa.github.io/valkka-examples/'
}
)