-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
64 lines (53 loc) · 1.67 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
import os
from setuptools import setup
import versioneer
THIS_DIR = os.path.dirname(__file__)
def read_requirements_from_file(filepath):
r"""Read a list of dependencies from the given file and split into a list.
It is assumed that the file is a flat list with one requirement per line.
:param str filepath: Path to the file to read
:return List[str]:
"""
with open(filepath, "r") as req_file:
return req_file.readlines()
install_requires = read_requirements_from_file(os.path.join(THIS_DIR, "requirements.txt"))
# TODO can this be safely substituted with setuptools.find_packages?
__packages__ = [
"RefRed",
"RefRed.autopopulatemaintable",
"RefRed.configuration",
"RefRed.calculations",
"RefRed.config",
"RefRed.export",
"RefRed.gui_handling",
"RefRed.icons",
"RefRed.initialization",
"RefRed.interfaces",
"RefRed.load_reduced_data_set",
"RefRed.low_res_finder_algorithms",
"RefRed.metadata",
"RefRed.peak_finder_algorithms",
"RefRed.plot",
"RefRed.preview_config",
"RefRed.reduction",
"RefRed.reduction_table_handling",
"RefRed.sf_calculator",
"RefRed.sf_preview",
"RefRed.thread",
]
setup(
name="RefRed",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description="Liquids Reflectometer Data Reduction Software",
license="GPL version 3.0",
scripts=["scripts/RefRed", "scripts/start_refred.py"],
author="Jean Bilheux",
author_email="bilheuxjm@ornl.gov",
packages=__packages__,
url="http://",
zip_safe=False,
package_dir={},
package_data={"": ["*.ui", "*.png", "*.qrc"]},
install_requires=install_requires,
)