[canary] Add a .vpython3 wheels file for B🚀 (#28480)
This PR reverts the use of `DEPS` to manage python dependencies, and rather introduces a `.vpython3` file to deploy wheels to run `brockit` with vpython in our CI. This PR also has an extra fix for a rare, but possible checkout failure with the issue https://github.com/brave/brave-browser/issues/44921. This can happen because git requires this type of notation to retain the reference locally. Resolves https://github.com/brave/brave-browser/issues/45120 Resolves https://github.com/brave/brave-browser/issues/45201
This commit is contained in:
@@ -114,14 +114,6 @@ hooks = [
|
||||
# least macOS due to permission issues.
|
||||
'action': ['python3', '-m', 'pip', '-q', '--disable-pip-version-check', 'install', '-U', '-t', 'third_party/cryptography', '--only-binary', 'cryptography', 'cryptography==37.0.4'],
|
||||
},
|
||||
{
|
||||
# Installing these dependencies as we need these tools to be able to run in
|
||||
# the CI, and vpython provides a good way to avoid pip install calls when
|
||||
# in sensitive contexts.
|
||||
'name': 'update_cr_tools_pip',
|
||||
'pattern': '.',
|
||||
'action': ['python3', '-m', 'pip', '-q', '--disable-pip-version-check', 'install', '-r', 'tools/cr/requirements.txt'],
|
||||
},
|
||||
{
|
||||
'name': 'wireguard_nt',
|
||||
'pattern': '.',
|
||||
|
||||
@@ -196,7 +196,9 @@ function syncChromium(program) {
|
||||
// being passed to gclient.
|
||||
if (util.runGit(config.srcDir, ['rev-parse', requiredChromiumRef], true) ==
|
||||
null) {
|
||||
util.runGit(config.srcDir, ['fetch', 'origin', requiredChromiumRef])
|
||||
util.runGit(
|
||||
config.srcDir,
|
||||
['fetch', 'origin', requiredChromiumRef + ':' + requiredChromiumRef])
|
||||
}
|
||||
util.runGit(config.srcDir, ['reset', '--hard', requiredChromiumRef])
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
# Copyright (c) 2025 The Brave Authors. All rights reserved.
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
# You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||
|
||||
python_version: "3.11"
|
||||
|
||||
wheel: <
|
||||
name: "infra/python/wheels/charset_normalizer-py3"
|
||||
version: "version:3.3.2"
|
||||
>
|
||||
wheel: <
|
||||
name: "infra/python/wheels/certifi-py3"
|
||||
version: "version:2024.7.4"
|
||||
>
|
||||
wheel: <
|
||||
name: "infra/python/wheels/idna-py3"
|
||||
version: "version:3.4"
|
||||
>
|
||||
wheel: <
|
||||
name: "infra/python/wheels/markdown-it-py-py3"
|
||||
version: "version:2.1.0"
|
||||
>
|
||||
wheel: <
|
||||
name: "infra/python/wheels/mdurl-py3"
|
||||
version: "version:0.1.2"
|
||||
>
|
||||
wheel: <
|
||||
name: "infra/python/wheels/pygments-py3"
|
||||
version: "version:2.14.0"
|
||||
>
|
||||
wheel: <
|
||||
name: "infra/python/wheels/requests-py3"
|
||||
version: "version:2.31.0"
|
||||
>
|
||||
wheel: <
|
||||
name: "infra/python/wheels/rich-py3"
|
||||
version: "version:13.2.0"
|
||||
>
|
||||
wheel: <
|
||||
name: "infra/python/wheels/urllib3-py3"
|
||||
version: "version:2.1.0"
|
||||
>
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
#!/usr/bin/env vpython3
|
||||
# Copyright (c) 2024 The Brave Authors. All rights reserved.
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
rich==13.9.4
|
||||
requests==2.32.3
|
||||
Reference in New Issue
Block a user