diff --git a/.github/actions/update-precommit/action.yml b/.github/actions/update-precommit/action.yml index d15ca18a1..e3bb48d56 100644 --- a/.github/actions/update-precommit/action.yml +++ b/.github/actions/update-precommit/action.yml @@ -7,7 +7,7 @@ inputs: python-version: description: 'Python version to use' required: false - default: '3.13' + default: '3.14' runs: using: composite diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 7377e4430..3b79d04f2 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -36,7 +36,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v6 with: - python-version: '3.13' + python-version: '3.14' - name: Install Doxygen and Graphviz run: | sudo apt-get update @@ -76,7 +76,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v6 with: - python-version: '3.13' + python-version: '3.14' - name: Install dependencies run: | python3 -m pip install -r requirements.txt diff --git a/scoreboard/main.py b/scoreboard/main.py index fa2010dd7..06ac4e256 100644 --- a/scoreboard/main.py +++ b/scoreboard/main.py @@ -10,15 +10,7 @@ from jinja2 import Environment, FileSystemLoader import logging import sys - -# Try ZoneInfo from stdlib, then from backports, else fall back to naive time -try: - from zoneinfo import ZoneInfo # type: ignore -except Exception: # pragma: no cover - fallback for Python < 3.9 - try: - from backports.zoneinfo import ZoneInfo # type: ignore - except Exception: # Last resort: define a stub - ZoneInfo = None # type: ignore +from zoneinfo import ZoneInfo # type: ignore logging.basicConfig(level=logging.INFO, format="%(levelname)s: %(message)s") logger = logging.getLogger(__name__) diff --git a/scoreboard/requirements.txt b/scoreboard/requirements.txt index d86cf7650..949c43121 100644 --- a/scoreboard/requirements.txt +++ b/scoreboard/requirements.txt @@ -1,3 +1,2 @@ Jinja2>=3.0 PyYAML>=6.0 -backports.zoneinfo; python_version < "3.9"