-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
242 lines (213 loc) · 7.33 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
# -*- coding: utf-8 -*-
import os
import sys
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.rst')).read()
PYTHON_35 = (3, 5) <= sys.version_info < (3, 6)
PYTHON_GTE_310 = sys.version_info >= (3, 10)
PYTHON_LT_311 = sys.version_info < (3, 11)
# Pandas on Python 3.5 will attempt to install `numpy==1.20.1`,
# which will bail out on aarch64 with `RuntimeError: Python version >= 3.7 required.`.
numpy_spec = "numpy>=1.18,<1.22"
if PYTHON_35:
numpy_spec = "numpy==1.18.5"
pandas_spec = "pandas<1.3"
if PYTHON_GTE_310:
pandas_spec = "pandas<1.6"
numpy_spec = "numpy<1.25"
xarray_spec = 'xarray>=0.13.0,<0.22'
if PYTHON_GTE_310:
xarray_spec = 'xarray<2024'
requires = [
# Core
'Twisted[tls]<24',
'pyOpenSSL>=16.2.0',
'six>=1.15.0',
'pyramid==1.10.8',
'pyramid_jinja2>=2.8,<3',
'cornice>=5.0.3,<7',
'simplejson>=3.17.2,<4',
'Jinja2<4',
'munch>=2.5.0,<5',
'appdirs>=1.4.3,<2',
'json-store>=3.1,<4',
'python-dateutil>=2.8.0,<3',
'arrow>=0.17.0,<2',
'funcy>=1.15,<3',
'attrs>=20.2.0,<24',
# Bus adapters
'paho-mqtt>=1.5.1,<2',
'autobahn[twisted]>=20.7.1,<24',
'msgpack-python>=0.5.6,<0.6',
'PyTrie>=0.4.0,<1',
# Misc
'distlib>=0.3.1,<0.4',
'docopt>=0.6.2,<0.7',
# More dependencies
'cryptography>=2.9.2',
'certifi>=2020.6.20',
'service_identity>=18.1.0,<22',
'idna>=2.10,<4',
'pyasn1>=0.4.8,<0.5',
'pyasn1-modules>=0.2.8,<0.4',
]
extras = {
'daq': [
'influxdb>=5.3.0,<6',
'pytz>=2020.1',
'requests>=2.12.4,<3',
'grafana_api_client==0.2.0',
#'grafana-dashboard-builder==0.1.0a7', # evaluated, but not suitable
#'txmongo==16.3.0',
'pymongo>=3.11.0,<5',
],
'daq_geospatial': [
'Geohash>=1.0,<2',
'geopy>=1.12.0,<3',
'Beaker>=1.9.0,<2',
'tqdm>=4.19.8,<5',
],
'daq_binary': [
'pycparser==2.21', # 2.18
'pyparsing==2.2.0',
'pyclibrary==0.2.1',
'tabulate==0.7.5', # 0.8.2
'sympy==1.12', # 1.1.1
],
'storage_plus': [
'alchimia>=0.4,<1',
],
# Data export: Basic formats
'export': [
'pyinfluxql>=0.0.1,<1',
pandas_spec,
numpy_spec,
'XlsxWriter>=1.3.6,<4',
],
'plotting': [
#'dyplot==0.8.8',
'matplotlib>=3,<3.4',
#'cairocffi>=0.5.4',
'bokeh>=1.4.0,<3.4',
'vincent>=0.4.4,<0.5',
],
# Data export: Scientific data formats like HDF5 and NetCDF and plots from ggplot
'scientific': [
# Data
# ----
# HDF5 - see below.
# NetCDF (Network Common Data Form)
xarray_spec,
'netCDF4>=1.5.3,<1.7',
#'h5netcdf==0.2.2',
# Algorithms
# ----------
#'scipy>=1.4.1,<1.6',
'ggplot>=0.11.5,<0.12',
# gfortran
# aptitude install libatlas-base-dev lapack-dev gfortran or
# https://gcc.gnu.org/wiki/GFortranBinaries
# Visualization
# -------------
#'seaborn==0.7.1',
],
'firmware': [
'GitPython>=2.0.5,<3',
'plumbum>=1.6.1,<1.9',
],
}
# "PyTables" requires HDF5 libraries.
# Wheels for `h5py` and `tables` not available for cp311 yet.
if PYTHON_LT_311:
extras["scientific"] += [
"h5py>=2.10.0,<4",
"tables>=3.5.2,<4",
]
setup(name='kotori',
version='0.27.0',
description='Kotori is a data acquisition, processing and graphing toolkit for humans',
long_description=README,
license="AGPL 3, EUPL 1.2",
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"License :: OSI Approved :: GNU Affero General Public License v3",
"License :: OSI Approved :: European Union Public Licence 1.2 (EUPL 1.2)",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Environment :: Web Environment",
"Framework :: Pyramid",
"Framework :: Twisted",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
"Intended Audience :: Manufacturing",
"Intended Audience :: Science/Research",
"Intended Audience :: System Administrators",
"Intended Audience :: Telecommunications Industry",
"Topic :: Communications",
"Topic :: Database",
"Topic :: Internet",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"Topic :: Scientific/Engineering :: Atmospheric Science",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Scientific/Engineering :: Human Machine Interfaces",
"Topic :: Scientific/Engineering :: Information Analysis",
"Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Software Development :: Embedded Systems",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Object Brokering",
"Topic :: System :: Archiving",
"Topic :: System :: Networking :: Monitoring",
"Topic :: Text Processing",
"Topic :: Utilities",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS"
],
author='Andreas Motl',
author_email='[email protected]',
url='https://github.com/daq-tools/kotori',
keywords='data acquisition graphing export plotting daq routing engine ' +
'mqtt http rest amqp wamp sql web html csv json cdf hdf5 png ' +
'twisted pyramid autobahn influxdb mosquitto grafana mongodb matplotlib ggplot ' +
'telemetry m2m iot',
packages=find_packages(),
include_package_data=True,
package_data={
'kotori': [
'daq/graphing/grafana/resources/*.json',
'io/export/*.html',
],
},
zip_safe=False,
test_suite='kotori.test',
install_requires=requires,
extras_require=extras,
entry_points={
'console_scripts': [
'kotori = kotori:run',
#'kotori-master = kotori.master.server:run',
#'kotori-node = kotori.node.nodeservice:run',
#'kotori-wamp-client = kotori.master.client:run_wamp_client',
'h2m-csv-udp-client = kotori.vendor.hydro2motion.client:run_udp_client',
'h2m-csv-udp-fuzzer = kotori.vendor.hydro2motion.client:run_udp_fuzzer',
'lst-message = kotori.vendor.lst.shell:message',
'kotori-selftest = kotori.vendor.selftest:run',
],
'paste.app_factory': [
'main = kotori.frontend.app:main',
],
},
)