Skip to content

Commit aa67839

Browse files
authored
Switch to Python 3.14, drop support for Python 3.9 (#705)
1 parent d50d2bc commit aa67839

File tree

4 files changed

+4
-13
lines changed

4 files changed

+4
-13
lines changed

.github/actions/update-precommit/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ inputs:
77
python-version:
88
description: 'Python version to use'
99
required: false
10-
default: '3.13'
10+
default: '3.14'
1111

1212
runs:
1313
using: composite

.github/workflows/pages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Set up Python
3737
uses: actions/setup-python@v6
3838
with:
39-
python-version: '3.13'
39+
python-version: '3.14'
4040
- name: Install Doxygen and Graphviz
4141
run: |
4242
sudo apt-get update
@@ -76,7 +76,7 @@ jobs:
7676
- name: Set up Python
7777
uses: actions/setup-python@v6
7878
with:
79-
python-version: '3.13'
79+
python-version: '3.14'
8080
- name: Install dependencies
8181
run: |
8282
python3 -m pip install -r requirements.txt

scoreboard/main.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,7 @@
1010
from jinja2 import Environment, FileSystemLoader
1111
import logging
1212
import sys
13-
14-
# Try ZoneInfo from stdlib, then from backports, else fall back to naive time
15-
try:
16-
from zoneinfo import ZoneInfo # type: ignore
17-
except Exception: # pragma: no cover - fallback for Python < 3.9
18-
try:
19-
from backports.zoneinfo import ZoneInfo # type: ignore
20-
except Exception: # Last resort: define a stub
21-
ZoneInfo = None # type: ignore
13+
from zoneinfo import ZoneInfo # type: ignore
2214

2315
logging.basicConfig(level=logging.INFO, format="%(levelname)s: %(message)s")
2416
logger = logging.getLogger(__name__)

scoreboard/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
Jinja2>=3.0
22
PyYAML>=6.0
3-
backports.zoneinfo; python_version < "3.9"

0 commit comments

Comments
 (0)