GNOME Bugzilla – Bug 687637
Port to python 3
Last modified: 2016-04-07 08:20:03 UTC
See https://live.gnome.org/GnomeGoals/Python3Porting
Created attachment 228106 [details] [review] Port to python 3
Waiting for a fedora package of dbus-python before building.
Hi Stef, dbus-python is deprecated as well, the recommended way is to use GDBus via gobject-introspection, see https://bugs.freedesktop.org/show_bug.cgi?id=40661
Is there a non sucky method for implementing dbus services in python using GDBus? Like with annotations and stuff? Because plain ol' GDBus is really sucky in comparison.
Part of this has been done in https://bugzilla.gnome.org/show_bug.cgi?id=761834
The remaining part is just replacing python with python3 in shebangs and command lines, right? If there is something more complicated, please point me to it and I'll try to port it.
Created attachment 325463 [details] [review] build: Port to Python 3 Attached the patch to port the remaining parts of buildsystem to Python 3.
Created attachment 325464 [details] [review] libsecret: Get rid of PyGI warnings about unspecified versions Not directly related to Python 3 port, but this removes these warnings from PyGI: sys:1: PyGIWarning: MockService was imported without specifying a version first. Use gi.require_version('MockService', '0') before import to ensure that the right version gets loaded. sys:1: PyGIWarning: Secret was imported without specifying a version first. Use gi.require_version('Secret', '1') before import to ensure that the right version gets loaded.
Attachment 325463 [details] pushed as d50dbae - build: Port to Python 3 Attachment 325464 [details] pushed as ae5761c - libsecret: Get rid of PyGI warnings about unspecified versions
Thanks. Checked and pushed to master.