Repository navigation
Install bleak by default, so Bluetooth works from a plain pip install - #111
Merged
Merged
Conversation
pyproject.toml says every capability comes with a default install, but ble:// needed a separate pip install bleak. bleak is now a dependency, bounded to the majors mpftp has been run on (1.x for Python 3.9, 3.x today). The docs say where it still has to be installed by hand: the Windows Python the sidecar uses on WSL, and the extension's Python.
bdbarnett
force-pushed
the
bleak-default
branch
from
October 11, 2026 08:31
f813e2b to
c08e1ef
Compare
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.
pyproject.tomlsays every capability is available from a default install, but connecting with-d ble://NAMEneeded a separatepip install bleak. This makes bleak a dependency.It's bounded
>=1.0,<4: mpftp calls bleak's API (BleakScanner.discover(return_adv=True),find_device_by_filter,BleakClient), and 1.x is what Python 3.9 resolves to while 3.x is current. Resolved with uv for Python 3.9 and 3.12 on Linux, Windows and macOS: 1.1.1 on 3.9 and 3.0.2 on 3.12, each with its platform backend (dbus-fast, winrt, pyobjc). A fresh 3.12 venv withpip install .imports bleak andmpftp.blefinds it.Two places still need it by hand, and the docs now say so: on WSL the sidecar runs on the Windows Python, because Windows owns the radio; and the VS Code extension bundles only mpremote and pyserial, since bleak has native parts per platform.