-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
215 lines (196 loc) · 5.17 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[project]
name = "oakutils"
version = "1.6.0"
authors = [
{name="Justin Davis", email="davisjustin302@gmail.com"},
]
maintainers = [
{name="Justin Davis", email="davisjustin302@gmail.com"},
]
description = "High-level utilities for DepthAI OAK devices"
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3 :: Only",
"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",
"Programming Language :: Python :: Implementation :: CPython",
"License :: OSI Approved :: MIT License",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Natural Language :: English",
"Topic :: System :: Hardware",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Scientific/Engineering :: Image Processing",
"Topic :: Scientific/Engineering :: Image Recognition",
"Topic :: Software Development",
"Topic :: Software Development :: Embedded Systems",
"Topic :: Software Development :: Libraries",
"Topic :: System :: Hardware",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Intended Audience :: Education",
"Intended Audience :: Information Technology",
"Intended Audience :: End Users/Desktop",
"Typing :: Typed",
]
requires-python=">=3.8, <3.13"
dependencies = [
"depthai>=2.24",
"numpy>=1.20,<3.0",
"opencv-contrib-python>=4.9.0",
"cv2ext>=0.0.10",
"typing_extensions>=4.9.0",
"setuptools>=57.0.0",
]
[project.urls]
"Homepage" = "https://github.com/justincdavis/oakutils"
"Bug Tracker" = "https://github.com/justincdavis/oakutils/issues"
[project.optional-dependencies]
o3d = [
"open3d>=0.18.0",
]
compiler = [
"kornia>=0.6.0",
"torch>=1.9.0",
"onnx>=1.15.0",
"onnxruntime>=1.15.0",
"onnxsim>=0.4.33",
"blobconverter==1.4.3",
"requests>=2.25.0",
"boto3>=1.34.37", # Removes the need for search during install
"botocore>=1.34.37", # Removes the need for search during install
]
ci = [
"ruff>=0.5.6",
"mypy>=1.11.1",
"types-setuptools>=57.0.0",
"types-requests>=2.25.0",
]
test = [
"pytest>=6.2.0",
"stdlib_list>=0.10.0",
]
docs = [
"sphinx>=8.1.3,<9.0",
"sphinx-rtd-theme==2.0.0",
"myst_parser>=4.0.0,<5.0",
]
dev = [
"oakutils[o3d]",
"oakutils[compiler]",
"oakutils[ci]",
"oakutils[test]",
"oakutils[docs]",
"twine>=4.0.0",
"wheel>=0.37.0",
"bumpver>=2023.1126",
"pyclean>=2.7.0",
"pyright>=1.1.348",
]
[tool.bumpver]
current_version = "1.6.0"
version_pattern = "MAJOR.MINOR.PATCH"
commit_message = "Bump version {old_version} -> {new_version}"
commit = true
tag = true
push = false
[tool.bumpver.file_patterns]
"pyproject.toml" = ['current_version = "{version}"', 'version = "{version}"']
"src/oakutils/__init__.py" = ["{version}"]
"docs/conf.py" = ["{version}"]
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
oakutils = ["src/*.blob", "src/oakutils/py.typed"]
[tool.ruff]
fix = true
show-fixes = true
# Same as Black.
line-length = 88
# Assume Python 3.8
target-version = "py38"
# Other options
builtins = ["_"]
[tool.ruff.lint]
select = ["ALL", "PLR2004"]
ignore = ["PLR", "C901", "E501", "D203", "D212", "ERA"]
# Allow autofix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
]
per-file-ignores = {}
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.mypy]
python_version = "3.8"
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = false
strict_equality = true
check_untyped_defs = true
disallow_subclassing_any = false
disallow_untyped_decorators = true
disallow_any_generics = false
disallow_untyped_calls = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_reexport = true
warn_return_any = true
# ignore cv2, open3d, blobconverter
[[tool.mypy.overrides]]
module = [
'cv2',
'open3d',
'onnxsim',
'blobconverter',
]
ignore_errors = true
[tool.pyright]
include = ["src"]
exclude = ["**/node_modules",
"**/__pycache__",
]
ignore = ["scripts/*"]
defineConstant = {DEBUG = true}
stubPath = "typings"
reportMissingImports = true
reportMissingTypeStubs = false
pythonVersion = "3.8"
pythonPlatform = "Linux"
executionEnvironments = [
{ root = "src", pythonVersion = "3.8", stubPath = "typings" },
]