Repository navigation
feat: require Python 3.11 or later - #152
Draft
bluetoothbot wants to merge 2 commits into
Draft
bluetoothbot wants to merge 2 commits into
bluetoothbot wants to merge 2 commits into
Conversation
pyproject.toml declared `python = "^3.9"`, so the published wheel advertises Requires-Python >=3.9,<4.0, but CI has only tested 3.11-3.13. Python 3.9 reached end of life in October 2025 and 3.10 does so this month; the sibling Bluetooth-Devices parsers that consume this library already require 3.10/3.11+, and Home Assistant requires 3.13. - pyproject.toml: python = ">=3.11" (matches the CI floor). Poetry now emits Requires-Python >=3.11 and classifiers 3.11-3.14. - poetry.lock: python-versions and content-hash updated. The hash was computed with Poetry's own Locker._get_content_hash() (the same call reproduces main's committed hash exactly); `poetry check --lock` passes. No package versions change. - .readthedocs.yml: build on Python 3.13 / ubuntu-24.04 instead of 3.9 / ubuntu-20.04. With the new floor, RTD's `pip install .[docs]` on 3.9 would reject the package before Sphinx runs. - .pre-commit-config.yaml: pyupgrade --py311-plus (was --py37-plus); it produces no rewrites on the current tree.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #152 +/- ##
=======================================
Coverage 94.37% 94.37%
=======================================
Files 12 12
Lines 480 480
Branches 5 5
=======================================
Hits 453 453
Misses 26 26
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced Oct 25, 2026
This branch has not been deployed
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.
What: Raise the supported Python floor from
^3.9to>=3.11so it matches what CI actually tests.Why:
Requires-Python: >=3.9,<4.0, but the CI matrix is 3.11–3.13. 3.9 and 3.10 have never been tested here.dataclass(slots=True)needs Python 3.10+, so that PR would break the 3.9 support this package currently claims.How:
pyproject.toml:python = ">=3.11". The built wheel now hasRequires-Python: >=3.11and auto classifiers for 3.11–3.14.poetry.lock: onlypython-versionsandcontent-hashchange, and no package versions move. I computed the hash offline with Poetry's ownLocker._get_content_hash(). As a check, the same call onmainreproduces the hash committed there exactly.poetry check --lockpasses, and fails if the hash is wrong. Any futurepoetry lockwill also drop the now-unreachable<3.11entries (exceptiongroup, zipp, importlib-metadata)..readthedocs.yml: 3.9/ubuntu-20.04 → 3.13/ubuntu-24.04. Without this, RTD'spip install .[docs]on 3.9 would reject the package and the docs build would fail..pre-commit-config.yaml: pyupgrade--py37-plus→--py311-plus. The only rewrite it makes isList[Any]→list[Any]indocs/source/conf.py, which is committed separately.Testing:
pip install .[docs](Sphinx 7.4.7), thensphinx-build -W. The build is clean.lint,commitlintandtestjobs (3.11, 3.12, 3.13) all pass.pre-commit.cifails here just as it does on every open PR, so the cause is on the fork side, not this change.Release note for the maintainer: I used
feat:(minor bump), matching how bluetooth-adapters and bluetooth-auto-recovery dropped 3.9. If you'd rather mark the floor change as breaking, change it tofeat!:.🤖 Generated with Claude Code