mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
ac76cbff0f
commit
dd71135591
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -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:
|
||||||
|
@ -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 = [
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user