mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
The version we are using now does not run under python 2.7. Add an explicit python_version 3.8 to the inline spec so that we don't rely on vpython's default version. This is a no-op change when running with vpython3. We should run yapf under 3.11, but this needs additional testing and likely an update of zipp, so we'll do it separately. Change-Id: If1fccbe6b13c77a770bd1a8c9de0789d543ba890 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5198109 Auto-Submit: Brian Ryner <bryner@google.com> Reviewed-by: Josip Sokcevic <sokcevic@chromium.org> Commit-Queue: Josip Sokcevic <sokcevic@chromium.org>
34 lines
646 B
Plaintext
Executable File
34 lines
646 B
Plaintext
Executable File
#!/usr/bin/env vpython3
|
|
|
|
# [VPYTHON:BEGIN]
|
|
# python_version: "3.8"
|
|
# wheel: <
|
|
# name: "infra/python/wheels/yapf-py3"
|
|
# version: "version:0.40.2"
|
|
# >
|
|
# wheel: <
|
|
# name: "infra/python/wheels/platformdirs-py3"
|
|
# version: "version:4.1.0"
|
|
# >
|
|
# wheel: <
|
|
# name: "infra/python/wheels/importlib-metadata-py3"
|
|
# version: "version:7.0.0"
|
|
# >
|
|
# wheel: <
|
|
# name: "infra/python/wheels/tomli-py3"
|
|
# version: "version:2.0.1"
|
|
# >
|
|
# wheel: <
|
|
# name: "infra/python/wheels/zipp-py3"
|
|
# version: "version:3.7.0"
|
|
# >
|
|
# [VPYTHON:END]
|
|
|
|
# -*- coding: utf-8 -*-
|
|
import sys
|
|
|
|
from yapf import run_main
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(run_main())
|