zuul-jobs/roles/ensure-pip/defaults/main.yaml
Dariusz Smigiel 1f76342ccf Pull correct upstream pip version
Recent release of pip removed support for Python 3.6 [1]

Configure default url for pip, depending on supported
Python version.

[1]: https://pip.pypa.io/en/stable/news/#v22-0

Change-Id: I01faeba1dff864de31b3bbf9ddbe0a4d454fdbe9
2022-02-01 08:33:58 -08:00

7 lines
467 B
YAML

ensure_pip_from_packages: True
ensure_pip_from_packages_with_python2: '{{ (ansible_python.version.major == 2) | ternary(True, False) }}'
ensure_pip_from_upstream_url: '{{ ansible_python_version is version("3.7", ">=") | ternary("https://bootstrap.pypa.io/get-pip.py", "https://bootstrap.pypa.io/pip/3.6/get-pip.py") }}'
ensure_pip_from_upstream: False
ensure_pip_from_upstream_interpreters:
- '{{ ansible_python.executable | regex_replace(".*python", "python") }}'