summaryrefslogtreecommitdiff
path: root/dbus
Commit message (Collapse)AuthorAge
* Add licensing information in REUSE formatSimon McVittie2022-09-05
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Fix invalid escape sequence warningsJason Yundt2021-09-15
| | | | | | | | | | | Backslashes only allowed in string literals if they're part of an escape sequence (raw strings are an exception to this rule).[1] This change fixes some string literals that broke this rule. 1. https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals Resolves: dbus/dbus-python#40 Signed-off-by: Jason Yundt <swagfortress@gmail.com>
* Remove support for Python 2Simon McVittie2021-09-15
| | | | | | | | Python 2 reached EOL on 2020-01-01, and the latest version of AX_PYTHON_DEVEL breaks the build with Python 2. This seems as good a time as any to drop compatibility. Signed-off-by: Simon McVittie <smcv@collabora.com>
* Fix getargspec() deprecation warningMartin Stumpf2020-11-19
| | | | Analogous to 7881666743df953227ccc403af4edfac7dd7ab8e
* service: Adjust to deprecation of collections.SequenceSimon McVittie2020-01-14
| | | | | | | Since Python 3.3 the recommended location is collections.abc.Sequence, and the collections.Sequence alias will be removed in 3.9. Signed-off-by: Simon McVittie <smcv@collabora.com>
* Don't reply to NO_REPLY method callsSimon McVittie2019-09-02
| | | | | | | | | This avoids unnecessary bus traffic, and when used on the system bus it also avoids system log spam from the dbus-daemon rejecting the unexpected reply. Closes: https://gitlab.freedesktop.org/dbus/dbus-python/issues/26 Signed-off-by: Simon McVittie <smcv@collabora.com>
* Add clearer licensing information in SPDX formatSimon McVittie2019-07-15
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Convert documentation from epydoc to SphinxSimon McVittie2018-05-02
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Suppress documentation of __gtype__ in epydoc, for reproducible buildsSimon McVittie2017-11-05
| | | | Signed-off-by: Simon McVittie <smcv@collabora.com>
* Drop support for Python 2.6, along with several workaroundsSimon McVittie2016-08-11
| | | | | | It hasn't had security support for about 3 years. Signed-off-by: Simon McVittie <smcv@debian.org>
* decorators: use a more modern idiom for signatures in Python >= 3.4Simon McVittie2016-03-06
| | | | | | getargspec() isn't in Python 3.6 development versions. Signed-off-by: Simon McVittie <smcv@debian.org>
* Get the version from the C code, not by generating a Python fileSimon McVittie2016-03-05
| | | | | | | This means we never try to import dbus/_version.py from the ${builddir}, which won't work. Signed-off-by: Simon McVittie <smcv@debian.org>
* Make dbus.version a tuple againSimon McVittie2016-03-05
| | | | | | | Otherwise it won't sort correctly. Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=816729 Signed-off-by: Simon McVittie <smcv@debian.org>
* Use AX_IS_RELEASE with the micro-version policySimon McVittie2016-02-19
| | | | Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* Include FallbackObject in "from dbus.service import *"Ben Longbons2015-12-04
| | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=85720 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk> [smcv: separate out some changes into separate commits]
* Use GObject.__class__ instead of GObjectMetaSimon McVittie2013-04-22
| | | | | | In pygobject 3.8, GObjectMeta is no longer available via gi.repository.GObject. What we actually want is "the metaclass of GObject", so, say so.
* DBusException: override both __str__ and __unicode__Simon McVittie2012-10-16
| | | | | | | | Avoid chaining up to the superclass, because that behaves particularly oddly. This fixes regression test failures: str(some_dbus_exception) was no longer prefixed with the D-Bus error name under Python 2. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55899
* Support unicode messages for DBusException in Python 2Michael Vogt2012-10-16
| | | | | | [commit message amended -smcv] Bug: https://bugs.freedesktop.org/show_bug.cgi?id=55899 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* 1.1.0Simon McVittie2012-05-09
|
* Deprecate dbus.gobject_service and make it vaguely compatible with 1.0Simon McVittie2012-05-02
| | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48904
* Reinstate the old dbus.gobject_service, but only for Python 2Simon McVittie2012-05-02
| | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48904
* Rename gobject_service (PyGI version) to gi_serviceSimon McVittie2012-05-02
| | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=48904
* Deprecate dbus.glib (use dbus.mainloop.glib or dbus.mainloop.qt4)Simon McVittie2012-01-24
|
* More Python 3 porting, this time primarily to get test-client.py working.Barry Warsaw2011-12-16
| | | | | | | | | | | | | | | | | | | | | | | | | | Changes include: - DBusException.get_dbus_message(): In Python 3, the str of the exception will already be a unicode, so don't try to decode it unless it's a bytes object (a.k.a. 8-bit str in Python 2). - gobject_service.py: Switch to pygi and rewrite the metaclass instantiation code to be portable between Python 2 and Python 3. - run-test.sh: echo a few more useful environment variables - test-client.py: - Globally replace deprecated assertEquals with assertEqual - Globally replace deprecated assert_ with assertTrue - Use bytes objects for both 'ay' signatured methods on the server - AcceptUnicodeString will return a native unicode, i.e. a str in Python 3 and a unicode in Python 2. Python 3 has no `unicode` built-in. - Reformat some long lines for debugging. - test-service.py: - Open the log file in 'a' mode for easier tailing. - AcceptUnicodeString will return a native unicode, i.e. a str in Python 3 and a unicode in Python 2. Python 3 has no `unicode` built-in. - reformat some long lines for debugging. - Put module-scope code into a main() function and add a bunch of logger output for better debugging. `session_bus` must still be global though. Wrap main() in a bit try/except to log all top-level exceptions.
* Fix the match rule semantics so that a match rule of "arg0='/'" does not matchBarry Warsaw2011-12-15
| | | | object paths in Python3, as per Simon's review comments.
* - Added back the missing PY3PORT.rst file, with updates.Barry Warsaw2011-12-15
| | | | | | | - Disallow appending unicode objects with 'y' (bytes) signatures. This now requires either a bytes object or an integer. Update the tests to reflect - this change. - Fix broken __all__ in Python 3.
* This is the big one; it adds Python 3 support.Barry Warsaw2011-12-15
|
* Modernize multiline imports in preparation for Python 3 support.Barry Warsaw2011-12-13
|
* Modernize `raise` syntax in preparation of Python 3 support.Barry Warsaw2011-12-13
|
* Import threading instead of thread. The latter is gone in Python 3.Barry Warsaw2011-12-13
|
* Remove dbus_bindings, deprecated for nearly 5 yearsSimon McVittie2011-12-13
|
* Use Python 3 syntax to catch exceptionsBarry Warsaw2011-12-13
| | | | Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* Merge branch 'fd-passing'Simon McVittie2011-05-24
|\ | | | | | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=30812 Tested-by: Elvis Pfützenreuter <epx@signove.com>
| * Added Unix Fd support to dbus-pythonElvis Pfützenreuter2011-05-18
| |
* | _ProxyMethod: allow an explicit signature to be given to method callsSimon McVittie2011-05-18
|/ | | | | Bug: https://bugs.freedesktop.org/show_bug.cgi?id=36206 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
* ProxyObject: clear _pending_introspect_queue after executionScott Tsai2011-05-17
| | | | Signed-off-by: Simon McVittie <smcv@debian.org>
* Fixed typo in dbus/bus.py where list_activatable_names would call ↵Johan Sandelin2010-03-24
| | | | | | org.freedesktop.DBus.ListNames instead of org.freedesktop.DBus.ListActivatableNames Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* fd.o #15013: expose dbus.lowlevel.MESSAGE_TYPE_SIGNAL and friendsSimon McVittie2010-02-18
|
* Cleanup self._signal_recipients_by_object_path (fd.o #17551)Marco Pesenti Gritti2008-09-15
| | | | | | | | | | | | | | | | In Connection, add_signal_receiver adds object paths to self._signal_recipients_by_object_path and they are not cleaned by remove_signal_receiver. As a result self._signal_recipients_by_object_path keeps growing indefinitely. This seem to work for me. I know very little about dbus-python though, so I could very well be doing it wrong. https://bugs.freedesktop.org/show_bug.cgi?id=17551 https://bugs.freedesktop.org/attachment.cgi?id=18857 Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
* Omit the remote traceback from certain D-Bus errorsSimon McVittie2008-07-17
| | | | | | | | | | | Specifically, DBusException and its subclasses no longer have the remote traceback by default (although subclasses can turn it back on again by setting include_traceback = True, and the various "programmer error" subclasses of DBusException do have this set). Hopefully this will stop people thinking it's a dbus-python or telepathy-python bug when a D-Bus API like Telepathy deliberately raises an error (and so dbus-python or telepathy-python is visible in the traceback).
* Update NEWS. Let's call the next release 0.83 since it's a feature releaseSimon McVittie2008-07-17
|
* Alter dbus.server.Server API to have pseudo-signalsSimon McVittie2008-07-15
| | | | | | By either appending to a list of callbacks, or subclassing and providing a method, you can be notified when connections are added or removed. Inspired by the DBusServer patch from Huang Peng.
* Add Connection.call_on_disconnectionSimon McVittie2008-07-14
|
* dbus.server.Server: implement a stub version of _on_new_connectionSimon McVittie2008-07-14
|
* Fix *another* thinko in dbus.serverSimon McVittie2008-07-14
|
* Fix thinko in dbus.server: actually instantiate a _ServerSimon McVittie2008-07-14
|
* Add some whitespace to make reStructuredText happySimon McVittie2008-07-14
|
* Rename _dbus_bindings.Server to _dbus_bindings._ServerSimon McVittie2008-07-14
|
* DBusPyServer: construct a user-specified subtype of ConnectionSimon McVittie2008-07-14
|
* Initial support for DBusServer class (#14322).Mathias Hasselmann2008-07-14
|