This repository was archived by the owner on Jul 30, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathpyproject.toml
More file actions
189 lines (166 loc) · 5.53 KB
/
Copy pathpyproject.toml
File metadata and controls
189 lines (166 loc) · 5.53 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
184
185
186
187
188
189
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "geti-sdk"
description = "Software Development Kit for the Geti™ platform"
authors = [
{name = "Intel Corporation"}
]
maintainers = [
{name = "Leonardo Lai", email = "leonardo.lai@intel.com"},
{name = "Alexander Barabanov", email = "alexander.barabanov@intel.com"},
]
readme = "README.md"
license-files = ["LICENSE", "CODE_OF_CONDUCT.md"]
keywords = ["intel", "geti", "computer vision", "deep learning", "machine learning"]
requires-python = ">=3.10,<=3.13"
dynamic = ["version"]
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"License :: OSI Approved :: Apache Software License",
"Development Status :: 5 - Production/Stable",
]
dependencies = [
"attrs~=25.3",
"certifi~=2026.7.22",
"cryptography~=48.0",
"defusedxml~=0.7",
"imageio-ffmpeg~=0.6",
"joblib~=1.5",
"numpy~=2.1",
"omegaconf~=2.3",
"opencv-python~=4.11",
"openvino-model-api~=0.3",
"openvino~=2025.2",
"orjson~=3.10",
"ovmsclient~=2023.1",
"pathvalidate~=3.3",
"pillow~=12.0",
"python-dotenv~=1.1",
"requests~=2.32",
"semver~=3.0",
"simplejson~=4.1",
"tqdm~=4.67",
"urllib3~=2.5",
"pydantic==2.13.4",
]
[dependency-groups]
dev = [
"pre-commit~=4.2",
"pytest~=9.0",
"pytest-cov~=6.0",
"pytest-env~=1.1",
"pytest-html~=4.1",
"pytest-mock~=3.10",
"pytest-recording~=0.13", # pinned due to https://github.com/kiwicom/pytest-recording/issues/174
"ruff==0.12.10", # pinned to match the rev in pre-commit
"snowballstemmer~=2.2", # pinned because pytest-recording subdeps are loose
"vcrpy~=8.2",
"datumaro~=1.11",
]
[project.optional-dependencies]
docs = [
"myst-parser~=2.0",
"sphinx~=7.2",
"sphinx-rtd-theme~=1.3",
]
notebooks = [
"ipywidgets~=8.1",
"jupyter-core>=5.8.1", # min version set by CVE-2025-30167
"jupyterlab~=4.4",
"mistune~=3.2",
"pandas~=2.3",
]
[project.urls]
Documentation = "https://docs.geti.intel.com/"
Repository = "https://github.com/open-edge-platform/geti-sdk"
Issues = "https://github.com/open-edge-platform/geti-sdk/issues"
Changelog = "https://github.com/open-edge-platform/geti-sdk/releases"
[tool.hatch.version]
path = "geti_sdk/_version.py"
[tool.hatch.build.targets.sdist]
only-include = ["geti_sdk", "README.md", "LICENSE", "CODE_OF_CONDUCT.md", "pyproject.toml"]
[tool.hatch.build.targets.wheel]
packages = ["geti_sdk"]
[tool.uv]
override-dependencies = [
# Force urllib3 to be >=2.5 (CVE-2025-50181), bypassing vcrpy constraint
"urllib3~=2.5",
# Exclude unnecessary subdependencies from datumaro
"nltk; sys_platform == 'never'",
"portalocker; sys_platform == 'never'",
"protobuf; sys_platform == 'never'",
"pyarrow; sys_platform == 'never'",
"scikit-learn; sys_platform == 'never'",
"tokenizers; sys_platform == 'never'",
"tritonclient; sys_platform == 'never'",
]
[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true
[tool.cibuildwheel]
# Disable building PyPy wheels on all platforms
skip = "pp*"
[tool.bandit]
exclude_dirs = ["tests"]
[tool.ruff]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
extend-select = [
"F", # pyflakes
"W", # pycodestyle warnings
"E", # pycodestyle errors
"I", # isort
"UP", # pyupgrade
"A", # flake8-builtins
"C4", # flake8-comprehensions
"FA", # flake8-future-annotations
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"RET", # flake8-import-return
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"TC", # flake8-types-checking
"NPY", # numpy
]
ignore = [
# pydocstyle
"D417", # Missing argument descriptions in the docstring
"D107", # Missing docstring in `__init__`
"D105", # Missing docstring in magic method
# flake8-annotations
"ANN002", # Missing type annotation for *args
"ANN003", # Missing type annotation for **kwargs
"ANN204", # Missing return type annotation for special method `__init__`
"ARG002", # Unused method argument -> some function cannot use argument
"COM812", # Missing trailing comma -> conflicts with ISC001
# flake8-type-checking
"TC001", # typing-only-first-party-import, Sometimes this causes an incorrect error.
# flake8-fixme
"FIX002", # line-contains-todo
"E731", # Do not assign a `lambda` expression, use a `def`
"SIM108", # Use ternary operator instead of `if`-`else`-block
]
fixable = ["ALL"]
[tool.ruff.lint.per-file-ignores]
# Declare an additional exclude rule for test code
"tests/**/*.py" = [
"S101", # pytest-style allows `assert` statements in tests.
"SLF001", # We sometimes need to inspect private functions for testing.
"TCH003", # It doesn't seem necessary to use TYPE_CHECKING in tests.
"PT004", # fixture ignore type returning.
"E501", # Test skips lines that are too long.
"ANN001", # Skip annotation type hint in test codes
"ANN201", # Skip return type hint in test codes
"D", # Test skips missing docstring argument with magic (fixture) methods.
"ARG001", # Some arguments are passed for executing fixture
]
"notebooks/**/*.ipynb" = [
"A004", # Allow shadowing built-in functions in notebooks.
"E501", # Notebooks skips lines that are too long.
]