summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-08-30Merge branch 'argNpath' into 'master'HEADmasterSimon McVittie3-6/+118
Add support for argNpath in add_signal_receiver See merge request dbus/dbus-python!24
2023-08-30test: Add basic coverage for argNpatch matchesJeroen Hofstee1-0/+62
Signed-off-by: Jeroen Hofstee <jhofstee@victronenergy.com>
2023-08-30Add support for argNpath in add_signal_receiverJeroen Hofstee2-6/+56
Match messages whose n´th argument equals the given value or match in a path-like manner. Signed-off-by: Jeroen Hofstee <jhofstee@victronenergy.com>
2023-08-30test: Add SPDX licensing informationSimon McVittie3-0/+6
Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-08-30CI: Run pipelines on merge request eventsSimon McVittie1-0/+5
After abuses of fdo infrastructure were mitigated in freedesktop/freedesktop#540, contributors cannot usually run pipelines in their own forks of dbus-python. Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-08-16README: Add several more alternativesSimon McVittie1-1/+21
Criteria for inclusion: they're in Debian, and they seem to be actively maintained (which rules out pydbus). No endorsement intended: GDBus via PyGI is the only one of these that I have actually tried. Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-08-16Update NEWSSimon McVittie1-2/+15
Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-08-16Merge branch 'arg0namespace' into 'master'Simon McVittie3-2/+63
Add support for arg0namespace in add_signal_receiver See merge request dbus/dbus-python!27
2023-08-16test: Add basic coverage for arg0namespaceJeroen Hofstee1-0/+36
Signed-off-by: Jeroen Hofstee <jhofstee@victronenergy.com>
2023-08-16Add support for arg0namespace in add_signal_receiverJeroen Hofstee2-2/+27
Match messages whose first argument is a string and start with the value given to arg0namespace. This is primarily intended for watching name owner changes for a group of related bus names, rather than for a single name or all name changes. Signed-off-by: Jeroen Hofstee <jhofstee@victronenergy.com>
2023-08-16CI: Use Ubuntu 22.04 'jammy' to test Python 3.10Simon McVittie2-5/+7
python3.10 was removed from Debian bookworm before it was released as Debian 12. Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-08-16CI: Consistently prevent dpkg from asking questionsSimon McVittie1-1/+1
Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-05-30Merge branch 'service-example-typo' into 'master'Simon McVittie1-1/+1
Fix typo in class name for dbus.service.Object in example code. See merge request dbus/dbus-python!25
2023-05-30Fix typo in class name for dbus.service.Object in example code.Robert Ancell1-1/+1
2023-02-14CI: Stop editing /etc/apt/sources.listSimon McVittie1-5/+0
Current Debian Docker images use a reliable CDN, and images for newer suites like bookworm have started using /etc/apt/sources.list.d/ instead of the old-style /etc/apt/sources.list, making this step fail. Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-01-20Merge branch 'call-async-no-reply' into 'master'Simon McVittie1-0/+2
Set no_reply flag in call_async when reply_handler is None See merge request dbus/dbus-python!22
2023-01-20connection: Set NO_REPLY flag if there's no handlerMihai Dumitru1-0/+2
If we do an async call with no handler, it doesn't matter whether the implementation replies with a result or an error, because either way we will ignore it. Normally, the method implementation is expected to reply to all method calls, but with the NO_REPLY flag set, it can optimize by not sending a reply at all, which also means the message bus does not have to keep track of pending replies. Co-authored-by: Simon McVittie <smcv@collabora.com>
2023-01-20ci-install.sh: Roll back to an older version of ninja on EOL Debian 10wip/smcv/buildSimon McVittie1-2/+4
Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-01-20CI: Collect Meson logsSimon McVittie1-0/+1
Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-01-20CI: Temporarily force each CI job to re-clone the project directorySimon McVittie1-0/+1
Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-01-20CI: Work around pypa/pip#11623 by installing ninja-build in the containerSimon McVittie1-0/+1
Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-01-20CI: Stop switching privilege levels, just do the build as uid 0Simon McVittie2-22/+4
This avoids git complaining that the git repo's ownership was changed. Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-01-20CI: Remove vestigial support for launching our own Docker containerSimon McVittie3-41/+0
This was only useful on Travis-CI. Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-01-20CI: Configure PATH to be able to find ninja-build from pipSimon McVittie1-1/+1
Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-01-20setup.py: Use os.makedirs instead of deprecated distutils.dir_util.mkpathSimon McVittie1-2/+1
Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-01-20setup.py: Remove unused distutils importsSimon McVittie1-2/+1
Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-01-20CI: Test Python 3.11 on Debian 12Simon McVittie1-0/+19
Signed-off-by: Simon McVittie <smcv@collabora.com>
2023-01-20tools/ci-install.sh: Explicitly install adduserSimon McVittie1-0/+1
This is no longer transitively Essential in Debian 12. Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-06Post-release version bumpSimon McVittie3-2/+7
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-06Prepare v1.3.2dbus-python-1.3.2Simon McVittie3-4/+11
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-06build: Include PKG-INFO, egg-info etc. in dist tarballs againSimon McVittie3-2/+55
twine requires at least PKG-INFO, and if we're generating that, we might as well have everything. Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-06NEWS: Use ASCII bullet points for reST formattingSimon McVittie1-116/+120
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-06.gitignore: Ignore mesonpy detritusSimon McVittie1-0/+1
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-06Start 1.3.2 developmentSimon McVittie3-2/+7
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-06Fix website update infrastructureSimon McVittie4-16/+16
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-06Prepare v1.3.0dbus-python-1.3.0Simon McVittie3-3/+3
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-06CONTRIBUTING: Make a note to update meson.buildSimon McVittie1-2/+4
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-06build: Remove vestigial macrosSimon McVittie1-13/+1
These have not been used since commit e443d3b5 "Use AX_IS_RELEASE with the micro-version policy". Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-06Update NEWSSimon McVittie1-0/+8
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-06test: Exercise handling of invalid/negative Unix fdswip/smcv/invalid-unix-fdSimon McVittie2-1/+58
Reproduces: https://github.com/firewalld/firewalld/issues/985 Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-06unixfd: Fix assertion failure constructing UnixFd for invalid fdSimon McVittie1-3/+3
File descriptors are represented as the C int type, but only non-negative values represent a valid fd, with all negative values representing the absence of a fd (a NULL-like value). Previously, make_fd() accepted negative fds, but then UnixFd_tp_new would crash with an assertion failure. Instead, range-check the value according to the semantically valid range. If it isn't, raise the same error we previously raised for values that don't fit in an int. Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-06message: Fix assertion failure unpacking handle to an out-of-range fdSimon McVittie1-0/+8
In the D-Bus wire protocol, the representation of a Unix fd is a simple integer in the message body (referred to as the "handle" in GDBus) which acts as an index into the array of out-of-band fds attached to the message. The libdbus API (and therefore the dbus-python API) automatically translates handles into fds, but the GDBus API does not, making it possible for a GDBus sender to send a message containing handles that are out-of-range for the number of attached fds. The message bus also does not prevent such messages from being sent. dbus-python services need to cope with this and fail gracefully while unpacking the message, rather than crashing with an assertion failure in UnixFd_tp_new when the fd turns out to be invalid. Resolves: https://github.com/firewalld/firewalld/issues/985 Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-06build: Stop including egg-info in sdistSimon McVittie2-5/+3
This seems to be obsolete when using PEP 517. Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-06setup.py: Build using Meson instead of Autotools by defaultSimon McVittie7-89/+175
This requires mostly dropping support for Python 3.5 and 3.6, both of which are EOL anyway. Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-05meson: Make installed-tests from multiple builds co-installableSimon McVittie2-2/+9
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-05Update NEWSSimon McVittie1-7/+21
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-05CI: Exercise Meson buildSimon McVittie4-44/+78
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-05Add a Meson build systemSimon McVittie10-0/+556
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-05.gitignore: Ignore more generated filesSimon McVittie1-0/+3
Signed-off-by: Simon McVittie <smcv@collabora.com>
2022-09-05Reinstate test coverage for pip install dbus-pythonSimon McVittie3-8/+32
Signed-off-by: Simon McVittie <smcv@collabora.com>