-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
76 lines (62 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
70
71
72
73
74
75
76
from setuptools import (
setup,
find_packages
)
import glob
import os.path
VERSION_PATH = os.path.dirname(os.path.abspath(__file__))
VERSION_PATH = os.path.join(VERSION_PATH, 'digicampipe/VERSION')
with open(VERSION_PATH) as f:
__version__ = f.read().strip()
def make_console_scripts(glob_expr='digicampipe/scripts/*.py'):
command_list = []
for path in sorted(glob.glob(glob_expr)):
if not os.path.basename(path).startswith('__'):
command_name = os.path.basename(path)
script_filename = command_name.split('.')[0]
command_name = command_name.split('.')[0].replace('_', '-')
command = 'digicam-{call:s}=digicampipe.scripts.{stub:s}:' \
'entry'.format(call=command_name, stub=script_filename)
command_list.append(command)
return command_list
setup(
name='digicampipe',
version=__version__,
packages=find_packages(),
url='https://github.com/cta-sst-1m/digicampipe',
license='GNU GPL 3.0',
author='Cyril Alispach',
author_email='[email protected]',
long_description=open('README.md').read(),
description='A package for DigiCam pipeline',
install_requires=[
'ctapipe>=0.6.0',
'numpy',
'matplotlib',
'scipy',
'astropy',
'h5py',
'tqdm',
'docopt',
'pyyaml',
'fitsio',
'humanize',
'aenum',
'peakutils',
'probfit',
],
tests_require=['pytest>=3.0.0'],
setup_requires=['pytest-runner'],
package_data={
'': [
'VERSION',
'tests/resources/*',
'tests/resources/stars_on_lid/*',
'tests/resources/digicamtoy/*',
'tests/resources/simtel/*',
],
},
entry_points={
'console_scripts': make_console_scripts(),
}
)