Merge lp:~mikemc/ubuntuone-client/use-dirspec-get-cmdline into lp:ubuntuone-client
| Status: | Merged | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Approved by: | Diego Sarmentero on 2012-07-16 | ||||||||
| Approved revision: | 1282 | ||||||||
| Merged at revision: | 1275 | ||||||||
| Proposed branch: | lp:~mikemc/ubuntuone-client/use-dirspec-get-cmdline | ||||||||
| Merge into: | lp:ubuntuone-client | ||||||||
| Diff against target: |
517 lines (+142/-284) 10 files modified
tests/platform/tools/test_darwin.py (+0/-52) tests/platform/tools/test_windows.py (+0/-64) tests/syncdaemon/test_utils.py (+79/-0) ubuntuone/platform/ipc/__init__.py (+0/-3) ubuntuone/platform/ipc/darwin.py (+0/-44) ubuntuone/platform/ipc/perspective_broker.py (+5/-2) ubuntuone/platform/tools/darwin.py (+0/-49) ubuntuone/platform/tools/perspective_broker.py (+3/-14) ubuntuone/platform/tools/windows.py (+0/-56) ubuntuone/syncdaemon/utils.py (+55/-0) |
||||||||
| To merge this branch: | bzr merge lp:~mikemc/ubuntuone-client/use-dirspec-get-cmdline | ||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Diego Sarmentero (community) | Approve on 2012-07-16 | ||
| dobey (community) | Abstain on 2012-07-13 | ||
| Brian Curtin (community) | 2012-07-12 | Approve on 2012-07-12 | |
|
Review via email:
|
|||
Commit Message
- Use dirspec.
Description of the Change
- Use dirspec.
In detail:
- add utils.py with get_sd_bin_cmd to wrap dirspec's get_program_path with appropriate fallback and app names args, and add 'python' if frozen on mac or win (to use buildout generated python).
- change platform/
- change platform/
- removed platform/
Because of fsevents not quite working yet, with current trunk, not all tests pass on darwin. The following test paths touch the code I've changed and added:
./run-mac-tests tests/platform/
./run-mac-tests tests/platform/ipc
./run-mac-tests tests/test_utils.py
To run the tests, you'll need to tweak your PYTHONPATH to include dirspec trunk, and lp:~diegosarmentero/+junk/python-macfsevents (build it and put the build/lib.blahblah path on your PYTHONPATH)
- 1279. By Mike McCracken on 2012-07-12
-
use saner syntax for multi-line conditions
| dobey (dobey) wrote : | # |
=== added file 'ubuntuone/
This might be better as ubuntuone/
I know that clientdefs.py is there now, and a logger.py, but I actually think everything in ubuntuone-client needs to be moved under ubuntuone/
| Diego Sarmentero (diegosarmentero) wrote : | # |
./tests/
31: 'os' imported but unused
- 1280. By Mike McCracken on 2012-07-13
-
remove unused import
- 1281. By Mike McCracken on 2012-07-13
-
merge with trunk
- 1282. By Mike McCracken on 2012-07-13
-
move utils module into syncdaemon
| dobey (dobey) wrote : | # |
My main concern looks addressed, but I can't test this on osx/win, so abstaining now.


Overall it looks reasonable to me.
515 + if getattr(sys, 'frozen', None) is None \
516 + and sys.platform in ('win32', 'darwin'):
I have one style nit to pick. Rather than breaking the line with '\', I think it's more common to wrap the entire condition in parentheses.