forked from atreyuxtrading/atreyu-backtrader-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
28 lines (22 loc) · 722 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
28
#!/usr/bin/env python
import sys
import ast
import os
import re
from setuptools import setup
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('atreyu_backtrader_api/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
if sys.version_info < (3,1):
sys.exit("Only Python 3.1 and greater is supported")
setup(
name='atreyu_backtrader_api',
version=version,
packages=['atreyu_backtrader_api'],
url='https://github.com/atreyuxtrading/atreyu-backtrader-api',
license='Simplified BSD license',
author='Atreyu Trading',
author_email='[email protected]',
description='Python IB API for backtrader'
)