From 83c9467805d7fe2ef29fcd070060d20ed8ea126b Mon Sep 17 00:00:00 2001 From: Peter Corke Date: Wed, 18 Nov 2026 08:33:54 +1000 Subject: [PATCH 1/2] fix: drop Python 3.10 (end of life Oct 2026) Require Python >=3.11, remove the 3.10 classifier, drop 3.10 from the CI matrix and update the black target versions. The last release that supports Python 3.10 is v2.4.1; pin to it with `pip install machinevision-toolbox-python==2.4.1` if needed. Co-Authored-By: Claude Sonnet 5.5 --- .github/workflows/ci.yml | 2 +- pyproject.toml | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1769d2eb..f8cd6d99 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-15, windows-latest] - python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] + python-version: ["3.11", "3.12", "3.13", "3.14"] opencv-version: ["4", "5"] steps: diff --git a/pyproject.toml b/pyproject.toml index fa6943b3..cb1fc334 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,13 +4,12 @@ version = "2.4.1" authors = [{ name = "Peter Corke", email = "rvc@petercorke.com" }] description = "Object-oriented machine vision for Python." readme = "README.md" -requires-python = ">=3.10" +requires-python = ">=3.11" 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", @@ -156,7 +155,7 @@ skip = "*.pyc,htmlcov" [tool.black] line-length = 88 -target-version = ['py310', 'py311', 'py312', 'py313'] +target-version = ['py311', 'py312', 'py313', 'py314'] exclude = "camera_derivatives.py" [tool.coverage.run] From aae2170efb95d82b0423a1135c5eb133e36fb55b Mon Sep 17 00:00:00 2001 From: Peter Corke Date: Wed, 18 Nov 2026 08:40:34 +1000 Subject: [PATCH 2/2] chore: remove unused black configuration MVTB formats and lints with ruff; nothing runs black. Co-Authored-By: Claude Sonnet 5.5 --- pyproject.toml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index cb1fc334..f89740a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -153,10 +153,5 @@ exclude = ["/packages", "/docs", "/tests", "/.git", "/.github"] ignore-words-list = "nd,enew,nin,inports" skip = "*.pyc,htmlcov" -[tool.black] -line-length = 88 -target-version = ['py311', 'py312', 'py313', 'py314'] -exclude = "camera_derivatives.py" - [tool.coverage.run] omit = ["src/machinevisiontoolbox/blocks/*", "src/machinevision/blocks/*"]