Merge lp:~mikemc/ubuntu-sso-client/use-dirspec-get-program-path into lp:ubuntu-sso-client
| Status: | Merged | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Approved by: | Mike McCracken on 2012-07-17 | ||||||||||||
| Approved revision: | 994 | ||||||||||||
| Merged at revision: | 986 | ||||||||||||
| Proposed branch: | lp:~mikemc/ubuntu-sso-client/use-dirspec-get-program-path | ||||||||||||
| Merge into: | lp:ubuntu-sso-client | ||||||||||||
| Diff against target: |
509 lines (+80/-138) 10 files modified
ubuntu_sso/__init__.py (+3/-6) ubuntu_sso/credentials.py (+9/-13) ubuntu_sso/main/__init__.py (+0/-2) ubuntu_sso/main/darwin.py (+3/-17) ubuntu_sso/main/tests/test_windows.py (+0/-18) ubuntu_sso/main/windows.py (+3/-14) ubuntu_sso/tests/test_credentials.py (+18/-37) ubuntu_sso/utils/__init__.py (+29/-7) ubuntu_sso/utils/tests/test_common.py (+1/-10) ubuntu_sso/utils/webclient/common.py (+14/-14) |
||||||||||||
| To merge this branch: | bzr merge lp:~mikemc/ubuntu-sso-client/use-dirspec-get-program-path | ||||||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| dobey (community) | Approve on 2012-07-17 | ||
| Brian Curtin (community) | 2012-07-12 | Approve on 2012-07-12 | |
|
Review via email:
|
|||
Commit Message
- Use dirspec get_program_path for cross-platform executable path finding.
Description of the Change
- Use dirspec get_program_path for cross-platform executable path finding.
Adds support for darwin packaged paths, and changes packaged windows to always use sys.executable-
NOTE: to test, needs current trunk of dirspec. On mac and windows, I just moved the dirspec in the buildout eggs/ directory and hacked the PYTHONPATH.
| dobey (dobey) wrote : | # |
198 + return get_bin_
There are a few uses of this, so perhaps we want to define a constant for this string as well?
| Mike McCracken (mikemc) wrote : | # |
rev 993 removes the code in ubuntu_sso/__init__ that added .exe to two of the four program names that sso can launch.
I confirmed that leaving this in does break launching e.g. ubuntu-
The two executables that weren't being added are the proxy & SSL cert ones launched using utils/runner/
| Mike McCracken (mikemc) wrote : | # |
Looking at this further: I had the exe's mixed up - the proxy UI was getting .exe added in ubuntu_sso/__init__ -- the two that weren't were the 'ubuntu-sso-login' backend, which had been found using the registry, and the ubuntu-
As far as I can tell from a few minutes reading through the code, that UI won't be called correctly.
| Ubuntu One Auto Pilot (otto-pilot) wrote : | # |
The attempt to merge lp:~mikemc/ubuntu-sso-client/use-dirspec-get-program-path into lp:ubuntu-sso-client failed. Below is the output from the failed tests.
*** Running QT test suite for ubuntu_sso ***
running build
Compiled data/qt/
compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
running build_py
creating build
creating build/lib.
creating build/lib.
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubuntu_
creating build/lib.
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubuntu_
creating build/lib.
copying ubuntu_
copying ubuntu_
copying ubuntu_
creating build/lib.
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubuntu_
creating build/lib.
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubuntu_
| Ubuntu One Auto Pilot (otto-pilot) wrote : | # |
The attempt to merge lp:~mikemc/ubuntu-sso-client/use-dirspec-get-program-path into lp:ubuntu-sso-client failed. Below is the output from the failed tests.
*** Running QT test suite for ubuntu_sso ***
running build
Compiled data/qt/
compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
running build_py
creating build
creating build/lib.
creating build/lib.
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubuntu_
creating build/lib.
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubuntu_
creating build/lib.
copying ubuntu_
copying ubuntu_
copying ubuntu_
creating build/lib.
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubuntu_
creating build/lib.
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubuntu_
| Ubuntu One Auto Pilot (otto-pilot) wrote : | # |
The attempt to merge lp:~mikemc/ubuntu-sso-client/use-dirspec-get-program-path into lp:ubuntu-sso-client failed. Below is the output from the failed tests.
*** Running QT test suite for ubuntu_sso ***
running build
Compiled data/qt/
compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
Compiled data/qt/
running build_py
creating build
creating build/lib.
creating build/lib.
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubuntu_
creating build/lib.
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubuntu_
creating build/lib.
copying ubuntu_
copying ubuntu_
copying ubuntu_
creating build/lib.
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubuntu_
creating build/lib.
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubuntu_
copying ubuntu_
- 994. By Mike McCracken on 2012-07-17
-
re-add pylint disable messages around win32 imports

Looks fine. The change on line 18 of the diff to wrap the imports in parentheses isn't necessary but isn't hurting anything either.