Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test constraint for setuptools. #66426

Merged
merged 2 commits into from Jan 13, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
@@ -0,0 +1 @@
setuptools < 45 ; python_version <= '2.7' # setuptools 45 and later require python 3.5 or later
Expand Up @@ -9,7 +9,7 @@ fi
set -eux

source virtualenv.sh
pip install openshift
pip install openshift -c constraints.txt

./server.py &

Expand Down
1 change: 1 addition & 0 deletions test/integration/targets/pip/meta/main.yml
@@ -1,2 +1,3 @@
dependencies:
- prepare_tests
- setup_remote_constraints
1 change: 1 addition & 0 deletions test/integration/targets/pip/tasks/pip.yml
Expand Up @@ -499,6 +499,7 @@
name: distribute
virtualenv: "{{ output_dir }}/pipenv"
state: present
extra_args: "-c {{ remote_constraints }}"
felixfontein marked this conversation as resolved.
Show resolved Hide resolved

- name: try to remove distribute
pip:
Expand Down
1 change: 1 addition & 0 deletions test/lib/ansible_test/_data/requirements/constraints.txt
Expand Up @@ -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
Expand Down