From bed3643b28f2b30b7f49895d8e34418077ddb3ee Mon Sep 17 00:00:00 2001 From: Mohammed Naser Date: Thu, 12 Mar 2020 17:49:45 -0400 Subject: [PATCH] ensure-tox: use python3 by default The role currently defaults to installing tox with python2 in order to maintain compatibility with existing jobs. This change makes the default behaviour use python3 as python2 is EOL. Change-Id: Ic41b8fee7ae8a8f5df6c1107c6ed812c14b8c8be --- roles/ensure-tox/README.rst | 4 +--- roles/ensure-tox/defaults/main.yml | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/roles/ensure-tox/README.rst b/roles/ensure-tox/README.rst index 31a7a4a53..f12d45a08 100644 --- a/roles/ensure-tox/README.rst +++ b/roles/ensure-tox/README.rst @@ -14,6 +14,4 @@ user install directory (i.e., "pip install --user"). :default: ``true`` If tox is not detected, prefer to install tox inside Python 2 instead of - Python 3. The default value is currently set to ``true`` for compatibility - reasons, it will be switched to false eventually. It's best to set this to - ``false`` when using it. + Python 3. diff --git a/roles/ensure-tox/defaults/main.yml b/roles/ensure-tox/defaults/main.yml index 36efbb49a..2e2266d2b 100644 --- a/roles/ensure-tox/defaults/main.yml +++ b/roles/ensure-tox/defaults/main.yml @@ -1,2 +1,2 @@ tox_executable: tox -tox_prefer_python2: true +tox_prefer_python2: false