Merge lp:~dobey/ubuntuone-dev-tools/update-from-trunk into lp:ubuntuone-dev-tools/stable-3-0

Proposed by dobey
Status: Merged
Approved by: dobey
Approved revision: no longer in the source branch.
Merged at revision: 55
Proposed branch: lp:~dobey/ubuntuone-dev-tools/update-from-trunk
Merge into: lp:ubuntuone-dev-tools/stable-3-0
Diff against target: 72 lines (+40/-2)
3 files modified
MANIFEST.in (+1/-0)
bin/u1lint (+11/-2)
ubuntuone/devtools/reactors/gi.py (+28/-0)
To merge this branch: bzr merge lp:~dobey/ubuntuone-dev-tools/update-from-trunk
Reviewer Review Type Date Requested Status
Natalia Bidart (community) Approve
Review via email: mp+91836@code.launchpad.net

Commit message

[Brian Curtin]

  - Actually install the recently added batch files for Windows.
  - Check the $PATH for python.exe on Windows.

[Rodney Dawes]

  - Add a module for using the new gireactor/gtk3reactor in twisted 12.
  - Fix a trailing whitespace lint error.

Description of the change

[Brian Curtin]

  - Actually install the recently added batch files for Windows.
  - Check the $PATH for python.exe on Windows.

[Rodney Dawes]

  - Add a module for using the new gireactor/gtk3reactor in twisted 12.
  - Fix a trailing whitespace lint error.

To post a comment you must log in.
Revision history for this message
Natalia Bidart (nataliabidart) wrote :

looks good!

review: Approve
Revision history for this message
Ubuntu One Auto Pilot (otto-pilot) wrote :
Download full text (11.3 KiB)

The attempt to merge lp:~dobey/ubuntuone-dev-tools/update-from-trunk into lp:ubuntuone-dev-tools/stable-3-0 failed. Below is the output from the failed tests.

ubuntuone.devtools.tests.test_txcheck
  TestCheckTwistedTestClass
    test_bad_mixin_order ... [OK]
    test_bare_super ... [OK]
    test_inline_callbacks ... [OK]
    test_inline_callbacks_missing ... [OK]
    test_missing_return ... [OK]
    test_no_problems ... [OK]
    test_not_twisted ... [OK]
    test_ok_mixin_order ... [OK]
    test_super_not_called ... [OK]
  TestTwistedCheckSuite
    test_suite_catches_problems ... [OK]
    test_suite_runs_tests ... [OK]
twisted.trial.unittest
  TestCase
    runTest ... [OK]
ubuntuone.devtools.testcases
  BaseTestCase
    runTest ... [OK]
ubuntuone.devtools.tests.test_decorators
  TestSkipBasicDecorators
    test_skip_class ... [OK]
    test_skip_decorators ... [OK]
ubuntuone.devtools.testcases.tests.test_squid_testcase
  ProxyTestCase
    test_auth_url_401 ... [SKIPPED]
    test_auth_url_407 ... [SKIPPED]
    test_auth_url_access ... [SKIPPED]
    test_noauth_url_access ... [SKIPPED]
ubuntuone.devtools.testcases.squid
  SquidTestCase
    runTest ... [SKIPPED]
ubuntuone.devtools.testcases
  BaseTestCase
    runTest ... [OK]
ubuntuone.devtools.services.tests.test_squid
  EnvironTestCase
    test_delete_proxy_settings_present ... [OK]
    test_retrieve_proxy_settings ... [OK]
    test_store_settings ... [OK]
  PathsTestCase
    test_get_auth_temp_path ... [OK]
    test_get_basedir_missing ... [OK]
    test_get_basedir_present ... [OK]
    test_get_spool_temp_path_missing ... [OK]
    test_get_spool_temp_path_present ... [OK]
    test_get_squid_temp_path_missing ... [OK]
    test_get_squid_temp_path_present ... [OK]
  SquidRunnerInitTestCase
    test_htpasswd_missing ... ...

55. By dobey

[Brian Curtin]

  - Actually install the recently added batch files for Windows.
  - Check the $PATH for python.exe on Windows.

[Rodney Dawes]

  - Add a module for using the new gireactor/gtk3reactor in twisted 12.
  - Fix a trailing whitespace lint error.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'MANIFEST.in'
2--- MANIFEST.in 2011-02-08 17:54:15 +0000
3+++ MANIFEST.in 2012-02-07 14:59:21 +0000
4@@ -3,3 +3,4 @@
5 include *.pth
6 recursive-include data *.conf
7 recursive-include man *.1
8+recursive-include bin *.bat
9
10=== modified file 'bin/u1lint'
11--- bin/u1lint 2011-12-19 22:37:31 +0000
12+++ bin/u1lint 2012-02-07 14:59:21 +0000
13@@ -38,7 +38,12 @@
14 """Return the path where python was installed."""
15 assert(sys.platform == 'win32')
16 # To get the correct path of the script we need the installation path
17- # of python. To get the isntallation path we read the registry.
18+ # of python. To get the installation path we first check on the path,
19+ # then read the registry.
20+
21+ for path in os.getenv("Path", "").split(";"):
22+ if os.path.exists(os.path.join(path, "python.exe")):
23+ return path
24
25 # pylint: disable=F0401
26 import _winreg
27@@ -78,7 +83,11 @@
28 if sys.platform == 'win32':
29 if python_path is None:
30 python_path = find_python_installation_path()
31- return os.path.join(python_path, 'Scripts', script)
32+ # In a buildout the scripts go next to python.exe, no Scripts folder.
33+ if os.path.exists(os.path.join(python_path, script)):
34+ return os.path.join(python_path, script)
35+ else:
36+ return os.path.join(python_path, 'Scripts', script)
37 else:
38 # the default is to return the name of the script beacuse we expect it
39 # to be executable and in the path.
40
41=== added file 'ubuntuone/devtools/reactors/gi.py'
42--- ubuntuone/devtools/reactors/gi.py 1970-01-01 00:00:00 +0000
43+++ ubuntuone/devtools/reactors/gi.py 2012-02-07 14:59:21 +0000
44@@ -0,0 +1,28 @@
45+# Copyright 2009-2012 Canonical Ltd.
46+#
47+# This program is free software: you can redistribute it and/or modify it
48+# under the terms of the GNU General Public License version 3, as published
49+# by the Free Software Foundation.
50+#
51+# This program is distributed in the hope that it will be useful, but
52+# WITHOUT ANY WARRANTY; without even the implied warranties of
53+# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
54+# PURPOSE. See the GNU General Public License for more details.
55+#
56+# You should have received a copy of the GNU General Public License along
57+# with this program. If not, see <http://www.gnu.org/licenses/>.
58+"""The introspection based main loop integration reactor for testing."""
59+
60+REACTOR_URL = 'http://twistedmatrix.com/trac/ticket/4558'
61+
62+
63+def install(options=None):
64+ """Install the reactor and parse any options we might need."""
65+ reactor_name = None
66+ if options is not None and options['gui']:
67+ reactor_name = 'twisted.internet.gtk3reactor'
68+ else:
69+ reactor_name = 'twisted.internet.gireactor'
70+
71+ glibreactor = __import__(reactor_name, None, None, [''])
72+ glibreactor.install()

Subscribers

People subscribed via source and target branches

to all changes: