Skip to content

Commit d87ff13

Browse files
committed
Version 0.14.0
1 parent 52ffa6a commit d87ff13

File tree

2 files changed

+59
-1
lines changed

2 files changed

+59
-1
lines changed

CHANGELOG.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,61 @@
1+
## 0.14.0
2+
3+
### Minimum requirements raised
4+
5+
* Python 3.9 or higher.
6+
7+
For binary PyPI wheel:
8+
9+
* glibc 2.28 or higher. (Debian 10+, Ubuntu 18.10+, CentOS/RHEL 8+)
10+
* pip 20.3 or higher.
11+
* Added 32 bit ARM (`armv7l`) architecture wheel.
12+
13+
### Default bus changes
14+
15+
Previously the default bus always used the context-local variables
16+
to store the reference to the current default bus. As it turned out
17+
the context tends to be changed a lot which resulted in new buses being
18+
opened multiple times. (reported by @wes8ty)
19+
20+
To avoid this the default bus was changed to be thread-local.
21+
`set_default_bus` will now set the thread-local default bus.
22+
A new function `set_context_default_bus` was added to set the context-local
23+
bus. The `get_default_bus` will return the context-local bus if set or
24+
thread-local otherwise. If no default bus has been set a new thread-local
25+
bus will be initialized and set.
26+
27+
### Code generator
28+
29+
* Code generator will now add manual D-Bus member name override where
30+
automatic snake_case to CamelCase does not result in the original member name.
31+
This applies to when member renaming options were used. (reported by @nicomuns)
32+
* Generated code will now use Python 3.9 built-in collections type hints.
33+
(`typing.List[str]` -> `list[str]`)
34+
* Fixed blocking generated code adding unexpected `result_args_names` keyword.
35+
(reported by @christophehenry)
36+
37+
### Features
38+
39+
* All `sdbus.utils.parse` functions can now accept the blocking interfaces.
40+
(requested by @christophehenry)
41+
* Added boolean `use_interface_subsets` option to `sdbus.utils.parse` functions.
42+
When enabled the subset of interfaces will be considered a valid match.
43+
(requested by @christophehenry)
44+
45+
### Fixes
46+
47+
* Fixed exceptions mapped by `map_exception_to_dbus_error` not being translated
48+
from Python to D-Bus errors. This means the Python built-in exceptions will
49+
now be properly returned as D-Bus errors when raised in exported object callback.
50+
The built-in exceptions translating as added back in version 0.10.0 but probably
51+
never worked correctly. (reported by @arkq)
52+
* Fixed not being able to export interfaces with no implemented D-Bus members.
53+
This also means `export_to_dbus` will only access D-Bus related attributes
54+
avoiding triggering unrelated `@property` methods.
55+
* Renamed certain internal classes from `Binded` to `Bound` and
56+
from `DbusSomething` to `DbusMember`. (reported by @souliane,
57+
implemented by @dragomirecky)
58+
159
## 0.13.0
260

361
### Code generator improvements

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def get_link_arguments() -> list[str]:
9696
'Based on sd-bus from libsystemd.'),
9797
long_description=long_description,
9898
long_description_content_type='text/markdown',
99-
version='0.13.0',
99+
version='0.14.0',
100100
url='https://github.com/igo95862/python-sdbus',
101101
author='igo95862',
102102
author_email='igo95862@yandex.ru',

0 commit comments

Comments
 (0)