-
Notifications
You must be signed in to change notification settings - Fork 238
/
Copy pathsetup.py
108 lines (100 loc) · 3.03 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import codecs
import os.path
import setuptools
def read(rel_path):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), "r") as fp:
return fp.read()
def get_version(rel_path):
for line in read(rel_path).splitlines():
if line.startswith("__version__"):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
# Define extra dependencies
dydx_dep = ["dydx-v3-python >= 1.9.0"]
ccxt_dep = ["ccxt >= 2.0.53", "ccxt-download"]
oanda_dep = [
"v20 >= 3.0.25.0",
]
ib_dep = [
"ib_insync >= 0.9.70",
]
yfinance_dep = [
"yfinance >= 0.1.67",
]
dev_dep = [
"pytest >= 7.1.1",
"black >= 22.10.0",
"sphinx-copybutton >= 0.5.0",
"sphinx-inline-tabs >= 2022.1.2b11",
"myst-parser >= 0.18.1",
"furo >= 2022.9.29",
"sphinx-autobuild >= 2021.3.14",
"commitizen >= 2.35.0",
]
all_dep = ccxt_dep + oanda_dep + ib_dep + yfinance_dep + dev_dep
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="autotrader",
version=get_version("autotrader/__init__.py"),
author="Kieran Mackle",
author_email="[email protected]",
license="gpl-3.0",
description="A Python-based platform for developing, optimising "
+ "and deploying automated trading systems.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://kieran-mackle.github.io/AutoTrader/",
project_urls={
"Bug Tracker": "https://github.com/kieran-mackle/AutoTrader/issues",
"Source Code": "https://github.com/kieran-mackle/AutoTrader",
"Documentation": "https://autotrader.readthedocs.io/en/latest/",
},
classifiers=[
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
],
keywords=["algotrading", "finance", "crypto", "forex", "python"],
package_dir={"": "."},
packages=setuptools.find_packages(where="."),
python_requires=">=3.11",
install_requires=[
"numpy >= 1.20.3",
"pandas >= 1.3.4",
"art >= 5.7",
"PyYAML",
"bokeh == 3.3.0",
"scipy >= 1.7.1",
"finta >= 1.3",
"tqdm>=4.64.0",
"importlib-resources",
"click >= 8.1.3",
"requests >= 2.28.1",
"python-telegram-bot >= 13.14",
"psutil >= 5.9.2",
"prometheus-client >= 0.15.0",
],
extras_require={
"dydx": dydx_dep,
"ccxt": ccxt_dep,
"oanda": oanda_dep,
"ib": ib_dep,
"yfinance": yfinance_dep,
"dev": dev_dep,
"all": all_dep,
},
setup_requires=[
"setuptools_git",
"setuptools_scm",
],
package_data={"": ["package_data/*.js", "package_data/keys.yaml"]},
entry_points={
"console_scripts": [
"autotrader = autotrader.bin.cli:cli",
],
},
)