-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
executable file
·65 lines (57 loc) · 1.84 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
#!/usr/bin/env python
import os.path as osp
import re
from setuptools import setup, find_packages
import sys
def get_script_path():
return osp.dirname(osp.realpath(sys.argv[0]))
def read(*parts):
return open(osp.join(get_script_path(), *parts)).read()
def find_version(*parts):
vers_file = read(*parts)
match = re.search(r'^__version__ = "(\d+\.\d+\.\d+)"', vers_file, re.M)
if match is not None:
return match.group(1)
raise RuntimeError("Unable to find version string.")
setup(name="karabo_bridge",
version=find_version("karabo_bridge", "__init__.py"),
author="European XFEL GmbH",
author_email="[email protected]",
maintainer="Thomas Michelat",
url="https://github.com/European-XFEL/karabo-bridge-py",
description=("Python 3 tools to request data from the Karabo control"
"system."),
long_description=read("README.rst"),
license="BSD-3-Clause",
python_requires=">=3.7",
install_requires=[
'msgpack>=0.5.4',
'msgpack-numpy',
'numpy',
'pyzmq>=17.0.0',
],
extras_require={
'qt': ['QtPy'],
'test': [
'pytest',
'pytest-cov',
'pytest-qt',
'h5py',
'testpath',
'QtPy',
'PyQt5',
]
},
packages=find_packages(),
entry_points={
'console_scripts': [
'karabo-bridge-glimpse=karabo_bridge.cli.glimpse:main',
'karabo-bridge-monitor=karabo_bridge.cli.monitor:main',
'karabo-bridge-server-sim=karabo_bridge.cli.simulation:main',
],
},
classifiers=[
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
])