Skip to content

Commit 87b7fd2

Browse files
Update supported Python versions (#205)
* Update supported Python versions * Add Python 3.15 * Drop Python 3.10 through 3.13 * Require Python >= 3.14 * Add --py314-plus to the pyupgrade pre-commit hook * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 9b1669d commit 87b7fd2

4 files changed

Lines changed: 8 additions & 14 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,22 @@ jobs:
2929
strategy:
3030
matrix:
3131
python-version:
32-
- "3.10"
33-
- "3.11"
34-
- "3.12"
35-
- "3.13"
3632
- "3.14"
3733
django-version:
3834
- "5.2"
3935
extras:
4036
- ""
4137
include:
42-
- python-version: "3.13"
38+
- python-version: "3.14"
4339
django-version: "5.2"
4440
extras: "--extra dramatiq"
45-
- python-version: "3.13"
41+
- python-version: "3.14"
4642
django-version: "5.2"
4743
extras: "--extra celery"
48-
- python-version: "3.13"
44+
- python-version: "3.14"
4945
django-version: "5.2"
5046
extras: "--extra reversion"
51-
- python-version: "3.13"
47+
- python-version: "3.14"
5248
django-version: "5.2"
5349
extras: "--extra graphviz --extra dramatiq"
5450
steps:

‎.pre-commit-config.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ repos:
2020
rev: v3.21.2
2121
hooks:
2222
- id: pyupgrade
23+
args: [--py314-plus]
2324
- repo: https://github.com/adamchainz/django-upgrade
2425
rev: 1.33.0
2526
hooks:

‎docs/conf.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def linkcode_resolve(domain, info):
5050
try:
5151
lines, first_line = inspect.getsourcelines(item)
5252
lineno = f"#L{first_line:d}-L{first_line + len(lines) - 1:d}"
53-
except (TypeError, OSError):
53+
except TypeError, OSError:
5454
pass
5555
return (
5656
f"https://github.com/{github_user}/{project}/blob/{head}/{filename}.py{lineno}"

‎pyproject.toml‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,8 @@ classifiers = [
1919
"Programming Language :: JavaScript",
2020
"Programming Language :: Python",
2121
"Programming Language :: Python :: 3",
22-
"Programming Language :: Python :: 3.10",
23-
"Programming Language :: Python :: 3.11",
24-
"Programming Language :: Python :: 3.12",
25-
"Programming Language :: Python :: 3.13",
2622
"Programming Language :: Python :: 3.14",
23+
"Programming Language :: Python :: 3.15",
2724
"Programming Language :: Python :: 3 :: Only",
2825
"Framework :: Django",
2926
"Framework :: Django :: 5.2",
@@ -46,7 +43,7 @@ keywords = [
4643
"framework",
4744
"task",
4845
]
49-
requires-python = ">=3.10"
46+
requires-python = ">=3.14"
5047
dependencies = [
5148
"django>=5.2",
5249
"django-appconf",

0 commit comments

Comments
 (0)