forked from nautechsystems/nautilus_trader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
129 lines (120 loc) · 3.78 KB
/
pyproject.toml
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
[tool.poetry]
name = "nautilus_trader"
version = "1.125.0"
description = "A high-performance algorithmic trading platform and event-driven backtester"
authors = ["Nautech Systems <[email protected]>"]
license = "LGPL-3.0-or-later"
readme = "README.md"
homepage = "https://nautechsystems.io"
repository = "https://github.com/nautechsystems/nautilus_trader"
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
]
packages = [
{ include = "examples", format = "sdist" },
{ include = "nautilus_trader" },
]
include = [
# Compiled extensions must be included in the wheel distributions
{ path = "nautilus_trader/**/*.so", format = "wheel" },
{ path = "nautilus_trader/**/*.pyd", format = "wheel" },
]
[build-system]
requires = [
"setuptools",
"poetry-core>=1.0.3",
"numpy>=1.21.0",
"Cython>=3.0.0a8",
]
build-backend = "poetry.core.masonry.api"
[tool.poetry.build]
script = "build.py"
generate-setup-file = false
[tool.poetry.dependencies]
python = "^3.7.9"
cython = "^3.0.0a8"
empyrical = "^0.5.5"
frozendict = "^2.0.3"
fsspec = "^2021.7.0"
msgpack = "^1.0.2"
mypy = "^0.910"
numpy = "1.20.0" # Pinned for AT
orjson = "3.5.1" # Pinned at 3.5.1 due betfairlightweight
pandas = "1.2.5" # Pinned for AT
psutil = "^5.8.0"
pyarrow = "^4.0.1"
pytz = "^2021.1"
redis = "^3.5.3"
scipy = "1.6.1" # Pinned at 1.6.1 due Python 3.7.9
tabulate = "^0.8.9"
tqdm = "^4.61.2"
uvloop = { version = "^0.15.3", markers = "sys_platform != 'win32'" }
betfairlightweight = {extras = ["speed"], version = "^2.12.1", optional = true}
ccxt = { version = "^1.53.20", optional = true }
ib_insync = { version = "^0.9.66", optional = true }
[tool.poetry.dev-dependencies]
# coverage 5.x is currently broken for Cython
# https://github.com/cython/cython/issues/3515
coverage = "4.5.4" # Pinned at 4.5.4 due Cython 3.0.0a8
nox = "^2021.6.12"
pre-commit = "^2.13.0"
pytest = "^6.2.4"
pytest-asyncio = "^0.15.1"
pytest-benchmark = "^3.4.1"
pytest-cov = "2.10.1" # Pinned at 2.10.1 due coverage 4.5.4
pytest-mock = "^3.6.1"
pytest-xdist = { version = "^2.3.0", extras = ["psutil"] }
numpydoc = { version = "^1.1.0", optional = true }
sphinx = { version = "^4.1.1", optional = true }
sphinx-rtd-theme = { version = "^0.5.1", optional = true }
[tool.poetry.extras]
betfair = ["betfairlightweight"]
ccxt = ["ccxt"]
docs = ["numpydoc", "sphinx", "sphinx-rtd-theme"]
ib = ["ib_insync"]
##########################################################
# Test configs #
##########################################################
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra --new-first --failed-first"
filterwarnings = [
"ignore::UserWarning",
"ignore::DeprecationWarning",
]
# TODO (move .coveragerc here once we're on coverage 5.x)
##########################################################
# Formatting configs #
##########################################################
[tool.isort]
src_paths = [
"examples",
"nautilus_trader",
"scripts",
"tests",
"build.py",
"noxfile.py",
]
combine_as_imports = true
ensure_newline_before_comments = true
force_grid_wrap = false
force_single_line = true
force_sort_within_sections = true
include_trailing_comma = true
known_first_party = ["examples", "nautilus_trader", "tests"]
known_third_party = ["redis"]
lexicographical = true
line_length = 100
multi_line_output = 3
lines_after_imports = 2
lines_between_types = 1
single_line_exclusions = "typing"
use_parentheses = true
[tool.black]
target_version = ["py37", "py38", "py39"]
include = '\.pyi?$'
line_length = 100