chore(python): tweak to optional requirements
What changed, and why it matters
This commit is a routine packaging/documentation update. It renames an optional Python dependency group from 'bleak' to 'ble' and updates the README to document Bluetooth installation for newer Trezor models. There is no security-relevant code change.
No security action needed. Treat as normal maintenance.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff modifies python/pyproject.toml to rename the optional extras group ‘bleak’ to ‘ble’ (still depending on bleak>=1.1.0) and updates python/README.md installation instructions to include the new ‘ble’ extra. No dependency versions are changed, no code is altered, and no vulnerability is introduced or fixed.
Changed components
python/pyproject.tomlpython/README.mdInspect captured patch +9 / −2
diff --git a/python/README.md b/python/README.md
index 565db877a..c2d401a29 100644
--- a/python/README.md
+++ b/python/README.md
@@ -38,6 +38,13 @@ you install HIDAPI support (see below).
### Installation options
+* **Bluetooth**: To support connecting to T3W1 or later models via Bluetooth,
+ additional dependencies are needed. Install with:
+
+ ```sh
+ pip3 install trezor[ble]
+ ```
+
* **Ethereum**: To support Ethereum signing from command line, additional packages are
needed. Install with:
@@ -64,7 +71,7 @@ you install HIDAPI support (see below).
pip3 install trezor[hidapi]
```
-To install all four, use `pip3 install trezor[hidapi,ethereum,stellar]`.
+To install all four, use `pip3 install trezor[ble,hidapi,ethereum,stellar]`.
### Distro packages
diff --git a/python/pyproject.toml b/python/pyproject.toml
index 8e58b5f52..39d2df8c1 100644
--- a/python/pyproject.toml
+++ b/python/pyproject.toml
@@ -40,7 +40,7 @@ ethereum = ["web3>=5"]
qt-widgets = ["PyQt5"]
extra = ["Pillow>=10"]
stellar = ["stellar-sdk>=6"]
-bleak = ["bleak>=1.1.0"]
+ble = ["bleak>=1.1.0"]
full = [
"hidapi>=0.7.99.post20",
"web3>=5",
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.