Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(48)

Issue 707893005: Add mojo/tools/mopy with paths and version utilities (Closed)

Created:
6 years, 1 month ago by jamesr
Modified:
6 years, 1 month ago
Reviewers:
viettrungluu, eseidel
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
git@github.com:domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Add mojo/tools/mopy with paths and version utilities This consolidates some common mojo python script utilities into mojo/tools/mopy and updates scripts under mojo/tools to use them. Currently this has some path manipulation, version querying and python test running utilities but I expect this to grow over time. A skypy could also resuse a lot of of this functionality as well. R=eseidel@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/20c2417c3420bccca021c61918f1e9f53444c3e4

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -37 lines) Patch
M mojo/PRESUBMIT.py View 2 chunks +3 lines, -0 lines 0 comments Download
M mojo/tools/check_mojom_golden_files.py View 2 chunks +8 lines, -8 lines 0 comments Download
A + mojo/tools/mopy/__init__.py View 0 chunks +-1 lines, --1 lines 0 comments Download
A + mojo/tools/mopy/mojo_python_tests_runner.py View 2 chunks +4 lines, -6 lines 0 comments Download
A mojo/tools/mopy/paths.py View 1 1 chunk +17 lines, -0 lines 1 comment Download
A + mojo/tools/mopy/transitive_hash.py View 0 chunks +-1 lines, --1 lines 0 comments Download
A mojo/tools/mopy/version.py View 1 1 chunk +14 lines, -0 lines 0 comments Download
M mojo/tools/run_mojo_python_bindings_tests.py View 1 1 chunk +1 line, -5 lines 0 comments Download
M mojo/tools/run_mojo_python_tests.py View 1 chunk +1 line, -4 lines 0 comments Download
M mojo/tools/test_runner.py View 1 chunk +1 line, -4 lines 0 comments Download
M mojo/tools/upload_shell_binary.py View 2 chunks +14 lines, -12 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
jamesr
Please point out things that I'm doing that differ from idiomatic / best practices python ...
6 years, 1 month ago (2014-11-07 01:30:31 UTC) #1
viettrungluu
https://codereview.chromium.org/707893005/diff/1/mojo/tools/mopy/paths.py File mojo/tools/mopy/paths.py (right): https://codereview.chromium.org/707893005/diff/1/mojo/tools/mopy/paths.py#newcode1 mojo/tools/mopy/paths.py:1: #!/usr/bin/env python Delete this line. https://codereview.chromium.org/707893005/diff/1/mojo/tools/mopy/paths.py#newcode8 mojo/tools/mopy/paths.py:8: class Paths(object): ...
6 years, 1 month ago (2014-11-07 03:36:40 UTC) #3
jamesr
PTAL - everything addressed except for the out/release literal. > https://codereview.chromium.org/707893005/diff/1/mojo/tools/upload_shell_binary.py#newcode17 > mojo/tools/upload_shell_binary.py:17: paths = ...
6 years, 1 month ago (2014-11-07 18:38:37 UTC) #4
eseidel
lgtm https://codereview.chromium.org/707893005/diff/20001/mojo/tools/mopy/paths.py File mojo/tools/mopy/paths.py (right): https://codereview.chromium.org/707893005/diff/20001/mojo/tools/mopy/paths.py#newcode16 mojo/tools/mopy/paths.py:16: self.mojo_shell_path = os.path.join(self.src_root, build_directory, Do you want to ...
6 years, 1 month ago (2014-11-07 19:03:48 UTC) #5
eseidel
lgtm lgtm https://codereview.chromium.org/707893005/diff/20001/mojo/tools/mopy/paths.py File mojo/tools/mopy/paths.py (right): https://codereview.chromium.org/707893005/diff/20001/mojo/tools/mopy/paths.py#newcode16 mojo/tools/mopy/paths.py:16: self.mojo_shell_path = os.path.join(self.src_root, build_directory, Do you want ...
6 years, 1 month ago (2014-11-07 19:03:49 UTC) #6
jamesr
6 years, 1 month ago (2014-11-07 23:41:31 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
20c2417c3420bccca021c61918f1e9f53444c3e4 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698