This release contains commits: e74f8f68337ee619d400e0b6607cbe9df37f78ee Fix so that Python inherits file handles again on Windows. 059bcab0fb866cf8b9bc25b5845beeb8ee90fe3d Bundle the python interpreter on Mac. e2552b1a6ebed6651aceb5a7ab4639c0d69c0c0e Resolve symlinks when finding the vpython executable. d5fc7bca58e458258f8c3b8a25ecd070c77581ac Roll infra/go/src/go.chromium.org/luci/ ee2c632ce..82d549a81 (1 commit) 5d9b6ecf87cdfb928e1112d2838d26bc7ede2b48 Roll infra/go/src/go.chromium.org/luci/ 0480658b5..0535bf685 (5 commits) 3076679301d2b9b040bce2c871a63ddc49273c41 [environ] Rename Get => Lookup, GetEmpty => Get. 37f02f9f91aa3918b195931fbcf02750290d0571 Search bundled python paths before looking in PATH. a4136aa4d9e8c359bcf234fcd6ae026fb5b92925 [go] Format all files. 8349853d4517895a2c5838a00aea3e368ce3f865 [vpython] Make TestLoadForScript pass on OSX when running locally. d94b5704d8ad151a0306974a1a949d8057c44a18 Revert "Add support for bootstrapping the Python interpreter package." 6dacee57fbe6b5bc5a2fca23b5b7d8ccfea54ee7 Revert "Pass packages to vpython to bootstrap." 03e0afedc841bad5fed8024c4b7fd38d332701ad Pass packages to vpython to bootstrap. fa3d6effe8906e93944bf54ea6978adcd022f75c go generate all b5eee61d0153295f3efb2e67b319066c2306ac5b Add support for bootstrapping the Python interpreter package. cc5fb5e4934445a0a5206bfc324ca486c1285415 [vpython] Skip flaky test. c04b64ca743703ebbfc064ec5b5c35d3bc378fa4 Add vpython3-only cipd packages. f14d61370f1d7302a797feb2adc3a2f2449130d1 Remove the VENVOmitUseWheel field now that nothing uses it. 7c739ae11aa23bc37601e6923add677600ae1329 Remove support for old pip versions in pep425 tag probing. 51e3f0a01454d2e18b36de28c7e0ca2f6127ea2b Stop setting the unused VENVOmitUseWheel option. e0e35a4e2227fb3429f3483c4719b6370eca7e1e Hardcode the venv OmitUseWheel option to true. Bug: 1318617, 1340653 Change-Id: Ifb94c81492edfa98e1b59fc82e6d43678b82d776 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3756933 Reviewed-by: Gavin Mak <gavinmak@google.com> Commit-Queue: Brian Ryner <bryner@google.com> |
3 years ago | |
|---|---|---|
| bootstrap | 4 years ago | |
| fetch_configs | 3 years ago | |
| git-templates | ||
| infra | 3 years ago | |
| man | ||
| python-bin | ||
| python2-bin | ||
| recipes | 3 years ago | |
| testing_support | 4 years ago | |
| tests | 3 years ago | |
| third_party | 3 years ago | |
| win_toolchain | 4 years ago | |
| zsh-goodies | ||
| .cipd_impl.ps1 | ||
| .gitattributes | 4 years ago | |
| .gitignore | 4 years ago | |
| .isort.cfg | 4 years ago | |
| .style.yapf | ||
| .vpython | ||
| .vpython3 | 4 years ago | |
| CROS_OWNERS | ||
| DIR_METADATA | ||
| GOMA_OWNERS | ||
| LICENSE | ||
| LUCI_OWNERS | ||
| OWNERS | 4 years ago | |
| PRESUBMIT.py | 4 years ago | |
| README.gclient.md | ||
| README.git-cl.md | ||
| README.md | 4 years ago | |
| WATCHLISTS | ||
| auth.py | ||
| autoninja | 4 years ago | |
| autoninja.bat | 4 years ago | |
| autoninja.py | 3 years ago | |
| bb | ||
| bb.bat | ||
| black | 4 years ago | |
| bootstrap_python3 | ||
| breakpad.py | ||
| cbuildbot | ||
| cipd | 4 years ago | |
| cipd.bat | ||
| cipd_bin_setup.bat | 4 years ago | |
| cipd_bin_setup.sh | ||
| cipd_client_version | 3 years ago | |
| cipd_client_version.digests | 3 years ago | |
| cipd_manifest.txt | 3 years ago | |
| cipd_manifest.versions | 3 years ago | |
| cit | ||
| cit.bat | ||
| cit.py | ||
| clang-format | ||
| clang-format.bat | ||
| clang_format.py | ||
| clang_format_merge_driver | ||
| clang_format_merge_driver.bat | ||
| clang_format_merge_driver.py | ||
| codereview.settings | ||
| compile_single_file | ||
| compile_single_file.bat | ||
| compile_single_file.py | ||
| cpplint.bat | 4 years ago | |
| cpplint.py | 3 years ago | |
| cpplint_chromium.py | ||
| cros | ||
| cros_sdk | ||
| crosjobs | ||
| detect_host_arch.py | 4 years ago | |
| dirmd | ||
| dirmd.bat | ||
| download_from_google_storage | ||
| download_from_google_storage.bat | 4 years ago | |
| download_from_google_storage.py | 4 years ago | |
| ensure_bootstrap | 4 years ago | |
| fetch | ||
| fetch.bat | 4 years ago | |
| fetch.py | 4 years ago | |
| fix_encoding.py | 4 years ago | |
| gclient | 4 years ago | |
| gclient-new-workdir.py | 4 years ago | |
| gclient.bat | 4 years ago | |
| gclient.py | 3 years ago | |
| gclient_completion.sh | ||
| gclient_eval.py | ||
| gclient_paths.py | ||
| gclient_scm.py | 3 years ago | |
| gclient_utils.py | 3 years ago | |
| gerrit_client.py | ||
| gerrit_util.py | 4 years ago | |
| git-cache | ||
| git-cl | ||
| git-crrev-parse | ||
| git-drover | ||
| git-find-releases | ||
| git-footers | ||
| git-freeze | ||
| git-gs | 4 years ago | |
| git-hyper-blame | ||
| git-map | ||
| git-map-branches | ||
| git-mark-merge-base | ||
| git-migrate-default-branch | ||
| git-nav-downstream | ||
| git-nav-upstream | ||
| git-new-branch | ||
| git-number | ||
| git-rebase-update | ||
| git-rename-branch | ||
| git-reparent-branch | ||
| git-retry | ||
| git-runhooks | 4 years ago | |
| git-squash-branch | ||
| git-thaw | ||
| git-upstream-diff | ||
| git_cache.py | 3 years ago | |
| git_cl.py | 3 years ago | |
| git_cl_completion.sh | ||
| git_common.py | ||
| git_dates.py | ||
| git_drover.py | 4 years ago | |
| git_find_releases.py | 4 years ago | |
| git_footers.py | 4 years ago | |
| git_freezer.py | 4 years ago | |
| git_hyper_blame.py | 4 years ago | |
| git_map.py | 4 years ago | |
| git_map_branches.py | 4 years ago | |
| git_mark_merge_base.py | 4 years ago | |
| git_migrate_default_branch.py | ||
| git_nav_downstream.py | 4 years ago | |
| git_new_branch.py | 4 years ago | |
| git_number.py | ||
| git_rebase_update.py | 4 years ago | |
| git_rename_branch.py | 4 years ago | |
| git_reparent_branch.py | 4 years ago | |
| git_retry.py | 4 years ago | |
| git_squash_branch.py | 4 years ago | |
| git_upstream_diff.py | 4 years ago | |
| gn | ||
| gn.bat | ||
| gn.py | ||
| goma_auth | ||
| goma_auth.bat | 4 years ago | |
| goma_ctl | ||
| goma_ctl.bat | 4 years ago | |
| gsutil.py | 4 years ago | |
| gsutil.py.bat | 4 years ago | |
| gsutil.vpython3 | 4 years ago | |
| isort | 4 years ago | |
| led | ||
| led.bat | ||
| lockfile.py | ||
| luci-auth | ||
| luci-auth.bat | ||
| lucicfg | ||
| lucicfg.bat | ||
| mac_toolchain | ||
| metrics.README.md | ||
| metrics.py | 4 years ago | |
| metrics_utils.py | 4 years ago | |
| my_activity.py | ||
| ninja | 4 years ago | |
| ninja-linux64 | 4 years ago | |
| ninja-mac | 4 years ago | |
| ninja.exe | 4 years ago | |
| ninjalog.README.md | ||
| ninjalog_uploader.py | 4 years ago | |
| ninjalog_uploader_wrapper.py | 4 years ago | |
| owners.py | ||
| owners_client.py | ||
| owners_finder.py | ||
| pinpoint | ||
| pinpoint.bat | ||
| post_build_ninja_summary.py | ||
| presubmit_canned_checks.py | 3 years ago | |
| presubmit_canned_checks_test.py | 4 years ago | |
| presubmit_canned_checks_test_mocks.py | ||
| presubmit_support.py | 3 years ago | |
| profile.xml | ||
| prpc | ||
| prpc.bat | ||
| pylint | ||
| pylint-1.5 | ||
| pylint-1.5.bat | ||
| pylint-2.6 | 3 years ago | |
| pylint-2.6.bat | ||
| pylint-2.7 | 3 years ago | |
| pylint-2.7.bat | ||
| pylint.bat | ||
| pylint_main.py | 4 years ago | |
| pylintrc | ||
| python_runner.sh | ||
| rdb | ||
| rdb.bat | ||
| rdb_wrapper.py | 4 years ago | |
| repo | ||
| repo_launcher | 4 years ago | |
| roll-dep | ||
| roll-dep.bat | ||
| roll_dep.py | 4 years ago | |
| rustfmt.py | ||
| scm.py | ||
| setup_color.py | 4 years ago | |
| split_cl.py | 4 years ago | |
| subcommand.py | ||
| subprocess2.py | ||
| swift-format | 4 years ago | |
| swift_format.py | 4 years ago | |
| update_depot_tools | 4 years ago | |
| update_depot_tools.bat | 3 years ago | |
| update_depot_tools_toggle.py | 4 years ago | |
| upload_metrics.py | 4 years ago | |
| upload_to_google_storage.py | 4 years ago | |
| utils.py | 4 years ago | |
| vpython | 4 years ago | |
| vpython.bat | 4 years ago | |
| vpython3 | ||
| vpython3.bat | 4 years ago | |
| watchlists.py | 4 years ago | |
| weekly | 4 years ago | |
| whitespace.txt | ||
| win32imports.py | ||
| wtf | 4 years ago | |
| yapf | ||
| yapf.bat | ||
README.md
depot_tools
Tools for working with Chromium development. It requires python 2.7 or 3.8 for python 3 support.
Tools
The most important tools are:
fetch: Agclientwrapper to checkout a project. Usefetch --helpfor more details.gclient: A meta-checkout tool. Think repo or git submodules, except that it support OS-specific rules, e.g. do not checkout Windows only dependencies when checking out for Android. Usegclient helpfor more details and README.gclient.md.git cl: A code review tool to interact with Rietveld or Gerrit. Usegit cl helpfor more details and README.git-cl.md.roll-dep: A gclient dependency management tool to submit a dep roll, updating a dependency to a newer revision.
There are a lot of git utilities included.
Updating
depot_tools updates itself automatically when running gclient tool. To
disable auto update, set the environment variable DEPOT_TOOLS_UPDATE=0 or
run ./update_depot_tools_toggle.py --disable.
To update package manually, run update_depot_tools.bat on Windows,
or ./update_depot_tools on Linux or Mac.
On Windows only, running gclient will install git and python.
Contributing
To contribute change for review:
git new-branch <somename>
# Hack
git add .
git commit -a -m "Fixes goat teleporting"
# find reviewers
git cl owners
git log -- <yourfiles>
# Request a review.
git cl upload -r reviewer1@chromium.org,reviewer2@chromium.org --send-mail
# Edit change description if needed.
git cl desc
# If change is approved, flag it to be committed.
git cl set-commit
# If change needs more work.
git rebase-update
...
git cl upload -t "Fixes goat teleporter destination to be Australia"
See also open bugs, open reviews, forum or report problems.
cpplint.py
Until 2018, our cpplint.py was a copy of the upstream version at
https://github.com/google/styleguide/tree/gh-pages/cpplint. Unfortunately, that
repository is not maintained any more.
If you want to update cpplint.py in depot_tools, just upload a patch to do
so. We will figure out a long-term strategy via issue https://crbug.com/916550.
Note that the cpplint.py here is also used by the Tricium
analyzer,
so if the cpplint.py here changes, we should also update the copy used there.