-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathpyproject.toml
More file actions
149 lines (123 loc) · 3.8 KB
/
pyproject.toml
File metadata and controls
149 lines (123 loc) · 3.8 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
[project]
name = "machinevision-toolbox-python"
version = "1.1.0"
authors = [{ name = "Peter Corke", email = "rvc@petercorke.com" }]
description = "Python tools for machine vision - education and research"
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
# Indicate who your project is intended for
"Intended Audience :: Developers",
# Specify the Python versions you support here.
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
keywords = [
"machine vision",
"computer vision",
"multiview geometry",
"stereo vision",
"bundle adjustment",
"visual servoing",
"image features",
"color",
"blobs",
"morphology",
"image segmentation",
"opencv",
"open3d",
]
dependencies = [
"numpy",
"scipy",
"matplotlib",
"pillow",
"opencv-python",
"opencv-contrib-python",
"spatialmath-python",
"pgraph-python",
"ansitable",
"mvtb-data",
"requests",
"tqdm",
]
[project.urls]
"Homepage" = "https://github.com/petercorke/machinevision-toolbox-python"
"Bug Tracker" = "https://github.com/pypa/sampleproject/issues"
"Documentation" = "https://petercorke.github.io/machinevision-toolbox-python"
"GitHub Source" = "https://github.com/petercorke/machinevision-toolbox-python"
"Changelog" = "https://github.com/petercorke/machinevision-toolbox-python/blob/master/CHANGELOG.md"
[project.optional-dependencies]
# Options:
# dev - development tools
# docs - documentation building tools
# jupyter - jupyter notebook support
# open3d - open3d support (open3d generally won't work with latest Python)
# all - all runtime optional features below
# ocr - OCR support via pytesseract
dev = ["pytest", "coverage", "ruff", "nbmake"]
ros = ["rosbags", "roslibpy", "websockets"]
docs = [
"sphinx",
"pydata-sphinx-theme",
"sphinx-codeautolink",
"sphinx-favicon",
"sphinx-copybutton",
"sphinxcontrib-programoutput",
"sphinx-autorun @ git+https://github.com/petercorke/sphinx-autorun.git",
]
jupyter = ["ipywidgets", "ipympl"]
open3d = ["open3d-python"]
torch = ["torch"]
ocr = ["pytesseract"]
all = [
"ipywidgets", "ipympl",
"open3d-python",
"torch",
"pytesseract",
"rosbags", "roslibpy", "websockets",
]
[tool.pytest.ini_options]
pythonpath = ["src", "packages/mvtb-data", "packages/mvtb-data/mvtbdata"]
testpaths = ["tests"]
addopts = "--tb=short"
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ["E", "F", "I"]
[tool.ruff.lint.isort]
known-first-party = ["machinevisiontoolbox"]
[tool.pyright]
include = ["src"]
ignore = ["docs", "tests", "examples"]
[project.scripts]
mvtbtool = "machinevisiontoolbox.bin.mvtbtool:main"
imtool = "machinevisiontoolbox.bin.imtool:main"
tagtool = "machinevisiontoolbox.bin.tagtool:main"
ocrtool = "machinevisiontoolbox.bin.ocrtool:main"
bagtool = "machinevisiontoolbox.bin.bagtool:main"
labeltool = "machinevisiontoolbox.bin.labeltool:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["src/machinevisiontoolbox"]
[tool.hatch.build.targets.sdist]
exclude = ["/packages", "/docs", "/tests", "/.git", "/.github"]
[tool.codespell]
# nd, enew = local variable names; nin, inports = BDSIM block identifiers
ignore-words-list = "nd,enew,nin,inports"
skip = "*.pyc,htmlcov"
[tool.black]
line-length = 88
target-version = ['py310', 'py311', 'py312', 'py313']
exclude = "camera_derivatives.py"
[tool.coverage.run]
omit = ["src/machinevisiontoolbox/blocks/*", "src/machinevision/blocks/*"]