-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
63 lines (54 loc) · 1.93 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
# -*- coding: utf-8 -*-
"""
Setup script for the WDmodel package
"""
import sys
import os
import re
import glob
from setuptools import find_packages, setup
dep_file = 'dependencies_py36.txt'
with open(dep_file,'r') as f:
required = f.read().splitlines()
dir_path = os.path.dirname(os.path.realpath(__file__))
init_string = open(os.path.join(dir_path, 'WDmodel', '__init__.py')).read()
VERS = r"^__version__\s+=\s+[\'\"]([0-9\.]*)[\'\"]$"
mo = re.search(VERS, init_string, re.M)
__version__ = mo.group(1)
AUTH = r"^__author__\s+=\s+[\'\"]([A-za-z\s]*)[\'\"]$"
mo = re.search(AUTH, init_string, re.M)
__author__ = mo.group(1)
LICE = r"^__license__ \s+=\s+[\'\"]([A-za-z\s0-9]*)[\'\"]$"
mo = re.search(LICE, init_string, re.M)
__license__ = mo.group(1)
long_description = open('README.rst').read()
scripts = glob.glob('bin/*')
print(scripts)
setup(
name='WDmodel',
packages=find_packages(),
entry_points={'console_scripts': [
'WDmodel = WDmodel.main:main'
]},
include_package_data=True,
version=__version__, # noqa
description=('Bayesian inference of '
'faint DA white dwarf spectral energy distributions'
'from ground-based spectroscopy and HST photometry'
'to establish faint CALSPEC spectrophotometric standards.'),
scripts = scripts,
license=__license__, # noqa
author=__author__, # noqa
author_email='[email protected]',
install_requires=required,
url='https://github.com/gnarayan/WDmodel',
keywords=['astronomy', 'fitting', 'monte carlo', 'modeling', 'calibration'],
long_description=long_description,
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Astronomy',
'Topic :: Scientific/Engineering :: Physics'
])