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
1=== removed directory 'debian'
2=== removed file 'debian/changelog'
3--- debian/changelog 2012-08-18 18:37:49 +0000
4+++ debian/changelog 1970-01-01 00:00:00 +0000
5@@ -1,39 +0,0 @@
6-xpresser (1.1.3) precise; urgency=low
7-
8- * Adding in special key support
9-
10- [Chris Gagnon]
11- * reversed keys_to_press for key release so things like ctrl-alt-
12- backspace wont delete a typed key
13-
14- [Chris Wayne]
15- * Fixed sleep after each key press
16- * Added some more special keys (all F keys, Function, and others)
17-
18- -- Chris Wayne <chris.wayne@canonical.com> Sat, 18 Aug 2012 14:36:12 -0400
19-
20-xpresser (1.1.2) precise; urgency=low
21-
22- * Small fix
23-
24- -- Chris Wayne <chris.wayne@canonical.com> Thu, 19 Jul 2012 21:01:24 -0400
25-
26-xpresser (1.1.1) precise; urgency=low
27-
28- * Adding in python-gi-cairo as a build dependency
29-
30- -- Chris Wayne <chris.wayne@canonical.com> Thu, 19 Jul 2012 20:29:24 -0400
31-
32-xpresser (1.1) precise; urgency=low
33-
34- * Initial Precise release into Xpresser PPA
35-
36- * Double click functionality added
37-
38- -- Chris Wayne <chris.wayne@canonical.com> Thu, 05 Jul 2012 09:49:22 -0400
39-
40-xpresser (1.0-1) unstable; urgency=low
41-
42- * source package automatically created by stdeb 0.6.0+git
43-
44- -- Gustavo Niemeyer <gustavo.niemeyer@canonical.com> Tue, 25 Oct 2011 15:12:21 -0400
45
46=== removed file 'debian/compat'
47--- debian/compat 2012-07-05 15:56:48 +0000
48+++ debian/compat 1970-01-01 00:00:00 +0000
49@@ -1,1 +0,0 @@
50-9
51
52=== removed file 'debian/control'
53--- debian/control 2012-07-25 01:44:55 +0000
54+++ debian/control 1970-01-01 00:00:00 +0000
55@@ -1,14 +0,0 @@
56-Source: xpresser
57-Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
58-Section: python
59-Priority: extra
60-Build-Depends: python-all (>= 2.6.6-3), debhelper (>= 9)
61-Standards-Version: 3.9.3
62-
63-Package: python-xpresser
64-Architecture: all
65-Depends: ${misc:Depends}, ${python:Depends}, python-opencv, python-pyatspi2, python-numpy, python-simplecv, python-gi-cairo
66-Description: Python library to script Graphic User Interfaces.
67- Xpresser is a python library to automate GUI testing. It uses screenshot matching
68- to make automation easy, and can emulate actual user testing, rather than through
69- introspection.
70
71=== removed file 'debian/copyright'
72--- debian/copyright 2012-07-05 16:35:07 +0000
73+++ debian/copyright 1970-01-01 00:00:00 +0000
74@@ -1,23 +0,0 @@
75-Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
76-Upstream-Name: python-xpresser
77-Source: http://bazaar.launchpad.net/~xpresser-team/xpresser
78-
79-Files: *
80-Copyright: 2012 Canonical Ltd.
81-License: LGPL-3
82-
83-License: LGPL-3
84- This program is free software: you can redistribute it and/or modify
85- it under the terms of the GNU Lesser General Public License as published by
86- the Free Software Foundation, version 3 of the License.
87- .
88- This program is distributed in the hope that it will be useful,
89- but WITHOUT ANY WARRANTY; without even the implied warranty of
90- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
91- GNU Lesser General Public License for more details.
92- .
93- You should have received a copy of the GNU Lesser General Public License
94- along with this program. If not, see <http://www.gnu.org/licenses/>.
95- .
96- On Debian systems, the full text of the GNU Lesser General Public License
97- version 3 can be found in the file /usr/share/common-licenses/LGPL-3.
98
99=== removed file 'debian/rules'
100--- debian/rules 2012-03-08 17:20:18 +0000
101+++ debian/rules 1970-01-01 00:00:00 +0000
102@@ -1,9 +0,0 @@
103-#!/usr/bin/make -f
104-
105-# This file was automatically generated by stdeb 0.6.0+git at
106-# Tue, 25 Oct 2011 15:12:21 -0400
107-
108-%:
109- dh $@ --with python2 --buildsystem=python_distutils
110-
111-
112
113=== removed directory 'debian/source'
114=== removed file 'debian/watch'
115--- debian/watch 2012-07-05 16:57:07 +0000
116+++ debian/watch 1970-01-01 00:00:00 +0000
117@@ -1,3 +0,0 @@
118-version=3
119-http://launchpad.net/xpresser/+download .*/Xpresser-(.+)\.tar\.gz
120-
121
122=== removed directory 'dist'
123=== removed file 'dist/Xpresser-1.1.tar.gz'
124Binary 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
125=== modified file 'xpresser/xp.py'
126--- xpresser/xp.py 2012-05-21 19:57:09 +0000
127+++ xpresser/xp.py 2012-09-12 16:31:25 +0000
128@@ -122,7 +122,7 @@
129 """
130 self.find(image, timeout)
131
132- def type(self, string):
133+ def type(self, string, hold=0.4):
134 """Enter the string provided as if it was typed via the keyboard.
135 """
136- xutils.type(string)
137+ xutils.type(string, hold)
138
139=== modified file 'xpresser/xutils.py'
140--- xpresser/xutils.py 2012-08-23 17:32:08 +0000
141+++ xpresser/xutils.py 2012-09-12 16:31:25 +0000
142@@ -45,7 +45,7 @@
143 def hover(x, y):
144 pyatspi.Registry.generateMouseEvent(x, y, pyatspi.MOUSE_ABS)
145
146-def type(string):
147+def type(string, hold):
148 if isinstance(string, types.ListType):
149 keys_to_press = []
150 for string_part in string:
151@@ -56,7 +56,7 @@
152 __type_standard(string_part)
153 keys_to_press.reverse()
154 #hold the key long enough to constitute a hold, not a tap
155- time.sleep(.4)
156+ time.sleep(hold)
157 for keys in keys_to_press:
158 __release_key(keys)
159 else:

Subscribers

People subscribed via source and target branches

to all changes: