-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
62 lines (57 loc) · 1.59 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
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import os
import sys
from setuptools import setup
try:
from testr.setup_helper import cmdclass
except ImportError:
cmdclass = {}
if "--user" not in sys.argv:
share_path = os.path.join("share", "kadi")
data_files = [
(
share_path,
[
"task_schedule_cmds.cfg",
"task_schedule_events.cfg",
"task_schedule_validate.cfg",
"ltt_bads.dat",
],
)
]
else:
data_files = None
entry_points = {
"console_scripts": [
"get_chandra_states = kadi.commands.states:get_chandra_states",
"kadi_update_cmds_v2 = kadi.scripts.update_cmds_v2:main",
"kadi_update_events = kadi.scripts.update_events:main",
"kadi_validate_states = kadi.scripts.validate_states:main",
]
}
setup(
name="kadi",
use_scm_version=True,
setup_requires=["setuptools_scm", "setuptools_scm_git_archive"],
description="Kadi command and events archive",
author="Tom Aldcroft",
author_email="taldcroft@cfa.harvard.edu",
url="http://cxc.harvard.edu/mta/ASPECT/tool_doc/kadi/",
packages=[
"kadi",
"kadi.events",
"kadi.cmds",
"kadi.scripts",
"kadi.tests",
"kadi.commands",
"kadi.commands.tests",
],
package_data={
"kadi.commands": ["templates/*.html"],
"kadi.commands.tests": ["data/*.gz", "data/*.yaml"],
},
tests_require=["pytest"],
data_files=data_files,
cmdclass=cmdclass,
entry_points=entry_points,
)