Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/0.21.0 #1410

Merged
merged 36 commits into from
Sep 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
63adefa
pyproject: bump version for develop
dlech Apr 1, 2023
3216f20
backends/winrt/client: improve get_services() error messages
dlech Apr 28, 2023
8948d5d
backends/winrt/client: handle arbitrary access denied
dlech Apr 29, 2023
e3a23ab
build(deps): bump requests from 2.28.1 to 2.31.0
dependabot[bot] May 23, 2023
294e731
Added support for 32bit UUID's added in 4.1 of the Bluetooth spec (#1…
al-little Jun 13, 2023
2abe80d
docs/troubleshooting: fix missing await
dlech Jun 14, 2023
6d603aa
backends/scanner: Fix typing for callback
bojanpotocnik Jul 17, 2023
8edde25
Fix windows scanner crash (#1331)
vmacari Jul 18, 2023
579e589
backends/corebluetooth/scanner: add note about use_bdaddr compatibility
dlech Jul 19, 2023
78f5922
build(deps-dev): bump pygments from 2.13.0 to 2.15.0
dependabot[bot] Jul 20, 2023
b60f793
backends: allow multiple advertisement callbacks per scanner (#1367)
dlech Jul 20, 2023
7ec1731
backends/winrt: improve error messages with enums (#1370)
dlech Jul 20, 2023
49ccb7e
examples/two_devices: fix example
dlech Jul 19, 2023
48a1691
uuids: add normalization functions for 16/32-bit uuids
dlech Jul 19, 2023
559f5c4
uuid cleanups
dlech Jul 19, 2023
718d272
CHANGELOG: normalize bullet characters
dlech Jul 20, 2023
401e71a
BleakClient.write_gatt_char: change handling of default response
dlech Feb 19, 2023
05793e1
__init__: fix mypy error about overlapping overloads
dlech Jul 20, 2023
8a720ab
BleakScanner: Add async iterator scanning capability (#1361)
bojanpotocnik Jul 23, 2023
3675fa7
backends/bluez: Defer expensive debug logging (#1376)
bdraco Jul 25, 2023
87ec6bd
CHANGELOG: cleanup unreleased section
dlech Jul 25, 2023
5349788
backends/bluezdbus/manager: normalize adapter/device arg checks
dlech Aug 25, 2023
4621d05
backends/bluezdbus/manager: race InterfaceRemoved in _wait_for_servic…
dlech Aug 25, 2023
cd0fda5
backends/bluezdbus/manager: add device path to condition callbacks
dlech Aug 25, 2023
256a5be
Optimize BlueZ device watchers and condition callbacks to avoid linea…
bdraco Aug 28, 2023
7db2fd5
Update of bleak on android and the android kivy example (#1398)
robgar2001 Aug 29, 2023
435e7c3
vsocde: add config files
dlech Sep 1, 2023
b25ec46
backends/winrt/client.py: Add delay before closing services. (#1406)
dlech Sep 1, 2023
a8affc8
backends/winrt/client.py: drop use of pythonapi (#1407)
dlech Sep 1, 2023
3c1fac9
use PEP 688 collections.abc.Buffer for type hints
dlech Aug 9, 2023
33d1880
drop support for Python 3.7
dlech Aug 9, 2023
9fb8723
update PyObjC version to 9.2
dlech Aug 9, 2023
ed4e8b5
implement PEP 692 type hints for BleakScanner kwargs
dlech Aug 9, 2023
82f4b71
backends/winrt: start migration away from bleak_winrt
dlech Sep 1, 2023
8dd12fa
docs: mock typing_extensions
dlech Sep 2, 2023
a00f76a
v0.21.0
dlech Sep 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Before you submit a pull request, check that it meets these guidelines:
1. If the pull request adds functionality, the docs should be updated.
2. Modify the `CHANGELOG.rst`, describing your changes as is specified by the
guidelines in that document.
3. The pull request should work for Python 3.7+ on the following platforms:
3. The pull request should work for Python 3.8+ on the following platforms:
- Windows 10, version 16299 (Fall Creators Update) and greater
- Linux distributions with BlueZ >= 5.43
- OS X / macOS >= 10.11
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
examples/notcommit/
.vscode/

.idea/
.vs/
Expand Down
13 changes: 13 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"ms-python.python",
"ms-python.black-formatter",
"ms-python.isort",
"ms-python.flake8"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
}
13 changes: 13 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
},
},
"black-formatter.importStrategy": "fromEnvironment",
"isort.importStrategy": "fromEnvironment",
"isort.args":["--profile", "black"],
"flake8.importStrategy": "fromEnvironment"
}
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Contributors
* Jonathan Soto <[email protected]>
* Kyle J. Williams <[email protected]>
* Edward Betts <[email protected]>
* Robbe Gaeremynck <[email protected]>

Sponsors
--------
Expand Down
45 changes: 42 additions & 3 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,52 @@ and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0
`Unreleased`_
=============

`0.21.0`_ (2023-09-02)
======================

Added
-----
* Added ``bleak.uuids.normalize_uuid_16()`` function.
* Added ``bleak.uuids.normalize_uuid_32()`` function.
* Added ``advertisement_data()`` async iterator method to ``BleakScanner``. Merged #1361.
* Added type hints for kwargs on ``BleakScanner`` class methods.
* Added support for Python 3.12.

Changed
-------
* Improved error messages when failing to get services in WinRT backend.
* Improved error messages with enum values in WinRT backend. Fixes #1284.
* Scanner backends modified to allow multiple advertisement callbacks. Merged #1367.
* Changed default handling of the ``response`` argument in ``BleakClient.write_gatt_char``.
Fixes #909.
* Bleak recipe now automatically installs bleak from GitHub release in Kivy example.
* Changed `BlueZManager` methods to raise `BleakError` when device is not in BlueZ.
* Optimized BlueZ backend device watchers and condition callbacks to avoid linear searches.
* Changed type hint for buffer protocol to ``collections.abc.Buffer``.

Fixed
-----
* Fixed handling all access denied errors when enumerating characteristics on Windows. Fixes #1291.
* Added support for 32bit UUIDs. Fixes #1314.
* Fixed typing for ``BaseBleakScanner`` detection callback.
* Fixed possible crash in ``_stopped_handler()`` in WinRT backend. Fixes #1330.
* Reduced expensive logging in the BlueZ backend. Merged #1376.
* Fixed race condition with ``"InterfaceRemoved"`` when getting services in BlueZ backend.
* Fixed missing permissions and requirements in android Kivy example. Fixes #1184.
* Fixed WinRT backend sometimes hanging forever when a device goes out of range during connection. Fixes #1359.

Removed
-------
Dropped support for Python 3.7.

`0.20.2`_ (2023-04-19)
======================

Fixed
-----
- Fixed ``org.bluez.Error.InProgress`` in characteristic and descriptor read and
* Fixed ``org.bluez.Error.InProgress`` in characteristic and descriptor read and
write methods in BlueZ backend.
- Fixed ``OSError: [WinError -2147483629] The object has been closed`` when
* Fixed ``OSError: [WinError -2147483629] The object has been closed`` when
connecting on Windows. Fixes #1280.

`0.20.1`_ (2023-03-24)
Expand Down Expand Up @@ -940,7 +978,8 @@ Fixed
* Bleak created.


.. _Unreleased: https://github.com/hbldh/bleak/compare/v0.20.2...develop
.. _Unreleased: https://github.com/hbldh/bleak/compare/v0.21.0...develop
.. _0.21.0: https://github.com/hbldh/bleak/compare/v0.20.2...v0.21.0
.. _0.20.2: https://github.com/hbldh/bleak/compare/v0.20.1...v0.20.2
.. _0.20.1: https://github.com/hbldh/bleak/compare/v0.20.0...v0.20.1
.. _0.20.0: https://github.com/hbldh/bleak/compare/v0.19.5...v0.20.0
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Before you submit a pull request, check that it meets these guidelines:
1. If the pull request adds functionality, the docs should be updated.
2. Modify the ``CHANGELOG.rst``, describing your changes as is specified by the
guidelines in that document.
3. The pull request should work for Python 3.7+ on the following platforms:
3. The pull request should work for Python 3.8+ on the following platforms:
- Windows 10, version 16299 (Fall Creators Update) and greater
- Linux distributions with BlueZ >= 5.43
- OS X / macOS >= 10.11
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Connect to a Bluetooth device and read its model number:
from bleak import BleakClient

address = "24:71:89:cc:09:05"
MODEL_NBR_UUID = "00002a24-0000-1000-8000-00805f9b34fb"
MODEL_NBR_UUID = "2A24"

async def main(address):
async with BleakClient(address) as client:
Expand Down
Loading