[gsutil] Upgrade to gsutil 5.35 and clarify Python requirements

Update gsutil to a newer version to resolve some compatibility issues
with newer Python versions.

And update the README to reflect the new changes.

Bug: 40283283
Change-Id: I1e02c6868e932da0af45a631fc34539c3543868e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7058090
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Ho Cheung <hocheung@chromium.org>
Reviewed-by: Brian Ryner <bryner@google.com>
This commit is contained in:
Ho Cheung
2025-10-27 16:51:16 -07:00
committed by LUCI CQ
parent d501813e85
commit ac1e4a9bb7
4 changed files with 8 additions and 6 deletions

2
.gitattributes vendored
View File

@@ -11,7 +11,7 @@
# vpython specs # vpython specs
/.vpython* recipes /.vpython* recipes
/gsutil.vpython3 recipes /gsutil.py.vpython3 recipes
# Extensionless tools we want and support scripts. # Extensionless tools we want and support scripts.
/autoninja* recipes /autoninja* recipes

View File

@@ -1,6 +1,8 @@
# depot_tools # depot_tools
Tools for working with Chromium development. It requires python 3.8. Tools for Chromium development. Requires Python 3.8+.
gsutil: Python 3.93.13 required.
## Tools ## Tools

View File

@@ -26,7 +26,7 @@ DEFAULT_BIN_DIR = os.path.join(THIS_DIR, 'external_bin', 'gsutil')
IS_WINDOWS = os.name == 'nt' IS_WINDOWS = os.name == 'nt'
VERSION = '4.68' VERSION = '5.35'
# Google OAuth Context required by gsutil. # Google OAuth Context required by gsutil.
LUCI_AUTH_SCOPES = [ LUCI_AUTH_SCOPES = [
@@ -257,7 +257,7 @@ def run_gsutil(target, args, clean=False):
cmd = [ cmd = [
'vpython3', '-vpython-spec', 'vpython3', '-vpython-spec',
os.path.join(THIS_DIR, 'gsutil.vpython3'), '--', gsutil_bin os.path.join(THIS_DIR, 'gsutil.py.vpython3'), '--', gsutil_bin
] + args_opt + args ] + args_opt + args
boto_path = get_boto_path() boto_path = get_boto_path()

View File

@@ -11,9 +11,9 @@
# "gsutil", where a stock system-deployed file in "/etc/" explicitly specifies # "gsutil", where a stock system-deployed file in "/etc/" explicitly specifies
# that the "google_compute_engine" and "boto" Python packages are available. # that the "google_compute_engine" and "boto" Python packages are available.
python_version: "3.8" python_version: "3.11"
wheel: < wheel: <
name: "infra/python/wheels/crcmod/${vpython_platform}" name: "infra/python/wheels/crcmod/${vpython_platform}"
version: "version:1.7.chromium.3" version: "version:1.7.chromium.4"
> >