-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathsetup.py
More file actions
92 lines (83 loc) · 2.71 KB
/
setup.py
File metadata and controls
92 lines (83 loc) · 2.71 KB
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
import os
import re
from setuptools import setup, find_packages
import sys
cwd = os.path.dirname(os.path.realpath(__file__))
with open(os.path.join(cwd, "README.md")) as f:
long_description = f.read()
with open(os.path.join(cwd, "hummingbird/__init__.py")) as f:
content = f.read()
match = re.search(r'^__version__ = "(\d+\.\d+(a|b|rc\d+)?)"', content, re.M)
if match is None:
raise RuntimeError("Unable to find version string.")
version = match.group(1)
install_requires = [
'h5py',
'h5writer',
'mpi4py',
'numpy',
'pexpect',
'Pint',
'PyQt5',
'pyqtgraph',
'pytz',
'pyzmq',
'scipy',
'tornado',
]
# Check if pyqt5 is already installed, whether by pip or some other manager.
# If so, avoid trying to install it again.
# Handles the issue raised in https://github.com/ContinuumIO/anaconda-issues/issues/1554
try:
import PyQt5
install_requires.remove('PyQt5')
except ImportError:
pass
setup(
name="Hummingbird-XFEL",
version=version,
author="Filipe R. N. C. Maia",
author_email="filipe.c.maia@gmail.com",
url="https://github.com/FXIhub/hummingbird",
description="Monitoring and Analysing FXI experiments",
long_description=long_description,
long_description_content_type='text/markdown',
license="BSD-2-Clause",
packages=find_packages(),
include_package_data=True,
entry_points={
"console_scripts": [
"hummingbird = hummingbird:main",
],
},
install_requires=install_requires,
extras_require={
"docs": [
"sphinx",
"sphinx_rtd_theme",
],
"test": [
"pytest",
"pytest-cov",
"codecov",
],
"euxfel": [
"karabo-bridge",
]
},
python_requires='>=3.8',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Environment :: X11 Applications :: Qt',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Operating System :: MacOS',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Scientific/Engineering :: Physics',
'Topic :: Scientific/Engineering :: Visualization',
],
)