-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
69 lines (63 loc) · 1.84 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
# Licensed under a 3-clause BSD style license - see LICENSE.rst
import os
import sys
from pathlib import Path
from setuptools import setup
license = """\
New BSD/3-clause BSD License
Copyright (c) 2012 Smithsonian Astrophysical Observatory
All rights reserved."""
try:
from testr.setup_helper import cmdclass
except ImportError:
cmdclass = {}
entry_points = {
"console_scripts": [
"mica_update_ocat_target_table=mica.archive.cda.services:main_update_ocat_local"
]
}
# Borrowed from acis_taco setup.py. This will install all of the following
# into sys.prefix/share/mica/ via the data_files directive.
if "--user" not in sys.argv:
share_path = os.path.join("share", "mica")
scripts = [str(script) for script in Path("scripts").glob("update_*.py")]
data_files = [(share_path, scripts + ["task_schedule.cfg"])]
else:
data_files = None
setup(
name="mica",
description="Mica aspects archive",
use_scm_version=True,
setup_requires=["setuptools_scm", "setuptools_scm_git_archive"],
author="Jean Connelly",
author_email="[email protected]",
license=license,
zip_safe=False,
include_package_data=True,
data_files=data_files,
packages=[
"mica",
"mica.archive",
"mica.archive.tests",
"mica.archive.aca_dark",
"mica.vv",
"mica.vv.tests",
"mica.starcheck",
"mica.starcheck.tests",
"mica.catalog",
"mica.report",
"mica.report.tests",
"mica.web",
"mica.stats",
"mica.stats.tests",
],
package_data={
"mica.web": ["templates/*/*.html", "templates/*.html"],
"mica.report": ["templates/*.html", "*.sql"],
"mica.archive": ["*.sql"],
"mica.starcheck": ["*.sql"],
},
entry_points=entry_points,
tests_require=["pytest"],
cmdclass=cmdclass,
)