-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
55 lines (49 loc) · 1.48 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
import os.path as osp
import re
import sys
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
def find_version():
with open(osp.join('calibration', '__init__.py'), 'r') as f:
match = re.search(r'^__version__ = "(\d+\.\d+\.\d+)"', f.read(), re.M)
if match is not None:
return match.group(1)
raise RuntimeError("Unable to find version string.")
class PyTest(TestCommand):
def run(self):
import pytest
errno = pytest.main(['--pyargs', 'calibration', '-v'])
sys.exit(errno)
setup(name="calibration",
version=find_version(),
author="European XFEL GmbH",
author_email="[email protected]",
maintainer="Ebad Kamil",
packages=find_packages(),
package_data={
'calibration.geometries': ['*.h5']
},
cmdclass = {'test': PyTest},
entry_points={
"console_scripts": [
"detector_characterize = calibration.application:detector_characterize",
"calibration_dashservice = calibration.application:run_dashservice",
],
},
install_requires=[
'extra_data>=1.2.0',
'extra_geom>=0.9.0',
'dash>=1.6.1',
'dash-daq>=0.3.1',
'ipywidgets>=7.5.1',
'mpi4py>=3.0.2',
'iminuit',
'pyFAI>0.16.0'
],
extras_require={
'test': [
'pytest',
]
},
python_requires='>=3.6',
)