Skip to content

Conversation

@mdz
Copy link
Owner

@mdz mdz commented Feb 6, 2026

Summary

Aligns CI and requires-python with the versions Home Assistant uses, since this library is mainly used there.

Changes

  • CI: Test on Python 3.13 and 3.14 only (matches HA's ALL_PYTHON_VERSIONS).
  • pyproject.toml: requires-python = ">=3.13" (matches HA's >=3.13.2).
  • Actions: checkout@v4, setup-python@v5.
  • uv.lock: Regenerated for the new requires-python.

Why

  • CI was failing: Python 3.9 is no longer available on GitHub Actions runners (only 3.10+ are listed).
  • Focusing on 3.13 and 3.14 matches the only environment this library is tested in (Home Assistant).

Made with Cursor


Note

Medium Risk
Drops support for Python 3.9–3.12 and changes the resolved dependency set via a regenerated lockfile, which may affect downstream users/environments even though runtime code is unchanged.

Overview
Updates the supported Python range to 3.13+ by bumping requires-python to >=3.13 and trimming CI to run only on Python 3.13 and 3.14.

Refreshes CI dependencies by upgrading actions/checkout to v4 and actions/setup-python to v5, and regenerates uv.lock for the new Python baseline (dropping older-version-only transitive deps/markers like tomli, typing-extensions, and async-timeout).

Written by Cursor Bugbot for commit 2c10e5c. This will update automatically on new commits. Configure here.

- CI: test on Python 3.13 and 3.14 only (matches HA's ALL_PYTHON_VERSIONS)
- pyproject.toml: requires-python = ">=3.13" (matches HA's >=3.13.2)
- Upgrade actions: checkout@v4, setup-python@v5
- Regenerate uv.lock for new requires-python

Fixes CI failure: Python 3.9 no longer available on GitHub Actions runners.

Co-authored-by: Cursor <cursoragent@cursor.com>
@mdz mdz merged commit ddf1f9b into main Feb 6, 2026
3 checks passed
@mdz mdz deleted the ci-python-versions-ha-aligned branch February 6, 2026 05:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant