forked from bambinos/bambi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (33 loc) · 1.1 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
import sys
from setuptools import setup, find_packages
import os
mod_dir = os.path.dirname(__file__)
with open(os.path.join(mod_dir, 'bambi', 'version.py')) as f:
exec(f.read())
if len(set(('test', 'easy_install')).intersection(sys.argv)) > 0:
import setuptools
requirements = ['numpy', 'pandas', 'patsy', 'pymc3', 'statsmodels']
tests_require = []
extra_setuptools_args = {}
if 'setuptools' in sys.modules:
tests_require.append('nose')
extra_setuptools_args = dict(
test_suite='nose.collector',
extras_require=dict(
test='nose>=0.10.1')
)
setup(
name="bambi",
version=__version__,
description="BAyesian Model Building Interface in Python",
url='http://github.com/bambinos/bambi',
download_url='https://github.com/bambinos/bambi/archive/%s.tar.gz' % __version__,
install_requires=requirements,
maintainer='Tal Yarkoni',
maintainer_email='[email protected]',
packages=find_packages(exclude=['tests', 'test_*']),
package_data={'bambi': ["config/*"]},
tests_require=tests_require,
license='MIT',
**extra_setuptools_args
)