-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
58 lines (52 loc) · 1.91 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
import re
import glob
try:
from setuptools import setup
setup
except ImportError:
from distutils.core import setup
setup
dir_path = os.path.dirname(os.path.realpath(__file__))
init_string = open(os.path.join(dir_path, 'brutus', '__init__.py')).read()
VERS = r"^__version__ = ['\"]([^'\"]*)['\"]"
mo = re.search(VERS, init_string, re.M)
__version__ = mo.group(1)
try:
import pypandoc
with open('README.md', 'r') as f:
txt = f.read()
txt = re.sub('<[^<]+>', '', txt)
long_description = pypandoc.convert(txt, 'rst', 'md')
except ImportError:
long_description = open('README.md').read()
setup(
name="astro-brutus",
url="https://github.com/joshspeagle/brutus",
version=__version__,
author="Joshua S Speagle",
author_email="[email protected]",
packages=["brutus"],
license="MIT",
description=("Brute-force Bayesian inference for photometric distances, "
"reddenings, and stellar properties"),
long_description=long_description,
package_data={"": ["README.md", "LICENSE", "AUTHORS.md"]},
include_package_data=True,
install_requires=["numpy", "scipy", "matplotlib", "six", "h5py",
"healpy", "numba"],
keywords=["brute force", "photometry", "bayesian", "stellar", "star",
"cluster", "isochrone", "dust", "reddening",
"parallax", "distance", "template fitting"],
classifiers=["Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Natural Language :: English",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.6",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Astronomy",
"Intended Audience :: Science/Research"]
)