-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
executable file
·95 lines (82 loc) · 2.3 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/env python3
import ats.senza
from setuptools import setup, find_packages
PROJECT = 'ats.senza'
try:
long_description = open('README.rst', 'rt').read()
except IOError:
long_description = ''
setup(
name=PROJECT,
version=ats.senza.version,
description='Sensor event API and client for AiC VMs',
long_description=long_description,
author='AiC Project',
author_email='[email protected]',
install_requires=[
'ats.client',
# server
'aiohttp',
'aiohttp-debugtoolbar',
'aioamqp',
'jsonschema',
'protobuf',
'structlog',
'ats.util',
# development
'pyflakes', # supports async/await
],
extras_require={
'docs': (
'sphinx',
'sphinx_rtd_theme',
'sphinxcontrib-httpdomain',
'sphinxcontrib-seqdiag',
'sphinxcontrib-programoutput',
)},
namespace_packages=['ats'],
packages=find_packages(),
include_package_data=True,
entry_points={
'console_scripts': [
'senza = ats.senza.client.app:main',
'senza-server = ats.senza.server.main:main',
],
# for Cliff
'senza': [
'schema = ats.senza.client.schema:Schema'
] + [
'%s = ats.senza.client.commands.%s:Command' % (protocol, protocol.replace('-', '_'))
for protocol in [
'accelerometer',
'battery',
'camera',
'gps',
'gravity',
'gyroscope',
'light',
'linear-acc',
'magnetometer',
'orientation',
'pressure',
'proximity',
'recorder',
'rotation-vector',
'relative-humidity',
'temperature',
]
] + [
'gsm %s = ats.senza.client.commands.gsm.%s:Command' % (protocol, protocol.replace('-', '_'))
for protocol in [
'call',
'sms',
'signal',
'network',
'registration'
]
]
},
setup_requires=['pytest-runner'],
tests_require=['pytest', 'pytest-asyncio'],
zip_safe=False,
)