-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
109 lines (103 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
from setuptools import setup
from os import path, walk
import platform
name = 'senic_hub'
def find_data(top):
for dirpath, _, files in walk(top):
base = dirpath.replace(top, 'senic-hub-htdocs', 1)
yield base, [path.join(dirpath, name) for name in files]
if platform.system() == 'Linux':
install_requires = [
# backend
'click',
'colander',
'cornice==2.3.0',
'cryptoyaml',
'netdisco==0.9.2',
'nuimo>=0.3.0,<0.4.0',
'pyramid',
'pyramid_tm',
'pytz',
'requests',
'cornice_swagger',
# nuimo_app
'websocket-client>=0.40.0',
'soco==0.12',
'phue==0.9',
'lightify>=1.0.5',
'pyinotify==0.9.6',
'raven',
'multiprocessing_logging',
]
else:
install_requires = [
# backend
'click',
'colander',
'cornice==2.3.0',
'cryptoyaml',
'netdisco==0.9.2',
'nuimo>=0.3.0,<0.4.0',
'pyramid',
'pyramid_tm',
'pytz',
'requests',
'cornice_swagger',
# nuimo_app
'websocket-client>=0.40.0',
'soco==0.12',
'phue==0.9',
'lightify>=1.0.5',
'raven',
'multiprocessing_logging',
]
setup(
name=name,
version_format='{tag}.{commitcount}+{gitsha}',
url='https://github.com/getsenic/senic-hub',
author='Senic GmbH',
author_email='developers@senic.com',
license="MIT",
description='...',
classifiers=[
"Programming Language :: Python :: 3 :: Only",
"Framework :: Pylons",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
],
packages=[name],
include_package_data=True,
package_dir={name: 'senic_hub'},
package_data={
name: [
'.coveragerc',
'senic_hub/backend/tests/*.py',
'senic_hub/backend/tests/data/*.*',
'senic_hub/backend/views/*.*',
],
},
zip_safe=False,
setup_requires=[
'setuptools-git >= 0',
'setuptools-git-version'
],
install_requires=install_requires,
extras_require={
'development': [
'tox',
],
},
entry_points="""
[paste.app_factory]
main = senic_hub.backend:main
[console_scripts]
netwatch = senic_hub.backend.netwatch:netwatch_cli
bluenet = senic_hub.bluenet.bluenet:bluenet_cli
create_configurations = senic_hub.backend.commands:create_nuimo_app_cfg
device_discovery = senic_hub.backend.device_discovery:command
nuimo_app = senic_hub.nuimo_app.__main__:main
""",
)