forked from Point72/csp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
170 lines (151 loc) · 3.86 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
[build-system]
requires = [
"cmake",
"deprecated", # Because used in csp.impl.struct, which is used in autogen
"oldest-supported-numpy",
"pyarrow>=7.0.0",
"ruamel.yaml",
"scikit-build",
"setuptools>=69,<74",
]
build-backend="setuptools.build_meta"
[project]
name = "csp"
authors = [{name = "the csp authors", email = "[email protected]"}]
description="csp is a high performance reactive stream processing library, written in C++ and Python"
readme = "README.md"
version = "0.0.5"
requires-python = ">=3.8"
dependencies = [
"backports.zoneinfo; python_version<'3.9'",
"deprecated",
"numpy<2",
"packaging",
"pandas",
"psutil",
"pyarrow>=7.0.0",
"pytz",
"ruamel.yaml",
"sqlalchemy",
]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
[project.license]
file = "LICENSE"
[project.urls]
Repository = "https://github.com/point72/csp"
Homepage = "https://github.com/Point72/csp"
Documentation = "https://github.com/Point72/csp/wiki"
Tracker = "https://github.com/point72/csp/issues"
[project.optional-dependencies]
develop = [
# build/dist
"bump2version>=1.0.0",
"build",
"ruamel.yaml",
"scikit-build",
"twine",
"wheel",
# lint
"codespell>=2.2.6,<2.3",
"isort>=5,<6",
"mdformat>=0.7.17,<0.8",
"ruff>=0.3,<0.4",
# test
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-sugar",
# showgraph
"graphviz",
"pillow",
# adapters
"httpx>=0.20,<1", # kafka
"polars", # parquet
"psutil", # test_engine/test_history
"sqlalchemy", # db
"threadpoolctl", # test_random
"tornado", # profiler, perspective, websocket
]
showgraph = [
"graphviz",
"pillow",
]
test = [
"graphviz",
"pillow",
"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-sugar",
"httpx>=0.20,<1",
"polars",
"psutil",
"requests",
"slack-sdk>=3",
"sqlalchemy",
"threadpoolctl",
"tornado",
]
symphony = [
"csp-adapter-symphony",
]
slack = [
"csp-adapter-slack",
]
[tool.check-manifest]
ignore = []
[tool.cibuildwheel]
build = "cp38-* cp39-* cp310-* cp311-* cp312-*"
test-command = "echo 'TODO'"
test-requires = [
"pytest",
"pytest-cov",
"pytest-sugar",
"pytest-xdist",
]
[tool.cibuildwheel.linux]
before-all ="""
rpm --import https://repo.almalinux.org/almalinux/RPM-GPG-KEY-AlmaLinux &&
dnf config-manager --set-enabled powertools &&
dnf install epel-release -y &&
make dependencies-fedora
"""
environment = {CSP_MANYLINUX="ON"}
repair-wheel-command = "auditwheel -v show {wheel} && LD_LIBRARY_PATH=/project/csp/lib auditwheel -v repair -w {dest_dir} {wheel}"
skip = "*i686 musllinux*"
manylinux-x86_64-image = "manylinux_2_28"
[tool.cibuildwheel.macos]
before-all ="make dependencies-mac"
archs = "x86_64" # NOTE: we use gcc and we cannot cross compile for now
[tool.cibuildwheel.windows]
before-all = "make dependencies-win"
before-build = "make requirements"
archs = "AMD64"
skip = "*win32 *arm_64"
[tool.isort]
combine_as_imports = true
include_trailing_comma = true
line_length = 120
profile = "black"
default_section = "THIRDPARTY"
sections = "FUTURE,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
known_first_party = "csp"
[tool.pytest.ini_options]
asyncio_mode = "strict"
testpaths = "csp/tests"
[tool.ruff]
line-length = 120
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "F403"]
"csp/impl/__*.py" = ["F401"]
"csp/tests/*.py" = ["F401", "F403", "F811", "F821", "F841", "F842", "E731", "E741"]