Merge lp:~bregma/libgrip/add-python3-support into lp:libgrip

Proposed by Stephen M. Webb
Status: Merged
Merged at revision: 93
Proposed branch: lp:~bregma/libgrip/add-python3-support
Merge into: lp:libgrip
Diff against target: 250 lines (+64/-46)
8 files modified
INSTALL (+12/-7)
bindings/python/Makefile.am (+2/-5)
configure.ac (+15/-0)
debian/changelog (+10/-0)
debian/control (+17/-31)
debian/gir1.2-grip.install (+2/-1)
debian/python-grip.install (+0/-1)
debian/rules (+6/-1)
To merge this branch: bzr merge lp:~bregma/libgrip/add-python3-support
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Open Input Framework Team Pending
Review via email: mp+223982@code.launchpad.net

Commit message

add Python 3 support through GObject introspection

Description of the change

Adds Python 3 support through GObject introspection.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
94. By Stephen M. Webb

debian/control: added conflicts/replaces clause to gir binary deb

95. By Stephen M. Webb

debian/changelog: increased detail and verbosity of the change description

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'INSTALL'
--- INSTALL 2012-11-22 22:16:54 +0000
+++ INSTALL 2014-06-24 12:58:10 +0000
@@ -1,8 +1,8 @@
1Installation Instructions1Installation Instructions
2*************************2*************************
33
4Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,4Copyright (C) 1994-1996, 1999-2002, 2004-2013 Free Software Foundation,
52006, 2007, 2008, 2009 Free Software Foundation, Inc.5Inc.
66
7 Copying and distribution of this file, with or without modification,7 Copying and distribution of this file, with or without modification,
8are permitted in any medium without royalty provided the copyright8are permitted in any medium without royalty provided the copyright
@@ -12,8 +12,8 @@
12Basic Installation12Basic Installation
13==================13==================
1414
15 Briefly, the shell commands `./configure; make; make install' should15 Briefly, the shell command `./configure && make && make install'
16configure, build, and install this package. The following16should configure, build, and install this package. The following
17more-detailed instructions are generic; see the `README' file for17more-detailed instructions are generic; see the `README' file for
18instructions specific to this package. Some packages provide this18instructions specific to this package. Some packages provide this
19`INSTALL' file but do not implement all of the features documented19`INSTALL' file but do not implement all of the features documented
@@ -226,6 +226,11 @@
226226
227and if that doesn't work, install pre-built binaries of GCC for HP-UX.227and if that doesn't work, install pre-built binaries of GCC for HP-UX.
228228
229 HP-UX `make' updates targets which have the same time stamps as
230their prerequisites, which makes it generally unusable when shipped
231generated files such as `configure' are involved. Use GNU `make'
232instead.
233
229 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot234 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
230parse its `<wchar.h>' header file. The option `-nodtk' can be used as235parse its `<wchar.h>' header file. The option `-nodtk' can be used as
231a workaround. If GNU CC is not installed, it is therefore recommended236a workaround. If GNU CC is not installed, it is therefore recommended
@@ -304,9 +309,10 @@
304overridden in the site shell script).309overridden in the site shell script).
305310
306Unfortunately, this technique does not work for `CONFIG_SHELL' due to311Unfortunately, this technique does not work for `CONFIG_SHELL' due to
307an Autoconf bug. Until the bug is fixed you can use this workaround:312an Autoconf limitation. Until the limitation is lifted, you can use
313this workaround:
308314
309 CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash315 CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
310316
311`configure' Invocation317`configure' Invocation
312======================318======================
@@ -362,4 +368,3 @@
362368
363`configure' also accepts some other, not widely useful, options. Run369`configure' also accepts some other, not widely useful, options. Run
364`configure --help' for more details.370`configure --help' for more details.
365
366371
=== modified file 'bindings/python/Makefile.am'
--- bindings/python/Makefile.am 2011-01-24 18:50:54 +0000
+++ bindings/python/Makefile.am 2014-06-24 12:58:10 +0000
@@ -1,8 +1,5 @@
1PLATFORM_VERSION = 2.01pygioverridesdir = $(PYGI_OVERRIDES_DIR)
22
3pkgpyexecdir = $(pyexecdir)/gi
4
5pygioverridesdir = $(pkgpyexecdir)/overrides
6pygioverrides_PYTHON = \3pygioverrides_PYTHON = \
7 Grip.py4 Grip.py
85
96
=== modified file 'configure.ac'
--- configure.ac 2013-06-27 13:00:08 +0000
+++ configure.ac 2014-06-24 12:58:10 +0000
@@ -28,6 +28,21 @@
28AM_MAINTAINER_MODE28AM_MAINTAINER_MODE
2929
30AM_PATH_PYTHON30AM_PATH_PYTHON
31AC_ARG_WITH([pygi_overrides_dir],
32 AC_HELP_STRING([--with-pygi-overrides-dir], [Path to pygobject overrides directory]))
33AC_MSG_CHECKING(for pygobject overrides directory)
34if test "x$with_pygi_overrides_dir" = "x" ; then
35 overrides_dir="`$PYTHON -c 'import gi; print(gi._overridesdir)' 2>/dev/null`"
36 # fallback if the previous failed
37 if test "x$overrides_dir" = "x" ; then
38 overrides_dir="${pyexecdir}/gi/overrides"
39 fi
40else
41 overrides_dir="$with_pygi_overrides_dir"
42fi
43PYGI_OVERRIDES_DIR="$overrides_dir"
44AC_SUBST(PYGI_OVERRIDES_DIR)
45AC_MSG_RESULT($PYGI_OVERRIDES_DIR)
3146
32GRIP_MAJOR_VERSION=grip_major_version47GRIP_MAJOR_VERSION=grip_major_version
33GRIP_MINOR_VERSION=grip_minor_version48GRIP_MINOR_VERSION=grip_minor_version
3449
=== modified file 'debian/changelog'
--- debian/changelog 2014-03-03 20:07:30 +0000
+++ debian/changelog 2014-06-24 12:58:10 +0000
@@ -1,3 +1,13 @@
1libgrip (0.3.7+14.04.20140303-0ubuntu2) UNRELEASED; urgency=medium
2
3 * improved Python 3 support (lp: #1332516)
4 - moved all Python support into the GObject Introspection (GIR) package to
5 better support all Python versions
6 - removed python-libgrip package
7 - added Python 3 and Python-GIR build deps
8
9 -- Stephen M. Webb <stephen.webb@bregmasoft.ca> Fri, 20 Jun 2014 10:41:19 -0400
10
1libgrip (0.3.7+14.04.20140303-0ubuntu1) trusty; urgency=low11libgrip (0.3.7+14.04.20140303-0ubuntu1) trusty; urgency=low
212
3 [ Stephen M. Webb ]13 [ Stephen M. Webb ]
414
=== modified file 'debian/control'
--- debian/control 2014-03-03 14:58:42 +0000
+++ debian/control 2014-06-24 12:58:10 +0000
@@ -5,33 +5,31 @@
5Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>5Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
6Build-Depends: debhelper (>= 9),6Build-Depends: debhelper (>= 9),
7 dh-autoreconf,7 dh-autoreconf,
8 gnome-common,
9 gtk-doc-tools,
10 python,
11 python-dev,
12 gir1.2-freedesktop,8 gir1.2-freedesktop,
13 gir1.2-gdkpixbuf-2.0,9 gir1.2-gdkpixbuf-2.0,
14 gir1.2-glib-2.0,10 gir1.2-glib-2.0,
15 gir1.2-gtk-3.0,11 gir1.2-gtk-3.0,
16 gir1.2-pango-1.0,12 gir1.2-pango-1.0,
13 gnome-common,
17 gobject-introspection,14 gobject-introspection,
15 gtk-doc-tools,
16 libgeis-dev,
18 libgirepository1.0-dev,17 libgirepository1.0-dev,
19 libglib2.0-dev (>=2.28.6),18 libglib2.0-dev (>=2.28.6),
20 libgtk-3-dev (>= 3.0.8-0ubuntu1),19 libgtk-3-dev (>= 3.0.8-0ubuntu1),
21 libgeis-dev,20 python,
21 python-gi,
22 python3,
23 python3-gi
22Standards-Version: 3.9.524Standards-Version: 3.9.5
23Homepage: https://launchpad.net/libgrip25Homepage: https://launchpad.net/libgrip
24# If you aren't a member of ~oif-team but need to upload
25# packaging changes, just go ahead. ~oif-team will notice
26# and sync up the code again.
27Vcs-Bzr: https://code.launchpad.net/~oif-team/libgrip/trunk26Vcs-Bzr: https://code.launchpad.net/~oif-team/libgrip/trunk
28Vcs-Browser: https://bazaar.launchpad.net/~oif-team/libgrip/trunk/files27Vcs-Browser: https://bazaar.launchpad.net/~oif-team/libgrip/trunk/files
2928
30Package: libgrip029Package: libgrip0
31Architecture: any30Architecture: any
32Pre-Depends: multiarch-support,31Pre-Depends: multiarch-support
33Depends: ${misc:Depends},32Depends: ${misc:Depends}, ${shlibs:Depends}
34 ${shlibs:Depends},
35Description: multitouch gestures for GTK+ apps33Description: multitouch gestures for GTK+ apps
36 Libgrip is an extenion library that provides widget-level programmable gesture34 Libgrip is an extenion library that provides widget-level programmable gesture
37 recognition for GTK+ applications natively within the toolkit. Widgets35 recognition for GTK+ applications natively within the toolkit. Widgets
@@ -41,13 +39,13 @@
41Package: libgrip-dev39Package: libgrip-dev
42Section: libdevel40Section: libdevel
43Architecture: any41Architecture: any
44Depends: libglib2.0-dev (>=2.28.6),42Depends: libgeis-dev,
43 libglib2.0-dev (>=2.28.6),
45 libgrip0 (= ${binary:Version}),44 libgrip0 (= ${binary:Version}),
46 libgtk-3-dev (>= 3.0.8),45 libgtk-3-dev (>= 3.0.8),
47 libgeis-dev,
48 pkg-config,46 pkg-config,
49 ${misc:Depends},47 ${misc:Depends},
50 ${shlibs:Depends},48 ${shlibs:Depends}
51Description: multitouch gestures for GTK+ apps -- development files49Description: multitouch gestures for GTK+ apps -- development files
52 Libgrip is an extenion library that provides widget-level programmable gesture50 Libgrip is an extenion library that provides widget-level programmable gesture
53 recognition for GTK+ applications natively within the toolkit. Widgets51 recognition for GTK+ applications natively within the toolkit. Widgets
@@ -59,8 +57,10 @@
5957
60Package: gir1.2-grip58Package: gir1.2-grip
61Architecture: any59Architecture: any
62Depends: ${gir:Depends},60Depends: ${gir:Depends}, ${misc:Depends}
63 ${misc:Depends},61Provides: python-grip
62Conflicts: python-grip (<< 0.3.8~)
63Replaces: python-grip (<< 0.3.8~)
64Description: typelib file for libgrip64Description: typelib file for libgrip
65 Libgrip is an extenion library that provides widget-level programmable gesture65 Libgrip is an extenion library that provides widget-level programmable gesture
66 recognition for GTK+ applications natively within the toolkit. Widgets66 recognition for GTK+ applications natively within the toolkit. Widgets
@@ -68,19 +68,5 @@
68 receipt of corresponding gesture events.68 receipt of corresponding gesture events.
69 .69 .
70 This package can be used by other packages using the GIRepository format to70 This package can be used by other packages using the GIRepository format to
71 generate dynamic bindings for libgrip71 generate dynamic bindings for libgrip.
7272
73Package: python-grip
74Section: python
75XB-Python-Version: ${python:Versions}
76Architecture: all
77Depends: ${misc:Depends},
78 ${python:Depends},
79Description: python bindings for libgrip
80 Libgrip is an extenion library that provides widget-level programmable gesture
81 recognition for GTK+ applications natively within the toolkit. Widgets
82 subscribe to particular gestures and provide programmed functionality on
83 receipt of corresponding gesture events.
84 .
85 This package provides Python bindings so that you can use libgrip from
86 a Python program.
8773
=== modified file 'debian/gir1.2-grip.install'
--- debian/gir1.2-grip.install 2012-11-23 00:39:06 +0000
+++ debian/gir1.2-grip.install 2014-06-24 12:58:10 +0000
@@ -1,1 +1,2 @@
1debian/tmp/usr/lib/*/girepository-1.01usr/lib/*/girepository-1.0
2usr/lib/python*/*-packages/gi/overrides/*.py
23
=== removed file 'debian/python-grip.install'
--- debian/python-grip.install 2011-09-20 02:27:41 +0000
+++ debian/python-grip.install 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
1usr/lib/python*/*
20
=== modified file 'debian/rules'
--- debian/rules 2014-01-07 00:19:19 +0000
+++ debian/rules 2014-06-24 12:58:10 +0000
@@ -1,7 +1,7 @@
1#!/usr/bin/make -f1#!/usr/bin/make -f
22
3%:3%:
4 dh $@ --with python2,autoreconf4 dh $@ --with python2,python3,autoreconf
55
6override_dh_autoreconf:6override_dh_autoreconf:
7 NOCONFIGURE=1 dh_autoreconf ./autogen.sh7 NOCONFIGURE=1 dh_autoreconf ./autogen.sh
@@ -10,5 +10,10 @@
10 dh_auto_configure -- --enable-gtk-doc --disable-silent-rules10 dh_auto_configure -- --enable-gtk-doc --disable-silent-rules
1111
12override_dh_install:12override_dh_install:
13 PYTHON=python3 ./configure --prefix=/usr
14 dh_auto_install -- -C bindings/python install
13 dh_install --fail-missing -X.a -X.la -X.pyc -X.pyo15 dh_install --fail-missing -X.a -X.la -X.pyc -X.pyo
1416
17override_dh_python3:
18 dh_python3 debian/gir1.2-grip/usr/lib/python3
19

Subscribers

People subscribed via source and target branches