xref: /aosp_15_r20/external/cronet/net/tools/testserver/testserver.py.vpython3 (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1*6777b538SAndroid Build Coastguard Worker# This is a vpython "spec" file.
2*6777b538SAndroid Build Coastguard Worker#
3*6777b538SAndroid Build Coastguard Worker# It describes patterns for python wheel dependencies of the python scripts in
4*6777b538SAndroid Build Coastguard Worker# the chromium repo, particularly for dependencies that have compiled components
5*6777b538SAndroid Build Coastguard Worker# (since pure-python dependencies can be easily vendored into third_party).
6*6777b538SAndroid Build Coastguard Worker#
7*6777b538SAndroid Build Coastguard Worker# When vpython is invoked, it finds this file and builds a python VirtualEnv,
8*6777b538SAndroid Build Coastguard Worker# containing all of the dependencies described in this file, fetching them from
9*6777b538SAndroid Build Coastguard Worker# CIPD (the "Chrome Infrastructure Package Deployer" service). Unlike `pip`,
10*6777b538SAndroid Build Coastguard Worker# this never requires the end-user machine to have a working python extension
11*6777b538SAndroid Build Coastguard Worker# compilation environment. All of these packages are built using:
12*6777b538SAndroid Build Coastguard Worker#   https://chromium.googlesource.com/infra/infra/+/main/infra/tools/dockerbuild/
13*6777b538SAndroid Build Coastguard Worker#
14*6777b538SAndroid Build Coastguard Worker# All python scripts in the repo share this same spec, to avoid dependency
15*6777b538SAndroid Build Coastguard Worker# fragmentation.
16*6777b538SAndroid Build Coastguard Worker#
17*6777b538SAndroid Build Coastguard Worker# If you have depot_tools installed in your $PATH, you can invoke python scripts
18*6777b538SAndroid Build Coastguard Worker# in this repo by running them as you normally would run them, except
19*6777b538SAndroid Build Coastguard Worker# substituting `vpython` instead of `python` on the command line, e.g.:
20*6777b538SAndroid Build Coastguard Worker#   vpython path/to/script.py some --arguments
21*6777b538SAndroid Build Coastguard Worker#
22*6777b538SAndroid Build Coastguard Worker# Read more about `vpython` and how to modify this file here:
23*6777b538SAndroid Build Coastguard Worker#   https://chromium.googlesource.com/infra/infra/+/main/doc/users/vpython.md
24*6777b538SAndroid Build Coastguard Worker
25*6777b538SAndroid Build Coastguard Worker# This Python file gets its own vpython spec since it doesn't actually need that
26*6777b538SAndroid Build Coastguard Worker# many dependencies and trying to load all dependencies from the main .vpython3
27*6777b538SAndroid Build Coastguard Worker# spec on ChromeOS VMs runs into disk space issues.
28*6777b538SAndroid Build Coastguard Worker
29*6777b538SAndroid Build Coastguard Workerpython_version: "3.8"
30*6777b538SAndroid Build Coastguard Worker
31*6777b538SAndroid Build Coastguard Worker# The default set of platforms vpython checks does not yet include mac-arm64.
32*6777b538SAndroid Build Coastguard Worker# Setting `verify_pep425_tag` to the list of platforms we explicitly must support
33*6777b538SAndroid Build Coastguard Worker# allows us to ensure that vpython specs stay mac-arm64-friendly
34*6777b538SAndroid Build Coastguard Workerverify_pep425_tag: [
35*6777b538SAndroid Build Coastguard Worker    {python: "cp38", abi: "cp38", platform: "manylinux1_x86_64"},
36*6777b538SAndroid Build Coastguard Worker    {python: "cp38", abi: "cp38", platform: "linux_arm64"},
37*6777b538SAndroid Build Coastguard Worker
38*6777b538SAndroid Build Coastguard Worker    {python: "cp38", abi: "cp38", platform: "macosx_10_10_intel"},
39*6777b538SAndroid Build Coastguard Worker    {python: "cp38", abi: "cp38", platform: "macosx_11_0_arm64"},
40*6777b538SAndroid Build Coastguard Worker
41*6777b538SAndroid Build Coastguard Worker    {python: "cp38", abi: "cp38", platform: "win32"},
42*6777b538SAndroid Build Coastguard Worker    {python: "cp38", abi: "cp38", platform: "win_amd64"}
43*6777b538SAndroid Build Coastguard Worker]
44*6777b538SAndroid Build Coastguard Worker
45*6777b538SAndroid Build Coastguard Workerwheel: <
46*6777b538SAndroid Build Coastguard Worker  name: "infra/python/wheels/six-py2_py3"
47*6777b538SAndroid Build Coastguard Worker  version: "version:1.15.0"
48*6777b538SAndroid Build Coastguard Worker>
49