From e676bdc3222045a47e3e06ed702dd7f1c7ba15a8 Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Wed, 22 Oct 2025 21:23:57 +0200 Subject: [PATCH] Drop support for Python 3.10 --- .github/workflows/test_linux.yml | 1 - novelwriter/__init__.py | 4 ++-- pyproject.toml | 5 ++--- setup/debian/control | 6 +++--- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test_linux.yml b/.github/workflows/test_linux.yml index b900128f..1f84fa95 100644 --- a/.github/workflows/test_linux.yml +++ b/.github/workflows/test_linux.yml @@ -15,7 +15,6 @@ jobs: strategy: matrix: python-version: - - "3.10" - "3.11" - "3.12" - "3.13" diff --git a/novelwriter/__init__.py b/novelwriter/__init__.py index 82200f17..17c0298e 100644 --- a/novelwriter/__init__.py +++ b/novelwriter/__init__.py @@ -206,9 +206,9 @@ def main(sysArgs: list | None = None) -> GuiMain | None: # Check Packages and Versions errorData = [] errorCode = 0 - if sys.hexversion < 0x030a00f0: + if sys.hexversion < 0x030b00f0: errorData.append( - f"At least Python 3.10 is required, found {CONFIG.verPyString}" + f"At least Python 3.11 is required, found {CONFIG.verPyString}" ) errorCode |= 0x04 if CONFIG.verQtValue < 0x060400: diff --git a/pyproject.toml b/pyproject.toml index d8ebd34f..fe42db85 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,10 +10,9 @@ readme = { file = "setup/description_pypi.md", content-type = "text/markdown" } license = "GPL-3.0-or-later AND Apache-2.0 AND CC-BY-4.0" license-files = ["LICENSE.md", "setup/LICENSE-Apache-2.0.txt"] dynamic = ["version"] -requires-python = ">=3.10" +requires-python = ">=3.11" classifiers = [ "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", @@ -153,7 +152,7 @@ include = ["novelwriter"] exclude = ["**/__pycache__"] reportIncompatibleMethodOverride = false -pythonVersion = "3.10" +pythonVersion = "3.11" [tool.pytest.ini_options] log_level = "DEBUG" diff --git a/setup/debian/control b/setup/debian/control index 30c7921c..06d63fa8 100644 --- a/setup/debian/control +++ b/setup/debian/control @@ -9,21 +9,21 @@ Build-Depends: python3-setuptools, python3-all, debhelper (>= 9), - python3 (>=3.10), + python3 (>=3.11), python3-pyqt6 (>= 6.4), python3-pyqt6.qtsvg (>= 6.4), python3-enchant (>= 2.0), qt6-image-formats-plugins (>= 6.4) Standards-Version: 4.5.1 Homepage: https://novelwriter.io -X-Python3-Version: >= 3.10 +X-Python3-Version: >= 3.11 Package: novelwriter Architecture: all Depends: ${misc:Depends}, ${python3:Depends}, - python3 (>=3.10), + python3 (>=3.11), python3-pyqt6 (>= 6.4), python3-pyqt6.qtsvg (>= 6.4), python3-enchant (>= 2.0),