From e0e2b8422a78b446c33ab3e5d1b38f8ad89b4bda Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Tue, 6 Apr 2021 12:49:59 +0100 Subject: [PATCH] Update dependencies to avoid failure with old pip We do perform linting via pep8 job which runs on modern python only. This fixes an error that recently broke py27 job due to failure to install hacking, where hacking is in fact not even needed by it. We also need to add some extra conditions for mock to avoid possible failure with older pip version. Change-Id: I5007154caa7493652a424a4fad4918b7dbefcfb9 --- test-requirements.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index caca8d16..4d586e41 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -4,8 +4,9 @@ wheel>=0.32.0 # MIT fixtures>=3.0.0 # Apache-2.0/BSD -hacking>=1.1.0,<4.0.0 # Apache-2.0 -mock>=2.0.0 # BSD +hacking>=1.1.0,<4.0.0;python_version>='3.6' # Apache-2.0 +mock>=2.0.0,<4.0.0;python_version=='2.7' # BSD +mock>=2.0.0;python_version>='3.6' # BSD six>=1.12.0 # MIT stestr>=2.1.0,<3.0;python_version=='2.7' # Apache-2.0 stestr>=2.1.0;python_version>='3.0' # Apache-2.0