depot_tools: Run recipe scripts using vpython.

This is a reland of 88d7869db0

Original change's description:
> Reland "depot_tools: Add httplib2 to .vpython"
>
> This is a reland of e1410883a3
>
> Use vpython to execute git_cl.py, gerrit_util.py and presubmit_support.py on recipes.
>
> Original change's description:
> > depot_tools: Add httplib2 to .vpython
> >
> > Check that things won't break before further changes are made.
> >
> > Bug: 1002153
> > Change-Id: I41866f26334bf9ec2732bc0f25007234a95130e4
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1854749
> > Auto-Submit: Edward Lesmes <ehmaldonado@chromium.org>
> > Commit-Queue: Andrii Shyshkalov <tandrii@google.com>
> > Reviewed-by: Andrii Shyshkalov <tandrii@google.com>
>
> Bug: 1002153
> Recipe-Nontrivial-Roll: build
> Recipe-Nontrivial-Roll: chromiumos
> Recipe-Nontrivial-Roll: infra
> Recipe-Nontrivial-Roll: skia
> Recipe-Nontrivial-Roll: build_limited_scripts_slave
> Recipe-Nontrivial-Roll: release_scripts
> Change-Id: Id94057eae8830dec197257df3ea35c0c4ff946b7
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1856650
> Reviewed-by: Andrii Shyshkalov <tandrii@google.com>
> Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>

Bug: 1002153
Recipe-Nontrivial-Roll: build
Recipe-Nontrivial-Roll: infra
Recipe-Nontrivial-Roll: skia
Recipe-Nontrivial-Roll: build_limited_scripts_slave
Recipe-Nontrivial-Roll: release_scripts
Change-Id: If071bfd2e4514a06deec2c0d4196b4953841b64f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1859895
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
Reviewed-by: Anthony Polito <apolito@google.com>
Reviewed-by: Andrii Shyshkalov <tandrii@google.com>
This commit is contained in:
Edward Lemur
2019-10-14 21:28:16 +00:00
committed by Commit Bot
parent e16ffffc28
commit c6512213a7
20 changed files with 39 additions and 38 deletions

View File

@@ -18,7 +18,7 @@ class GitClApi(recipe_api.RecipeApi):
with self.m.context(cwd=self.m.context.cwd or my_loc):
return self.m.python(
name, self.repo_resource('git_cl.py'), [subcmd] + args,
**kwargs)
venv=True, **kwargs)
def get_description(self, patch_url=None, codereview=None, **kwargs):
"""DEPRECATED. Consider using gerrit.get_change_description instead."""

View File

@@ -1,7 +1,7 @@
[
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/git_cl.py",
"upload",
@@ -12,7 +12,7 @@
},
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/git_cl.py",
"issue"
@@ -21,7 +21,7 @@
},
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/git_cl.py",
"description",
@@ -33,7 +33,7 @@
},
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/git_cl.py",
"description",
@@ -54,7 +54,7 @@
},
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/git_cl.py",
"description",
@@ -72,7 +72,7 @@
},
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/git_cl.py",
"description",
@@ -85,7 +85,7 @@
},
{
"cmd": [
"python",
"vpython",
"-u",
"RECIPE_REPO[depot_tools]/git_cl.py",
"description",