From 2df8d7c699ef5b66a09ab79057b40fd6100c9424 Mon Sep 17 00:00:00 2001 From: Tobias Fischer Date: Thu, 20 Mar 2025 07:13:56 +1000 Subject: [PATCH 1/2] Bump minimum Python to 3.10 With python 3.9, one gets: `TypeError: unsupported operand type(s) for |: 'type' and 'type'` --- pyproject.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index a215766..52e94c5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,13 +7,12 @@ authors = [ ] description = "Python tools for machine vision - education and research" readme = "README.md" -requires-python = ">=3.7" +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.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", @@ -93,7 +92,7 @@ packages = [ [tool.black] line-length = 88 -target-version = ['py37'] +target-version = ['py310', 'py311', 'py312'] exclude = "camera_derivatives.py" [tool.coverage.run] From cad8cda0220cabf5768b1fa007228df5617a52d4 Mon Sep 17 00:00:00 2001 From: Tobias Fischer Date: Thu, 20 Mar 2025 07:14:48 +1000 Subject: [PATCH 2/2] Remove python 3.9 from GA --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 73e0d22..e77079f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,7 +20,7 @@ jobs: fail-fast: false matrix: os: [windows-latest, ubuntu-latest, macos-13] - python-version: ["3.9", "3.10", "3.11", "3.12"] + python-version: ["3.10", "3.11", "3.12"] steps: - name: Checkout master branch uses: actions/checkout@v4