forked from jamalsenouci/causalimpact
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
48 lines (39 loc) · 1.22 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setup script for causalimpact
You can install causalimpact with
python setup.py install
"""
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import sys
if sys.argv[-1] == 'setup.py':
print("To install, run 'python setup.py install'")
print()
if sys.version_info[:2] < (2, 6):
print("CausalImpact requires Python 2.6 or later (%d.%d detected)." %
sys.version_info[:2])
sys.exit(-1)
packages = ["causalimpact", "causalimpact.tests"]
# add the tests
package_data = {'causalimpact': ['tests/*.py']}
config = {
'name': 'causalimpact',
'description': 'Python Package for causal inference using Bayesian\
structural time-series models',
'author': 'Jamal Senouci',
'url': 'http://jamalsenouci.github.io/causalimpact.html',
'download_url': 'https://ppi.python.org/pypi/causalimpact/',
'version': '0.2.1',
'platforms': ['Linux', 'Mac OSX', 'Windows', 'Unix'],
'install_requires': ['nose'],
'packages': ['CausalImpact'],
'test_suite': 'nose.collector',
'tests_require': ['nose>=0.10.1'],
'packages': packages,
'package_data': package_data
}
setup(**config)