forked from posterior/treecat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
27 lines (23 loc) · 875 Bytes
/
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
import sys
from parsable import parsable
from setuptools import setup
try:
import pypandoc
long_description = pypandoc.convert('README.md', 'rst')
except (IOError, ImportError, OSError) as e:
sys.stderr.write('Failed to convert README.md to rst:\n {}\n'.format(e))
sys.stderr.flush()
long_description = open('README.md').read()
version = open('treecat/version.py').read().strip().split()[-1]
setup(
name='treecat',
version=version,
description='A tree-of-mixtures nonparametric Bayesian model',
long_description=long_description,
author='Fritz Obermeyer',
author_email='fritz.obermeyer@gmail.com',
packages=['treecat'],
entry_points=parsable.find_entry_points('treecat'),
install_requires=['numpy', 'parsable', 'scipy', 'six'],
tests_require=['pytest', 'flake8', 'goftests'],
license='Apache License 2.0')