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.
This commit is contained in:
Kovid Goyal 2025-01-22 09:37:33 +05:30
parent ac76cbff0f
commit dd71135591
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
3 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ jobs:
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v3 uses: actions/setup-python@v3
with: with:
python-version: 3.8 python-version: 3.10
- name: Install calibre dependencies - name: Install calibre dependencies
run: run:

View File

@ -1,9 +1,9 @@
[project] [project]
requires-python = ">=3.8" requires-python = ">=3.10"
[tool.ruff] [tool.ruff]
line-length = 160 line-length = 160
target-version = 'py38' target-version = 'py310'
builtins = ['_', 'I', 'P'] builtins = ['_', 'I', 'P']
include = ['*.py', '*.recipe'] include = ['*.py', '*.recipe']
exclude = [ exclude = [

View File

@ -200,4 +200,4 @@ class UpgradeSourceCode(Command):
if '/metadata/sources/' in q or '/store/stores/' in q: if '/metadata/sources/' in q or '/store/stores/' in q:
continue continue
files.append(q) files.append(q)
subprocess.call(['pyupgrade', '--py38-plus'] + files) subprocess.call(['pyupgrade', '--py310-plus'] + files)