[stable-2.9] Add test constraint for setuptools. (#66426)

* Add test constraint for setuptools.

* Update pip test to work on centos6 container.
(cherry picked from commit 51e5b714e0)

Co-authored-by: Matt Clay <matt@mystile.com>
pull/66446/head
Matt Clay 5 years ago
parent c94aa6dde6
commit 41ec9a8516

@ -0,0 +1,2 @@
bugfixes:
- ansible-test no longer tries to install ``setuptools`` 45+ on Python 2.x since those versions are unsupported

@ -0,0 +1 @@
setuptools < 45 ; python_version <= '2.7' # setuptools 45 and later require python 3.5 or later

@ -9,7 +9,7 @@ fi
set -eux
source virtualenv.sh
pip install openshift
pip install openshift -c constraints.txt
./server.py &

@ -504,7 +504,11 @@
- name: install distribute in the virtualenv
pip:
name: distribute
# using -c for constraints is not supported as long as tests are executed using the centos6 container
# since the pip version in the venv is not upgraded and is too old (6.0.8)
name:
- distribute
- setuptools<45 # setuptools 45 and later require python 3.5 or later
virtualenv: "{{ output_dir }}/pipenv"
state: present

@ -37,6 +37,7 @@ lxml < 4.3.0 ; python_version < '2.7' # lxml 4.3.0 and later require python 2.7
pyvmomi < 6.0.0 ; python_version < '2.7' # pyvmomi 6.0.0 and later require python 2.7 or later
pyone == 1.1.9 # newer versions do not pass current integration tests
botocore >= 1.10.0 # adds support for the following AWS services: secretsmanager, fms, and acm-pca
setuptools < 45 ; python_version <= '2.7' # setuptools 45 and later require python 3.5 or later
# freeze pylint and its requirements for consistent test results
astroid == 2.2.5

Loading…
Cancel
Save