Re: Gnome Python 3 Goal
- From: Stef Walter <stefw gnome org>
- To: Russ Adams <russ adams gmail com>
- Cc: seahorse-list gnome org
- Subject: Re: Gnome Python 3 Goal
- Date: Tue, 26 Feb 2013 11:02:07 +0100
Good to hear.
Fedora doesn't yet seem to have this support (correct me if I'm wrong).
We generally try (although sometimes fail) to keep seahorse and related
projects building and working on the latest released big distros.
So I'd like to commit this after we get python3 dbus support in both
Fedora and Ubuntu. Can you file a bug, so it's not lost between now and
then? The bug could also be linked into the GNOME goal.
Cheers,
Stef
On 24.02.2013 16:20, Russ Adams wrote:
Thanks Stef,
I had some success running dbus-test.py with python3. See attached for
output.
I see what you see on the Redhat bug. According
to http://www.freedesktop.org/wiki/Software/DBusBindings, python-dbus
supports python3 as of 1.0.0. Maybe we have different versions of
dbus-python? I'm looking at my installed packages and see that I have a
python-dbus 1.1.1 and a python3-dbus 1.1.1. (running on Ubuntu 12.10)
On Sun, Feb 24, 2013 at 8:20 AM, Stef Walter <stefw gnome org
<mailto:stefw gnome org>> wrote:
On 23.02.2013 20:38, Russ Adams wrote:
> Hello,
>
> I'm new around here, but use seahorse regularly for tracking my
numerous
> passwords.
>
> I was poking around the GNOME goals list at
> (https://live.gnome.org/GnomeGoals/Python3Porting) and saw that
seahorse
> was marked as 'to do' for Python 3 porting. I noticed that the only
> Python-related code visible is in the 'tests' directory of the
seahorse
> and libcryptui source trees.
>
> After a bit of research, it looks like these test scripts exercise the
> DBUS interface provided seahorse-daemon which has been moved to
> libcryptui. Can these tests live in only the libcryptui source tree or
> do they need to remain in both the seahorse and libcryptui trees?
Good catch. I've removed them from the seahorse tree.
> I've attached a trivial patch to port these scripts to Python 3.
I can
> vouch that these changes allow the scripts to pass Python 3's syntax
> checker.
Thank you for doing this work.
Do the scripts actually work at all though? I couldn't get them to work
as is. I noticed that dbus-python (ie: import dbus) isn't supported on
python3. I see comments about this here and there. For example:
https://bugzilla.redhat.com/show_bug.cgi?id=538616#c15
So this means that we would need to port the scripts to gdbus. But is
that really required by the GNOME goal? I didn't realize building and
testing infrastructure was in scope of the goal.
Cheers,
Stef
--
- Russ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]