summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* CI: Stop editing /etc/apt/sources.listHEADmasterSimon McVittie2023-02-141-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>
* Merge branch 'call-async-no-reply' into 'master'Simon McVittie2023-01-201-0/+2
|\ | | | | | | | | Set no_reply flag in call_async when reply_handler is None See merge request dbus/dbus-python!22
| * connection: Set NO_REPLY flag if there's no handlerMihai Dumitru2023-01-201-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>
* ci-install.sh: Roll back to an older version of ninja on EOL Debian 10wip/smcv/buildSimon McVittie2023-01-201-2/+4
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* CI: Collect Meson logsSimon McVittie2023-01-201-0/+1
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* CI: Temporarily force each CI job to re-clone the project directorySimon McVittie2023-01-201-0/+1
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* CI: Work around pypa/pip#11623 by installing ninja-build in the containerSimon McVittie2023-01-201-0/+1
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* CI: Stop switching privilege levels, just do the build as uid 0Simon McVittie2023-01-202-22/+4
| | | | | | This avoids git complaining that the git repo's ownership was changed. Signed-off-by: Simon McVittie <smcv@collabora.com>
* CI: Remove vestigial support for launching our own Docker containerSimon McVittie2023-01-203-41/+0
| | | | | | This was only useful on Travis-CI. Signed-off-by: Simon McVittie <smcv@collabora.com>
* CI: Configure PATH to be able to find ninja-build from pipSimon McVittie2023-01-201-1/+1
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* setup.py: Use os.makedirs instead of deprecated distutils.dir_util.mkpathSimon McVittie2023-01-201-2/+1
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* setup.py: Remove unused distutils importsSimon McVittie2023-01-201-2/+1
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* CI: Test Python 3.11 on Debian 12Simon McVittie2023-01-201-0/+19
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* tools/ci-install.sh: Explicitly install adduserSimon McVittie2023-01-201-0/+1
| | | | | | This is no longer transitively Essential in Debian 12. Signed-off-by: Simon McVittie <smcv@collabora.com>
* Post-release version bumpSimon McVittie2022-09-063-2/+7
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Prepare v1.3.2dbus-python-1.3.2Simon McVittie2022-09-063-4/+11
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* build: Include PKG-INFO, egg-info etc. in dist tarballs againSimon McVittie2022-09-063-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>
* NEWS: Use ASCII bullet points for reST formattingSimon McVittie2022-09-061-116/+120
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* .gitignore: Ignore mesonpy detritusSimon McVittie2022-09-061-0/+1
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Start 1.3.2 developmentSimon McVittie2022-09-063-2/+7
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Fix website update infrastructureSimon McVittie2022-09-064-16/+16
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Prepare v1.3.0dbus-python-1.3.0Simon McVittie2022-09-063-3/+3
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* CONTRIBUTING: Make a note to update meson.buildSimon McVittie2022-09-061-2/+4
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* build: Remove vestigial macrosSimon McVittie2022-09-061-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>
* Update NEWSSimon McVittie2022-09-061-0/+8
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* test: Exercise handling of invalid/negative Unix fdswip/smcv/invalid-unix-fdSimon McVittie2022-09-062-1/+58
| | | | | Reproduces: https://github.com/firewalld/firewalld/issues/985 Signed-off-by: Simon McVittie <smcv@collabora.com>
* unixfd: Fix assertion failure constructing UnixFd for invalid fdSimon McVittie2022-09-061-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>
* message: Fix assertion failure unpacking handle to an out-of-range fdSimon McVittie2022-09-061-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>
* build: Stop including egg-info in sdistSimon McVittie2022-09-062-5/+3
| | | | | | This seems to be obsolete when using PEP 517. Signed-off-by: Simon McVittie <smcv@collabora.com>
* setup.py: Build using Meson instead of Autotools by defaultSimon McVittie2022-09-067-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>
* meson: Make installed-tests from multiple builds co-installableSimon McVittie2022-09-052-2/+9
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Update NEWSSimon McVittie2022-09-051-7/+21
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* CI: Exercise Meson buildSimon McVittie2022-09-054-44/+78
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Add a Meson build systemSimon McVittie2022-09-0510-0/+556
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* .gitignore: Ignore more generated filesSimon McVittie2022-09-051-0/+3
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Reinstate test coverage for pip install dbus-pythonSimon McVittie2022-09-053-8/+32
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* setup.py: Remove obsolete Python 2 classifierSimon McVittie2022-09-051-1/+0
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Stop testing python3.5-dbgSimon McVittie2022-09-051-8/+0
| | | | | | | | | | | | This version is EOL, and Meson (for which I want to add support) fails on its -dbg variant with: Fatal Python error: a function returned a result with an error set NotImplementedError: chmod: follow_symlinks unavailable on this platform During handling of the above exception, another exception occurred: SystemError: <built-in function chmod> returned a result with an error set Signed-off-by: Simon McVittie <smcv@collabora.com>
* CI: Collect build and test logsSimon McVittie2022-09-053-11/+26
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Merge dbus-gmain commit '93e8fced640e29bd6fbcc066a6c854a8dd74f8ab'Simon McVittie2022-09-0522-566/+622
|\
| * Autotools: Allow dbus-gmain to be in $(top_srcdir)/subprojectsSimon McVittie2022-09-051-0/+2
| | | | | | | | This gives it a more Meson-compatible layout.
| * build: Add REUSE licenses and Meson build files to Autotools distSimon McVittie2022-09-051-0/+10
| | | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
| * Add Gitlab-CISimon McVittie2022-09-052-1/+35
| | | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
| * .editorconfig: AddSimon McVittie2022-09-051-0/+28
| | | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
| * Add G_GNUC_UNUSED to unused function parametersSimon McVittie2022-09-054-20/+16
| | | | | | | | | | | | | | It's easier to integrate subprojects into a larger project if they are as close to warnings-clean as possible. Signed-off-by: Simon McVittie <smcv@collabora.com>
| * Add a Meson build systemSimon McVittie2022-09-058-0/+324
| | | | | | | | | | | | This allows larger projects to use this as a Meson subproject. Signed-off-by: Simon McVittie <smcv@collabora.com>
| * Clean up some compiler warningsSimon McVittie2022-09-052-3/+6
| | | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
| * Move dbus-gmain.h into a subdirectorySimon McVittie2022-09-042-1/+1
| | | | | | | | | | | | This will make it easier to use this as a Meson subproject. Signed-off-by: Simon McVittie <smcv@collabora.com>
| * Use REUSE for license informationSimon McVittie2022-09-048-548/+209
| | | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* | Add licensing information in REUSE formatSimon McVittie2022-09-0522-1/+330
| | | | | | | | Signed-off-by: Simon McVittie <smcv@collabora.com>