Skip to content

Commit 703fc0a

Browse files
committed
formatting
add mvtbtool as a script add explicit numpy version constraint < 2.0.0
1 parent ab8d2a3 commit 703fc0a

File tree

1 file changed

+13
-17
lines changed

1 file changed

+13
-17
lines changed

pyproject.toml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
name = "machinevision-toolbox-python"
33
version = "0.9.7"
44
authors = [
5-
{ name="Peter Corke", email="rvc@petercorke.com" },
6-
{ name="Dorian Tsai"},
5+
{ name = "Peter Corke", email = "rvc@petercorke.com" },
6+
{ name = "Dorian Tsai" },
77
]
88
description = "Python tools for machine vision - education and research"
99
readme = "README.md"
@@ -35,11 +35,11 @@ keywords = [
3535
"morphology",
3636
"image segmentation",
3737
"opencv",
38-
"open3d"
38+
"open3d",
3939
]
4040

4141
dependencies = [
42-
"numpy>=1.17.4",
42+
"numpy>=1.17.4, < 2.0.0", # OpenCV requires numpy 1.x
4343
"scipy",
4444
"matplotlib",
4545
"opencv-python",
@@ -59,26 +59,23 @@ dependencies = [
5959

6060
[project.optional-dependencies]
6161

62-
dev = [
63-
"pytest",
64-
"coverage",
65-
"flake8"
66-
]
62+
dev = ["pytest", "coverage", "flake8"]
6763

6864
docs = [
6965
"sphinx",
7066
"recommonmark",
71-
"sphinx-rtd-theme",
72-
"sphinx-autorun",
73-
"sphinxcontrib-jsmath",
67+
"sphinx-rtd-theme",
68+
"sphinx-autorun",
69+
"sphinxcontrib-jsmath",
7470
"sphinx-markdown-tables",
7571
"sphinx-favicon",
7672
]
7773

7874
[tool.pytest.ini_options]
79-
pythonpath = [
80-
".", "machinevisiontoolbox", "mvtb-data", "mvtb-data/mvtbdata",
81-
]
75+
pythonpath = [".", "machinevisiontoolbox", "mvtb-data", "mvtb-data/mvtbdata"]
76+
77+
[project.scripts]
78+
mvtbtool = "machinevisiontoolbox.bin.mvtbtool:main"
8279

8380
[build-system]
8481
requires = ["setuptools", "oldest-supported-numpy"]
@@ -97,5 +94,4 @@ target-version = ['py37']
9794
exclude = "camera_derivatives.py"
9895

9996
[tool.coverage.run]
100-
omit = [
101-
]
97+
omit = []

0 commit comments

Comments
 (0)