Skip to content

Commit

Permalink
[stable-2.7] Add test constraint for setuptools. (#66426)
Browse files Browse the repository at this point in the history
* Add test constraint for setuptools.

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

Co-authored-by: Matt Clay <matt@mystile.com>
  • Loading branch information
mattclay committed Jan 13, 2020
1 parent dfb425b commit 2b57127
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/ansible-test-setuptools-constraint.yml
@@ -0,0 +1,2 @@
bugfixes:
- ansible-test no longer tries to install ``setuptools`` 45+ on Python 2.x since those versions are unsupported
6 changes: 5 additions & 1 deletion test/integration/targets/pip/tasks/pip.yml
Expand Up @@ -510,7 +510,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

Expand Down
1 change: 1 addition & 0 deletions test/runner/requirements/constraints.txt
Expand Up @@ -28,3 +28,4 @@ virtualenv < 16.0.0 ; python_version < '2.7' # virtualenv 16.0.0 and later requi
pyopenssl < 18.0.0 ; python_version < '2.7' # pyOpenSSL 18.0.0 and later require python 2.7 or later
pyfmg == 0.6.1 # newer versions do not pass current unit tests
pycparser < 2.19 ; python_version < '2.7' # pycparser 2.19 and later require python 2.7 or later
setuptools < 45 ; python_version <= '2.7' # setuptools 45 and later require python 3.5 or later

0 comments on commit 2b57127

Please sign in to comment.