-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathpyproject.toml
More file actions
183 lines (170 loc) · 4.41 KB
/
pyproject.toml
File metadata and controls
183 lines (170 loc) · 4.41 KB
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
171
172
173
174
175
176
177
178
179
180
181
182
183
[project]
name = "sift_stack_py"
version = "0.8.5"
description = "Python client library for the Sift API"
requires-python = ">=3.8"
readme = { file = "README.md", content-type = "text/markdown" }
license = { file = "LICENSE" }
classifiers = [
"License :: OSI Approved :: MIT License",
"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",
]
maintainers = [
{ name = "Sift Software Engineers", email = "engineering@siftstack.com" },
]
keywords = ["sift", "sift-stack", "siftstack", "sift_py"]
dependencies = [
"grpcio~=1.13",
"PyYAML~=6.0",
"pandas~=2.0",
"protobuf>=4.0",
"pydantic~=2.0",
# Support python 3.9+ typing in older versons of python.
"eval-type-backport~=0.2",
"pydantic_core~=2.3",
"requests~=2.25",
"requests-toolbelt~=1.0",
"alive-progress~=3.0",
# May move these to optional dependencies in the future.
"pandas-stubs~=2.0",
"types-PyYAML~=6.0",
"types-protobuf>=4.0",
"typing-extensions~=4.6",
"types-requests~=2.25",
]
[project.urls]
Homepage = "https://github.com/sift-stack/sift/tree/main/python"
Documentation = "https://docs.siftstack.com/sift_py/sift_py.html"
Repository = "https://github.com/sift-stack/sift/tree/main/python"
Changelog = "https://github.com/sift-stack/sift/tree/main/python/CHANGELOG.md"
[project.optional-dependencies]
development = [
"grpcio-testing~=1.13",
"mypy==1.10.0",
"pyarrow>=17.0.0", # sift_client, older version to support py3.8
"pyright==1.1.386",
"pytest==8.2.2",
"pytest-asyncio==0.23.7",
"pytest-benchmark==4.0.0",
"pytest-mock==3.14.0",
"ruff~=0.12.10",
]
build = ["pdoc==14.5.0", "build==1.2.1"]
docs = ["mkdocs", "mkdocs-material", "mkdocstrings[python]", "mkdocs-include-markdown-plugin", "mkdocs-api-autonav", "mike"]
openssl = ["pyOpenSSL<24.0.0", "types-pyOpenSSL<24.0.0", "cffi~=1.14"]
tdms = ["npTDMS~=1.9"]
rosbags = ["rosbags~=0.0"]
sift-stream = ["sift-stream-bindings>=0.1.2"]
hdf5 = ["h5py~=3.11", "polars~=1.8"]
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.mypy]
python_version = "3.10" # Use the Python 3.10 type checker since we are using eval-type-backport and `from __future__ import annotations`
[tool.pyright]
python_version = "3.8"
reportOptionalMemberAccess = "none"
reportArgumentType = "none"
reportAttributeAccessIssue = "none"
stubPath = "lib/sift_client/resources/sync_stubs"
useLibraryCodeForTypes = true
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
"lib/sift",
"lib/google",
"lib/protoc_gen_openapiv2",
]
# No official typing stubs for Python gRPC libraries yet.
# https://github.com/grpc/grpc/issues/29041
[[tool.mypy.overrides]]
module = "grpc_testing"
ignore_missing_imports = true
ignore_errors = true
[[tool.mypy.overrides]]
module = "grpc"
ignore_missing_imports = true
ignore_errors = true
[[tool.mypy.overrides]]
module = "grpc.aio"
ignore_missing_imports = true
ignore_errors = true
[[tool.mypy.overrides]]
module = "pyarrow"
ignore_missing_imports = true
ignore_errors = true
[[tool.mypy.overrides]]
module = "requests_toolbelt"
ignore_missing_imports = true
ignore_errors = true
[tool.setuptools.packages.find]
where = ["lib"]
[tool.setuptools.package-data]
sift_grafana = ["py.typed"]
sift_py = ["py.typed"]
sift_client = ["py.typed", "resources/sync_stubs/*.pyi"]
[tool.ruff]
line-length = 100
indent-width = 4
target-version = "py38" # Python 3.8
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".ipynb_checkpoints",
".mypy_cache",
".nox",
".pants.d",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
".vscode",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"site-packages",
"venv",
"lib/sift",
"lib/google",
"lib/protoc_gen_openapiv2",
]
[tool.ruff.lint]
select = ["F", "W", "I", "N", "TID"]