Skip to content

Require Python 3.11 - #542

Merged
ikalchev merged 7 commits into
ikalchev:devfrom
RaHehl:require-python-311
Nov 10, 2026
Merged

ikalchev merged 7 commits into
ikalchev:devfrom
RaHehl:require-python-311

Conversation

@RaHehl

@RaHehl RaHehl commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Python 3.10 reached its end of life in October 2026. This raises the minimum to 3.11:

  • requires-python, classifiers, CI matrix, tox, and the ruff and ty targets move to 3.11.
  • asyncio.timeout replaces the async_timeout backport, which is no longer a dependency.
  • TimeoutError is caught directly. On 3.11 asyncio.TimeoutError is the same class.
  • The benchmarks use datetime.UTC, and the install guide names 3.11 as the minimum.

No behavior change otherwise.

Tested with the full test suite on 3.11 and 3.14, ruff and ty.

AI use: written with the help of an AI coding assistant (Opus 5.5). I reviewed and tested the changes myself (pytest, ruff, ty).

Python 3.10 reached its end of life in October 2026. asyncio.timeout
replaces the async_timeout backport.
@codecov

codecov Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 87.50000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 93.16%. Comparing base (8f82314) to head (86dd9b0).

Files with missing lines Patch % Lines
pyhap/camera_multi_tier.py 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev     #542      +/-   ##
==========================================
+ Coverage   93.07%   93.16%   +0.09%     
==========================================
  Files          30       30              
  Lines        5629     5617      -12     
  Branches      708      705       -3     
==========================================
- Hits         5239     5233       -6     
+ Misses        267      264       -3     
+ Partials      123      120       -3     
Files with missing lines Coverage Δ
pyhap/camera.py 92.65% <100.00%> (+0.19%) ⬆️
pyhap/camera_stream.py 97.37% <100.00%> (ø)
pyhap/camera_talkback.py 79.20% <ø> (ø)
pyhap/hap_handler.py 86.57% <100.00%> (+0.33%) ⬆️
pyhap/hds_server.py 80.95% <100.00%> (ø)
pyhap/util.py 80.00% <100.00%> (+1.34%) ⬆️
pyhap/camera_multi_tier.py 93.73% <0.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ikalchev
ikalchev merged commit 13f3176 into ikalchev:dev Nov 10, 2026
5 of 6 checks passed
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.

2 participants