-
Notifications
You must be signed in to change notification settings - Fork 24
/
setup.py
executable file
·55 lines (46 loc) · 1.52 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
# -*- coding: utf-8 -*-
"""
setup.py
--------
TxTrader setup script
Copyright (c) 2020 Reliance Systems Inc. <mkrueger@rstms.net>
Licensed under the MIT license. See LICENSE for details.
"""
import sys
from setuptools import setup, find_packages
if sys.version_info < (3, 7):
sys.exit('Python < 3.7 is not supported')
long_description = ''
with open('README.md', 'r') as ifp:
done = False
while not done:
line = ifp.readline()
if line.startswith('Description'):
done = True
else:
long_description += line
long_description = long_description.strip()
from txtrader import VERSION, LABEL
setup(
name='txTrader',
version=VERSION,
description=LABEL,
long_description=long_description,
long_description_content_type='text/markdown',
author='Matt Krueger',
author_email='mkrueger@rstms.net',
url='https://github.com/rstms/txTrader',
license='MIT',
packages=find_packages(exclude=('tests', 'docs')),
install_requires=['click==7.1.2', 'hexdump==3.3', 'pytz==2020.1', 'twisted==20.3.0', 'tzlocal==2.1', 'ujson==3.1.0'],
tests_require=[
'txtrader-client==1.5.4', 'txtrader-monitor==1.1.7', 'pytest==6.0.1', 'requests==2.24.0', 'pybump==1.2.5',
'tox==3.19.0', 'twine==3.2.0', 'wheel==0.34.2', 'yapf==0.30.0', 'wait-for-it==2.1.0'
],
entry_points={'console_scripts': ['txtraderd=txtrader.daemon:txtraderd']},
include_package_data=True,
package_data={
'': ['*.tac'],
'.': ['README.md']
},
)