diff --git a/pdm.lock b/pdm.lock index d08a4a9..03b8e85 100644 --- a/pdm.lock +++ b/pdm.lock @@ -2,10 +2,10 @@ # It is not intended for manual editing. [metadata] -groups = ["default", "dev", "lint", "nb", "tests"] +groups = ["default", "dev", "lint", "nb", "open-cv", "tests"] strategy = ["inherit_metadata"] lock_version = "4.5.0" -content_hash = "sha256:326ca1095302e816f56644c4ba0929ea12b930348375c98eba139701e0388de6" +content_hash = "sha256:dd33ca3d0a561a8f2634539cc333c0456a89a60141b902cb78408bf546abbc85" [[metadata.targets]] requires_python = ">=3.11,<3.15" @@ -1547,7 +1547,7 @@ name = "numpy" version = "2.4.2" requires_python = ">=3.11" summary = "Fundamental package for array computing in Python" -groups = ["default"] +groups = ["default", "open-cv"] files = [ {file = "numpy-2.4.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e7e88598032542bd49af7c4747541422884219056c268823ef6e5e89851c8825"}, {file = "numpy-2.4.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:7edc794af8b36ca37ef5fcb5e0d128c7e0595c7b96a2318d1badb6fcd8ee86b1"}, @@ -1628,7 +1628,7 @@ name = "opencv-python" version = "4.13.0.92" requires_python = ">=3.6" summary = "Wrapper package for OpenCV python bindings." -groups = ["default"] +groups = ["open-cv"] dependencies = [ "numpy<2.0; python_version < \"3.9\"", "numpy>=2; python_version >= \"3.9\"", diff --git a/pyproject.toml b/pyproject.toml index df8c814..c8794d5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,11 +6,15 @@ authors = [ {name = "Susanne Franke", email = "s.franke@d-opt.de"}, {name = "Florian Förster", email = "f.foerster@d-opt.com"}, ] -dependencies = ["PySide6>=6.10.2", "numpy>=2.4.2", "pillow>=12.1.1", "opencv-python>=4.13.0.92", "pyvips[binary]>=3.1.1"] +dependencies = ["PySide6>=6.10.2", "numpy>=2.4.2", "pillow>=12.1.1", "pyvips[binary]>=3.1.1"] requires-python = "<3.15,>=3.11" readme = "README.md" license = {text = "LicenseRef-Proprietary"} +[project.optional-dependencies] +open-cv = [ + "opencv-python>=4.13.0.92", +] [build-system] requires = ["pdm-backend"] build-backend = "pdm.backend"