-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
56 lines (49 loc) · 1.34 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
# -*- coding: utf-8 -*-
import os
from distutils.command.build_py import build_py
from setuptools import setup, find_packages
HERE = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(HERE, 'README.md')) as f:
README = f.read()
REQUIREMENTS = [
'numpy',
'astropy',
'click',
'pymoc',
'pyvo',
'sqlalchemy',
'scipy',
'herschelhelp-internal',
]
class CustomBuild(build_py):
"""Build class to build the database"""
def run(self):
# Build the databse
import database_builder
database_builder.build_base()
# Process with the standard build
build_py.run(self)
setup(
name="herschelhelp",
version="1.0.3",
description="HELP project module",
long_description=README,
author="Yannick Roehlly",
author_email="[email protected]",
license='MIT',
setup_requires=REQUIREMENTS,
install_requires=REQUIREMENTS,
packages=find_packages(),
package_dir={'herschelhelp': 'herschelhelp'},
package_data={
'herschelhelp': ['data.db'],
'database_builder/coverages': ['*.fits'],
'database_builder/filters': ['*.xml'],
'database_builder': ['fields.txt'],
},
cmdclass={'build_py': CustomBuild},
entry_points='''
[console_scripts]
herschelhelp=herschelhelp.commands:cli
''',
)