-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathsetup.py
70 lines (60 loc) · 1.6 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
import os
import os.path
from setuptools import setup
# Create list of data files
def find_data_files(directory):
paths = []
for path, directories, filenames in os.walk(directory):
for filename in filenames:
paths.append(os.path.join("..", path, filename))
return paths
extra_files = find_data_files("hawc_hal/tests/data")
setup(
name="hawc_hal",
version="1.0",
packages=[
"hawc_hal",
"hawc_hal/convolved_source",
"hawc_hal/healpix_handling",
"hawc_hal/interpolation",
"hawc_hal/response",
"hawc_hal/maptree",
"hawc_hal/psf_fast",
"hawc_hal/region_of_interest",
"hawc_hal/convenience_functions",
"hawc_hal/tests",
"scripts",
],
url="https://github.com/threeML/hawc_hal",
license="BSD-3.0",
author="Giacomo Vianello",
author_email="[email protected]",
description="Read and handle HAWC data",
install_requires=[
"numpy >=1.14",
"healpy",
"threeml",
"astromodels",
"pandas",
"pytest",
"six",
"astropy",
"scipy",
"matplotlib",
"numba",
"reproject",
"tqdm",
"uproot",
"awkward",
"mplhep",
"hist",
],
entry_points={
"console_scripts": [
"hdf5tofits = scripts.hal_hdf5_to_fits:main",
"halfitpointsrc = scripts.hal_fit_point_source:main",
]
},
# NOTE: we use '' as package name because the extra_files already contain the full path from here
package_data={"": extra_files},
)