You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Go to file
Brian Ryner c8fadda5a4 New vpython to depot_tools.
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 git 2.35.1.chromium.8 to depot_tools stable. 4 years ago
fetch_configs Teach "fetch pdfium" about the checkout_configuration property. 3 years ago
git-templates
infra Roll recipe dependencies (trivial). 3 years ago
man
python-bin
python2-bin
recipes Roll recipe dependencies (trivial). 3 years ago
testing_support Explicitly run everything with python3 4 years ago
tests Remove 'Fetching' check in testTrackTag 3 years ago
third_party [depot tools] Update six version. 3 years ago
win_toolchain Use python3 for cpplint and get_toolchain on Win 4 years ago
zsh-goodies
.cipd_impl.ps1
.gitattributes Setup cipd bin before calling ninja/autoninja 4 years ago
.gitignore Revert "Retry switching to use CIPD ninja v1.8.2" 4 years ago
.isort.cfg isort: make available to users 4 years ago
.style.yapf
.vpython
.vpython3 Reland "Use py3 in gitiles recipe module" 4 years ago
CROS_OWNERS
DIR_METADATA
GOMA_OWNERS
LICENSE
LUCI_OWNERS
OWNERS Revert "Add iannucci to depot_tools owners" 4 years ago
PRESUBMIT.py autoninja: add simple test 4 years ago
README.gclient.md
README.git-cl.md
README.md Indicate py3 compatibility for update_depot_tools_toggle.py 4 years ago
WATCHLISTS
auth.py
autoninja [autoninja] Respect user-provided AUTONINJA_BUILD_ID 4 years ago
autoninja.bat [autoninja] Respect user-provided AUTONINJA_BUILD_ID on Windows 4 years ago
autoninja.py Remove use_rbe gn arg support 3 years ago
bb
bb.bat
black black: add helper for formatting Python 4 years ago
bootstrap_python3
breakpad.py
cbuildbot
cipd Add riscv64 architecture detection 4 years ago
cipd.bat
cipd_bin_setup.bat Revert "Retry switching to use CIPD ninja v1.8.2" 4 years ago
cipd_bin_setup.sh
cipd_client_version [cipd] Update the client v2.6.5 => v2.6.7. 3 years ago
cipd_client_version.digests [cipd] Update the client v2.6.5 => v2.6.7. 3 years ago
cipd_manifest.txt New vpython to depot_tools. 3 years ago
cipd_manifest.versions New vpython to depot_tools. 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 Use python3 for cpplint and get_toolchain on Win 4 years ago
cpplint.py Add some c++17 headers to the list of known headers. 3 years ago
cpplint_chromium.py
cros
cros_sdk
crosjobs
detect_host_arch.py Add riscv64 architecture detection 4 years ago
dirmd
dirmd.bat
download_from_google_storage
download_from_google_storage.bat use python3 for download_from_google_storage.bat 4 years ago
download_from_google_storage.py Skip 'ls' when downloading from gs. 4 years ago
ensure_bootstrap Use python3 for gsutil bootstrapping 4 years ago
fetch
fetch.bat Reland "Make depot_tools scripts return exit codes properly on all platforms." 4 years ago
fetch.py Add protocol_override entry to .gclient 4 years ago
fix_encoding.py Fix \r\r\n line endings in presubmit output 4 years ago
gclient Skip depot_tools update for gclient recurse 4 years ago
gclient-new-workdir.py Explicitly run everything with python3 4 years ago
gclient.bat Reland "Make depot_tools scripts return exit codes properly on all platforms." 4 years ago
gclient.py [no-sync] Update ParseDepsFile to process deps and hooks appropriately with should_sync. 3 years ago
gclient_completion.sh
gclient_eval.py
gclient_paths.py
gclient_scm.py [no-sync] Add method to check for diffs between the current checkout and another commit. 3 years ago
gclient_utils.py [no-sync] Add a skip_sync_revisions and process it before running deps. 3 years ago
gerrit_client.py
gerrit_util.py [gerrit] Add more gerrit API wrappers 4 years ago
git-cache
git-cl
git-crrev-parse
git-drover
git-find-releases
git-footers
git-freeze
git-gs Add *.ts (typescript files) to 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 Revert "Remove unused functionality in bot_update.py" 4 years ago
git-squash-branch
git-thaw
git-upstream-diff
git_cache.py git_cache: wrap "git remote show" call in retries 3 years ago
git_cl.py [git-cl] If set, use `options.title` for initial uploads. 3 years ago
git_cl_completion.sh
git_common.py
git_dates.py
git_drover.py Explicitly run everything with python3 4 years ago
git_find_releases.py Explicitly run everything with python3 4 years ago
git_footers.py Explicitly run everything with python3 4 years ago
git_freezer.py Explicitly run everything with python3 4 years ago
git_hyper_blame.py Explicitly run everything with python3 4 years ago
git_map.py Explicitly run everything with python3 4 years ago
git_map_branches.py Explicitly run everything with python3 4 years ago
git_mark_merge_base.py Explicitly run everything with python3 4 years ago
git_migrate_default_branch.py
git_nav_downstream.py Explicitly run everything with python3 4 years ago
git_new_branch.py Explicitly run everything with python3 4 years ago
git_number.py
git_rebase_update.py Make the "mark branch dormant" instructions simpler to copy+paste. 4 years ago
git_rename_branch.py Explicitly run everything with python3 4 years ago
git_reparent_branch.py Explicitly run everything with python3 4 years ago
git_retry.py Explicitly run everything with python3 4 years ago
git_squash_branch.py Explicitly run everything with python3 4 years ago
git_upstream_diff.py Explicitly run everything with python3 4 years ago
gn
gn.bat
gn.py
goma_auth
goma_auth.bat Set errorlevel in .bat wrappers on exit /b where appropriate. 4 years ago
goma_ctl
goma_ctl.bat Set errorlevel in .bat wrappers on exit /b where appropriate. 4 years ago
gsutil.py Reland "Update gsutil to use gsutil version 4.68" 4 years ago
gsutil.py.bat Reland "Make depot_tools scripts return exit codes properly on all platforms." 4 years ago
gsutil.vpython3 Reland "Update gsutil to use gsutil version 4.68" 4 years ago
isort isort: make available to users 4 years ago
led
led.bat
lockfile.py
luci-auth
luci-auth.bat
lucicfg
lucicfg.bat
mac_toolchain
metrics.README.md
metrics.py Explicitly run everything with python3 4 years ago
metrics_utils.py Explicitly run everything with python3 4 years ago
my_activity.py
ninja Revert "Retry switching to use CIPD ninja v1.8.2" 4 years ago
ninja-linux64 Revert "Retry switching to use CIPD ninja v1.8.2" 4 years ago
ninja-mac Revert "Retry switching to use CIPD ninja v1.8.2" 4 years ago
ninja.exe Revert "Retry switching to use CIPD ninja v1.8.2" 4 years ago
ninjalog.README.md
ninjalog_uploader.py [ninjalog uploader] Collect more android GN args 4 years ago
ninjalog_uploader_wrapper.py Typo when countdown is more than 1. 4 years ago
owners.py
owners_client.py
owners_finder.py
pinpoint
pinpoint.bat
post_build_ninja_summary.py
presubmit_canned_checks.py Set default pylint version to 2.7 3 years ago
presubmit_canned_checks_test.py Explicitly run everything with python3 4 years ago
presubmit_canned_checks_test_mocks.py
presubmit_support.py Rearrange presubmit timing message for easier scanning 3 years ago
profile.xml
prpc
prpc.bat
pylint
pylint-1.5
pylint-1.5.bat
pylint-2.6 Update pylint vpython specs to use a specific minor version. 3 years ago
pylint-2.6.bat
pylint-2.7 Update pylint vpython specs to use a specific minor version. 3 years ago
pylint-2.7.bat
pylint.bat
pylint_main.py Explicitly run everything with python3 4 years ago
pylintrc
python_runner.sh
rdb
rdb.bat
rdb_wrapper.py Explicitly run everything with python3 4 years ago
repo
repo_launcher Explicitly run everything with python3 4 years ago
roll-dep
roll-dep.bat
roll_dep.py Explicitly run everything with python3 4 years ago
rustfmt.py
scm.py
setup_color.py Explicitly run everything with python3 4 years ago
split_cl.py Explicitly run everything with python3 4 years ago
subcommand.py
subprocess2.py
swift-format Support git cl formatting for swift files 4 years ago
swift_format.py Make swift-format default True on Mac hosts 4 years ago
update_depot_tools Reland "Make depot_tools scripts return exit codes properly on all platforms." 4 years ago
update_depot_tools.bat Allow depot_tools/.git to be a file 3 years ago
update_depot_tools_toggle.py Indicate py3 compatibility for update_depot_tools_toggle.py 4 years ago
upload_metrics.py Catch RemoteDisconnected on upload metrics 4 years ago
upload_to_google_storage.py Explicitly run everything with python3 4 years ago
utils.py Add a basic depot_tools version information 4 years ago
vpython Report when vpython (Python 2) is run during presubmits 4 years ago
vpython.bat Report when vpython (Python 2) is run during presubmits 4 years ago
vpython3
vpython3.bat The python3 bin directory no longer needs to be added to PATH. 4 years ago
watchlists.py Explicitly run everything with python3 4 years ago
weekly Explicitly run everything with python3 4 years ago
whitespace.txt
win32imports.py
wtf Explicitly run everything with python3 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: A gclient wrapper to checkout a project. Use fetch --help for 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. Use gclient help for more details and README.gclient.md.
  • git cl: A code review tool to interact with Rietveld or Gerrit. Use git cl help for 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.