Update to 0.30.2

This commit is contained in:
Martin Pitt 2023-12-31 07:50:44 +01:00
parent f6f6766eb4
commit bd1b9aca94
3 changed files with 8 additions and 24 deletions

1
.gitignore vendored
View File

@ -34,3 +34,4 @@
/python-dbusmock-0.29.1.tar.gz
/python-dbusmock-0.30.0.tar.gz
/python-dbusmock-0.30.1.tar.gz
/python-dbusmock-0.30.2.tar.gz

View File

@ -1,7 +1,7 @@
%global modname dbusmock
Name: python-%{modname}
Version: 0.30.1
Version: 0.30.2
Release: 1%{?dist}
Summary: Mock D-Bus objects
@ -52,29 +52,12 @@ rm -rf python-%{modname}.egg-info
%{python3_sitelib}/*%{modname}*
%changelog
* Sun Dec 31 2023 Martin Pitt <mpitt@redhat.com> - 0.30.2-1
- bluez5: Fix invalid arguments to PairDevice (thanks Simon McVittie)
* Sat Dec 23 2023 Packit <hello@packit.dev> - 0.30.1-1
Over the years, this template has accumulated some hacks and bad API
which made PairDevice()'s handling of the Modalias/Class/Icon properties
buggy and hard to understand:
* These are *static* device properties, they are not supposed to change
during pairing.
* Commit ee29a4403359b6a added these as some kind of "dynamic fallback
default" when they were not initialized by the caller after
AddDevice().
* Commit 59d6af0dca3e silently broke that fallback default by changing
AddDevice() to set these device properties to empty strings.
* Commit fae4be7f49c0861 added another really bad API for setting Class
in PairDevice()(). That API didn't fit into D-Bus (see commit
8968284e8b which had to make it a non-default parameter) and also
broke the API, and moreover it is totally unintuitive -- the device
class has nothing to do with pairing.
Clean up all of these: Set the static property defaults in AddDevice()
right away, so that the caller can adjust them afterwards. Re-drop the
`class_` argument in PairDevice(). Adjust the documentation of
AddDevice() to point out that properties should be changed after calling
that.
Consequently, PairDevice() will stop claiming that the static properties
changed. This also gets rid of some redundant code.
- bluez: Clean up static default properties, re-drop PairDevice() `class_` parameter
- Add pre-commit rules (thanks Peter Hutterer)
* Thu Nov 30 2023 Packit <hello@packit.dev> - 0.30.0-1
- api: Add pytest support and helpers

View File

@ -1 +1 @@
SHA512 (python-dbusmock-0.30.1.tar.gz) = dfa27c94d71e132ef56615cc02f2f9733ca55366b5e88f023ddc594b39c2239b460389e4b53981493d627e8c117542fa5ec82f0f4ec407ed6e825e30f5d206ae
SHA512 (python-dbusmock-0.30.2.tar.gz) = a34c4660fe50b9551274626b19959dbe985e112429d2eb68811f3cc37cc017f8171eac2e2b8c262874678e24f7fb3d1f39410cd977b59f501973de19b6ca3a13