Merge lp:~xpresser-team/xpresser/xpresser-type-with-hold into lp:xpresser

Proposed by Chris Wayne
Status: Merged
Approved by: Chris Gagnon
Approved revision: 14
Merged at revision: 14
Proposed branch: lp:~xpresser-team/xpresser/xpresser-type-with-hold
Merge into: lp:xpresser
Diff against target: 159 lines (+4/-93)
8 files modified
debian/changelog (+0/-39)
debian/compat (+0/-1)
debian/control (+0/-14)
debian/copyright (+0/-23)
debian/rules (+0/-9)
debian/watch (+0/-3)
xpresser/xp.py (+2/-2)
xpresser/xutils.py (+2/-2)
To merge this branch: bzr merge lp:~xpresser-team/xpresser/xpresser-type-with-hold
Reviewer Review Type Date Requested Status
Chris Gagnon (community) Approve
Review via email: mp+124002@code.launchpad.net

Description of the change

Removing debian packaging (shouldn't be in the upstream release), and adding hold for special key presses (to differentiate between taps and holds)

To post a comment you must log in.
Revision history for this message
Chris Gagnon (chris.gagnon) wrote :

works good

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== removed directory 'debian'
=== removed file 'debian/changelog'
--- debian/changelog 2012-08-18 18:37:49 +0000
+++ debian/changelog 1970-01-01 00:00:00 +0000
@@ -1,39 +0,0 @@
1xpresser (1.1.3) precise; urgency=low
2
3 * Adding in special key support
4
5 [Chris Gagnon]
6 * reversed keys_to_press for key release so things like ctrl-alt-
7 backspace wont delete a typed key
8
9 [Chris Wayne]
10 * Fixed sleep after each key press
11 * Added some more special keys (all F keys, Function, and others)
12
13 -- Chris Wayne <chris.wayne@canonical.com> Sat, 18 Aug 2012 14:36:12 -0400
14
15xpresser (1.1.2) precise; urgency=low
16
17 * Small fix
18
19 -- Chris Wayne <chris.wayne@canonical.com> Thu, 19 Jul 2012 21:01:24 -0400
20
21xpresser (1.1.1) precise; urgency=low
22
23 * Adding in python-gi-cairo as a build dependency
24
25 -- Chris Wayne <chris.wayne@canonical.com> Thu, 19 Jul 2012 20:29:24 -0400
26
27xpresser (1.1) precise; urgency=low
28
29 * Initial Precise release into Xpresser PPA
30
31 * Double click functionality added
32
33 -- Chris Wayne <chris.wayne@canonical.com> Thu, 05 Jul 2012 09:49:22 -0400
34
35xpresser (1.0-1) unstable; urgency=low
36
37 * source package automatically created by stdeb 0.6.0+git
38
39 -- Gustavo Niemeyer <gustavo.niemeyer@canonical.com> Tue, 25 Oct 2011 15:12:21 -0400
400
=== removed file 'debian/compat'
--- debian/compat 2012-07-05 15:56:48 +0000
+++ debian/compat 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
19
20
=== removed file 'debian/control'
--- debian/control 2012-07-25 01:44:55 +0000
+++ debian/control 1970-01-01 00:00:00 +0000
@@ -1,14 +0,0 @@
1Source: xpresser
2Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
3Section: python
4Priority: extra
5Build-Depends: python-all (>= 2.6.6-3), debhelper (>= 9)
6Standards-Version: 3.9.3
7
8Package: python-xpresser
9Architecture: all
10Depends: ${misc:Depends}, ${python:Depends}, python-opencv, python-pyatspi2, python-numpy, python-simplecv, python-gi-cairo
11Description: Python library to script Graphic User Interfaces.
12 Xpresser is a python library to automate GUI testing. It uses screenshot matching
13 to make automation easy, and can emulate actual user testing, rather than through
14 introspection.
150
=== removed file 'debian/copyright'
--- debian/copyright 2012-07-05 16:35:07 +0000
+++ debian/copyright 1970-01-01 00:00:00 +0000
@@ -1,23 +0,0 @@
1Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
2Upstream-Name: python-xpresser
3Source: http://bazaar.launchpad.net/~xpresser-team/xpresser
4
5Files: *
6Copyright: 2012 Canonical Ltd.
7License: LGPL-3
8
9License: LGPL-3
10 This program is free software: you can redistribute it and/or modify
11 it under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation, version 3 of the License.
13 .
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU Lesser General Public License for more details.
18 .
19 You should have received a copy of the GNU Lesser General Public License
20 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 .
22 On Debian systems, the full text of the GNU Lesser General Public License
23 version 3 can be found in the file /usr/share/common-licenses/LGPL-3.
240
=== removed file 'debian/rules'
--- debian/rules 2012-03-08 17:20:18 +0000
+++ debian/rules 1970-01-01 00:00:00 +0000
@@ -1,9 +0,0 @@
1#!/usr/bin/make -f
2
3# This file was automatically generated by stdeb 0.6.0+git at
4# Tue, 25 Oct 2011 15:12:21 -0400
5
6%:
7 dh $@ --with python2 --buildsystem=python_distutils
8
9
100
=== removed directory 'debian/source'
=== removed file 'debian/watch'
--- debian/watch 2012-07-05 16:57:07 +0000
+++ debian/watch 1970-01-01 00:00:00 +0000
@@ -1,3 +0,0 @@
1version=3
2http://launchpad.net/xpresser/+download .*/Xpresser-(.+)\.tar\.gz
3
40
=== removed directory 'dist'
=== removed file 'dist/Xpresser-1.1.tar.gz'
5Binary files dist/Xpresser-1.1.tar.gz 2012-07-05 16:48:40 +0000 and dist/Xpresser-1.1.tar.gz 1970-01-01 00:00:00 +0000 differ1Binary files dist/Xpresser-1.1.tar.gz 2012-07-05 16:48:40 +0000 and dist/Xpresser-1.1.tar.gz 1970-01-01 00:00:00 +0000 differ
=== modified file 'xpresser/xp.py'
--- xpresser/xp.py 2012-05-21 19:57:09 +0000
+++ xpresser/xp.py 2012-09-12 16:31:25 +0000
@@ -122,7 +122,7 @@
122 """122 """
123 self.find(image, timeout)123 self.find(image, timeout)
124124
125 def type(self, string):125 def type(self, string, hold=0.4):
126 """Enter the string provided as if it was typed via the keyboard.126 """Enter the string provided as if it was typed via the keyboard.
127 """127 """
128 xutils.type(string)128 xutils.type(string, hold)
129129
=== modified file 'xpresser/xutils.py'
--- xpresser/xutils.py 2012-08-23 17:32:08 +0000
+++ xpresser/xutils.py 2012-09-12 16:31:25 +0000
@@ -45,7 +45,7 @@
45def hover(x, y):45def hover(x, y):
46 pyatspi.Registry.generateMouseEvent(x, y, pyatspi.MOUSE_ABS)46 pyatspi.Registry.generateMouseEvent(x, y, pyatspi.MOUSE_ABS)
4747
48def type(string):48def type(string, hold):
49 if isinstance(string, types.ListType):49 if isinstance(string, types.ListType):
50 keys_to_press = []50 keys_to_press = []
51 for string_part in string:51 for string_part in string:
@@ -56,7 +56,7 @@
56 __type_standard(string_part)56 __type_standard(string_part)
57 keys_to_press.reverse()57 keys_to_press.reverse()
58 #hold the key long enough to constitute a hold, not a tap58 #hold the key long enough to constitute a hold, not a tap
59 time.sleep(.4)59 time.sleep(hold)
60 for keys in keys_to_press:60 for keys in keys_to_press:
61 __release_key(keys)61 __release_key(keys)
62 else:62 else:

Subscribers

People subscribed via source and target branches

to all changes: