-
Notifications
You must be signed in to change notification settings - Fork 4
/
setup.py
executable file
·81 lines (72 loc) · 2.49 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
#!/usr/bin/env python
import os.path as osp
import re
import sys
from setuptools import find_packages, setup
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="EXtra-geom",
version=find_version("extra_geom", "__init__.py"),
author="European XFEL GmbH",
author_email="[email protected]",
maintainer="Thomas Michelat",
url="https://github.com/European-XFEL/EXtra-geom",
description="Tools to work with EuXFEL detector geometry and assemble detector images",
long_description=read("README.md"),
long_description_content_type='text/markdown',
license="BSD-3-Clause",
packages=find_packages(),
package_data={
'extra_geom.tests': ['dssc_geo_june19.h5', 'lpd_mar_18.h5'],
},
install_requires=[
'cfelpyutils>=2.0, <3.0',
'h5py>=2.7.1',
'matplotlib',
'numpy',
],
extras_require={
'interpolate': ['scipy'],
'docs': [
'sphinx >=4.3', # Minimum version for Python 3.10
'nbsphinx',
'ipython', # For nbsphinx syntax highlighting
'sphinxcontrib_github_alt',
'sphinx-rtd-theme >=1.2',
# Pin Jinja2 until https://github.com/jupyter/nbconvert/issues/1736 fixed
'Jinja2<3.1.0'
],
'test': [
'pytest',
'pytest-cov',
'coverage',
'nbval',
'testpath',
'xarray',
'EXtra-data',
'pyFAI',
'condat_gridconv',
]
},
python_requires='>=3.9',
classifiers=[
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: Scientific/Engineering :: Physics',
],
project_urls={
'Documentation': 'https://extra-geom.readthedocs.io/en/latest/',
'Changelog': 'https://extra-geom.readthedocs.io/en/latest/changelog.html',
},
)