mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-10 18:21:28 +00:00
With this tests will be easier to read and support. Also have improved parameterized tests. The reason why pytest was picked is because as my knowledge goes this is the most up to date and supported unit test framework in Python. The current parameterized tests state is primitive, and the parameterized library was last updated 2 years ago. pytest will help us adopt best practices that later perhaps we could spread to other unit tests in depot_tools. Bug: 459690822 Change-Id: I67d16b56ff3c4dbd260ea0b07354ef766a6a6964 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7246550 Reviewed-by: Gavin Mak <gavinmak@google.com> Commit-Queue: Alex Ovsienko <ovsienko@google.com> Reviewed-by: Junji Watanabe <jwata@google.com>
145 lines
3.3 KiB
Plaintext
145 lines
3.3 KiB
Plaintext
python_version: "3.11"
|
|
|
|
# The default set of platforms vpython checks for does not yet include mac-arm64.
|
|
# Setting `verify_pep425_tag` to the list of platforms we explicitly must support
|
|
# allows us to ensure that vpython specs stay mac-arm64-friendly
|
|
verify_pep425_tag: [
|
|
{python: "cp311", abi: "cp311", platform: "manylinux1_x86_64"},
|
|
{python: "cp311", abi: "cp311", platform: "linux_arm64"},
|
|
|
|
{python: "cp311", abi: "cp311", platform: "macosx_10_10_intel"},
|
|
{python: "cp311", abi: "cp311", platform: "macosx_11_0_arm64"},
|
|
|
|
{python: "cp311", abi: "cp311", platform: "win32"},
|
|
{python: "cp311", abi: "cp311", platform: "win_amd64"}
|
|
]
|
|
|
|
# Used by:
|
|
# auth.py
|
|
# gerrit_util.py
|
|
# git_cl.py
|
|
# my_activity.py
|
|
# TODO(crbug.com/1002153): Add ninjalog_uploader.py
|
|
wheel: <
|
|
name: "infra/python/wheels/httplib2-py3"
|
|
version: "version:0.13.1"
|
|
>
|
|
wheel: <
|
|
name: "infra/python/wheels/six-py2_py3"
|
|
version: "version:1.10.0"
|
|
>
|
|
|
|
# Used by:
|
|
# presubmit_support.py
|
|
wheel: <
|
|
name: "infra/python/wheels/requests-py3"
|
|
version: "version:2.31.0"
|
|
>
|
|
wheel: <
|
|
name: "infra/python/wheels/charset_normalizer-py3"
|
|
version: "version:2.0.4"
|
|
>
|
|
wheel: <
|
|
name: "infra/python/wheels/urllib3-py2_py3"
|
|
version: "version:1.26.6"
|
|
>
|
|
wheel: <
|
|
name: "infra/python/wheels/idna-py2_py3"
|
|
version: "version:2.8"
|
|
>
|
|
wheel: <
|
|
name: "infra/python/wheels/brotli/${vpython_platform}"
|
|
version: "version:1.0.9"
|
|
# TODO(crbug.com/359654093): Setup RISC-V wheel builder
|
|
not_match_tag: {python: "cp311", abi: "cp311", platform: "linux_riscv64"},
|
|
>
|
|
|
|
# Used by:
|
|
# presubmit_canned_checks.py (via zoneinfo)
|
|
wheel: <
|
|
name: "infra/python/wheels/tzdata-py2_py3"
|
|
version: "version:2023.4"
|
|
>
|
|
|
|
# Used by:
|
|
# my_activity.py
|
|
wheel: <
|
|
name: "infra/python/wheels/python-dateutil-py2_py3"
|
|
version: "version:2.7.3"
|
|
>
|
|
|
|
# May be required to talk to 3P servers.
|
|
# Fixes https://crbug.com/1255921
|
|
wheel: <
|
|
name: "infra/python/wheels/certifi-py2_py3"
|
|
version: "version:2021.5.30"
|
|
>
|
|
|
|
# Used by:
|
|
# tests/autoninja_test.py
|
|
wheel: <
|
|
name: "infra/python/wheels/parameterized-py2_py3"
|
|
version: "version:0.8.1"
|
|
>
|
|
|
|
# Used by:
|
|
# tests/siso_test.py
|
|
wheel: <
|
|
name: "infra/python/wheels/pytest-py3"
|
|
version: "version:9.0.2"
|
|
>
|
|
wheel: <
|
|
name: "infra/python/wheels/pytest-mock-py3"
|
|
version: "version:3.10.0"
|
|
>
|
|
wheel: <
|
|
name: "infra/python/wheels/pytest-cov-py2_py3"
|
|
version: "version:6.2.1"
|
|
>
|
|
wheel: <
|
|
name: "infra/python/wheels/iniconfig-py3"
|
|
version: "version:2.1.0"
|
|
>
|
|
wheel: <
|
|
name: "infra/python/wheels/packaging-py3"
|
|
version: "version:25.0"
|
|
>
|
|
wheel: <
|
|
name: "infra/python/wheels/pluggy-py3"
|
|
version: "version:1.6.0"
|
|
>
|
|
wheel: <
|
|
name: "infra/python/wheels/pygments-py3"
|
|
version: "version:2.19.2"
|
|
>
|
|
wheel: <
|
|
name: "infra/python/wheels/colorama-py2_py3"
|
|
version: "version:0.4.6"
|
|
>
|
|
|
|
# Used by:
|
|
# web-tests PRESUBMIT.py
|
|
wheel: <
|
|
name: "infra/python/wheels/hjson-py2_py3"
|
|
version: "version:3.1.0"
|
|
>
|
|
|
|
# Used by:
|
|
# web-tests PRESUBMIT.py
|
|
wheel: <
|
|
name: "infra/python/wheels/sqlparse-py3"
|
|
version: "version:0.4.4"
|
|
>
|
|
|
|
# Used by:
|
|
# tools/win/DebugVisualizers/PRESUBMIT.py
|
|
wheel: <
|
|
name: "infra/python/wheels/lxml/${vpython_platform}"
|
|
version: "version:4.9.3"
|
|
>
|
|
|
|
# To be used by developers running unit test coverage.
|
|
wheel: <
|
|
name: "infra/python/wheels/coverage-py3"
|
|
version: "version:7.13.0"
|
|
> |