-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
57 lines (49 loc) · 1.42 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
#!/usr/bin/env python
# Licensed under a MIT license - see LICENSE.rst
import os
from setuptools import setup, find_packages
import re
def package_files(directory):
paths = []
for (path, directories, filenames) in os.walk(directory):
for filename in filenames:
paths.append(os.path.join('.', path, filename))
return paths
def get_property(prop, project):
with open(os.path.join(project, '__init__.py')) as f:
result = re.search(r'{}\s*=\s*[\'"]([^\'"]*)[\'"]'.format(prop), f.read())
return result.group(1)
dataset = package_files('share')
dataset.append('./ctaplot/gammaboard/dashboard.ipynb')
dataset.append('README.rst')
setup(
packages=find_packages(),
version=get_property('__version__', 'ctaplot'),
install_requires=[
'numpy>1.16',
'matplotlib>=3.6',
'scipy>=0.19',
'astropy',
'tables',
'pandas',
'scikit-learn',
'jupyter',
'ipywidgets',
'pyyaml',
'ipympl',
'tqdm',
],
tests_require=['pytest'],
classifiers=[
'Intended Audience :: Science/Research',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Astronomy',
],
data_files=[('ctaplot', dataset), ],
package_data={'': ['license.rst']},
entry_points={
'console_scripts': [
'gammaboard = ctaplot.gammaboard:open_dashboard'
]
}
)