
All existing version from the py library are affected by the following vulnerability: https://github.com/advisories/GHSA-w596-4wvx-j9j6 In order to stop using py, its reference has been removed from tobiko requirements. Besides, tox and pytest libraries versions have been upgraded for this. Change-Id: I2c61e753e55340b19ab941fd532de0cab875d51c
27 lines
741 B
YAML
27 lines
741 B
YAML
---
|
|
|
|
- name: "ensure Tox is installed"
|
|
command: >
|
|
{{ python_executable }} -m pip install --user
|
|
'tox>={{ tox_min_version }}{% if tox_max_version is not none %},<={{ tox_max_version }}{% endif %}'
|
|
register: install_tox
|
|
changed_when: "'Successfully installed' in install_tox.stdout"
|
|
|
|
- name: "set tox_executable fact"
|
|
set_fact:
|
|
tox_executable: "{{ python_executable }} -m tox"
|
|
|
|
- name: "get installed Tox version"
|
|
command: "{{ tox_executable }} --version"
|
|
register: get_tox_version
|
|
|
|
- name: "update tox_version fact"
|
|
set_fact:
|
|
tox_version: '{{ get_tox_version.stdout_lines | first }}'
|
|
|
|
- name: "show Tox facts"
|
|
debug:
|
|
msg:
|
|
tox_executable: '{{ tox_executable }}'
|
|
tox_version: '{{ tox_version }}'
|