Upgrade Python to 3.14 - #205
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR upgrades the project’s baseline runtime/tooling to Python 3.14 and adjusts the dependency lockfile and codebase to match that new minimum version.
Changes:
- Bump minimum Python version to
>=3.14and update CI + Docker base images accordingly. - Regenerate/update
uv.lockfor the new Python requirement (including marker/dependency pruning). - Remove
from __future__ import annotationsacross modules and apply a few small typing/asyncio cleanups.
Reviewed changes
Copilot reviewed 24 out of 25 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
uv.lock |
Updates lock metadata and resolved dependencies for Python >=3.14 (including marker simplification/pruning). |
pyproject.toml |
Raises requires-python to >=3.14. |
docker/Dockerfile |
Switches Docker stages to Python 3.14 base images. |
.github/workflows/main.yml |
Runs tests/build on Python 3.14 in GitHub Actions. |
tests/unit/qtoggleserver/core/test_sessions.py |
Adjusts type annotations to non-string forward refs. |
qtoggleserver/utils/asyncio.py |
Updates typing imports to collections.abc for Awaitable/Coroutine. |
qtoggleserver/lib/polled.py |
Uses built-in TimeoutError for asyncio.wait_for timeout handling. |
qtoggleserver/system/fwupdate.py |
Removes from __future__ import annotations. |
qtoggleserver/system/dhcp.py |
Removes from __future__ import annotations. |
qtoggleserver/slaves/discover/apclients.py |
Removes from __future__ import annotations. |
qtoggleserver/slaves/devices.py |
Removes from __future__ import annotations. |
qtoggleserver/slaves/api/funcs/devices.py |
Removes from __future__ import annotations. |
qtoggleserver/peripherals/peripheralport.py |
Removes from __future__ import annotations. |
qtoggleserver/peripherals/peripheral.py |
Removes from __future__ import annotations. |
qtoggleserver/lib/ble.py |
Removes from __future__ import annotations. |
qtoggleserver/core/webhooks.py |
Removes from __future__ import annotations. |
qtoggleserver/core/sessions.py |
Removes from __future__ import annotations. |
qtoggleserver/core/reverse.py |
Removes from __future__ import annotations. |
qtoggleserver/core/ports.py |
Removes from __future__ import annotations. |
qtoggleserver/core/history.py |
Removes from __future__ import annotations. |
qtoggleserver/core/expressions/ports.py |
Removes from __future__ import annotations. |
qtoggleserver/core/expressions/base.py |
Removes from __future__ import annotations. |
qtoggleserver/core/expressions/__init__.py |
Removes from __future__ import annotations. |
qtoggleserver/core/events/base.py |
Removes from __future__ import annotations. |
qtoggleserver/core/api/__init__.py |
Removes from __future__ import annotations. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
6
to
10
| {name = "Calin Crisan", email = "ccrisan@gmail.com"}, | ||
| ] | ||
| requires-python = ">=3.11" | ||
| requires-python = ">=3.14" | ||
| readme = "README.md" | ||
| license = {text = "Apache 2.0"} |
Comment on lines
9
to
11
| # Always use BUILDPLATFORM for frontend-builder image, since it doesn't contain platform-specific binaries | ||
| FROM --platform=${BUILDPLATFORM:-linux/amd64} python:3.11.14-slim-bookworm AS frontend-builder | ||
| FROM --platform=${BUILDPLATFORM:-linux/amd64} python:3.14-slim-bookworm AS frontend-builder | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.