From dd71135591f874a1e4476cac41f1ed2d62435cb5 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 22 Jan 2025 09:37:33 +0530 Subject: [PATCH] Bump minimum Python version to 3.10 3.8 is EOLed and 3.9 will be EOLed in a few months. 3.10 thus makes a good base and matches the minimum Python version on my other big Python project, kitty, so I dont have to keep multiple feature sets in mind when developing. --- .github/workflows/ci.yml | 2 +- pyproject.toml | 4 ++-- setup/check.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 38130c4af2..3ae78986b2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v3 with: - python-version: 3.8 + python-version: 3.10 - name: Install calibre dependencies run: diff --git a/pyproject.toml b/pyproject.toml index ff7d381234..0c049a82fd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,9 @@ [project] -requires-python = ">=3.8" +requires-python = ">=3.10" [tool.ruff] line-length = 160 -target-version = 'py38' +target-version = 'py310' builtins = ['_', 'I', 'P'] include = ['*.py', '*.recipe'] exclude = [ diff --git a/setup/check.py b/setup/check.py index 38fe5c7fc4..aa73a07059 100644 --- a/setup/check.py +++ b/setup/check.py @@ -200,4 +200,4 @@ class UpgradeSourceCode(Command): if '/metadata/sources/' in q or '/store/stores/' in q: continue files.append(q) - subprocess.call(['pyupgrade', '--py38-plus'] + files) + subprocess.call(['pyupgrade', '--py310-plus'] + files)