From 8c27036a46427459c2bede1d9652c9bed78b23bf Mon Sep 17 00:00:00 2001 From: Brendon Smith <26674818+br3ndonland@users.noreply.github.com> Date: Mon, 27 Jul 2026 21:05:59 -0400 Subject: [PATCH] Drop Python 3.10 support The project currently supports Python 3.10, which is in security-only maintenance and reaches end-of-life in October 2026. This commit will drop Python 3.10 from package metadata and CI, target Python 3.11 for type checking and Ruff upgrades, and adopt Python 3.11 syntax where applicable. - https://devguide.python.org/versions/ --- .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 c56c51e..89906c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] + python-version: ["3.11", "3.12", "3.13", "3.14"] env: HATCH_ENV: "ci" steps: diff --git a/pyproject.toml b/pyproject.toml index be71637..2579623 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,13 +2,12 @@ name = "template-python" description = "Your project description here." readme = "docs/index.md" -requires-python = ">=3.10,<4" +requires-python = ">=3.11,<4" license = "MIT" authors = [{ name = "Your Name" }] classifiers = [ "Natural Language :: English", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", @@ -42,7 +41,7 @@ requires = ["hatchling>=1.26.3,<2"] build-backend = "hatchling.build" [tool.basedpyright] -pythonVersion = "3.10" +pythonVersion = "3.11" [tool.coverage.report] exclude_lines = ["if TYPE_CHECKING:", "pragma: no cover"]