From e7b39bd1bd1f0d3c3a83e3314eed58769ff8d915 Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Mon, 24 Oct 2022 23:57:54 +0200 Subject: [stable-2.11] Restrict `wheel` below v0.38.0 under Pythons < 3.7 (#79187) * Restrict `wheel` below v0.38.0 under Pythons < 3.7 * Add a change note for PR #79187 * Update changelogs/fragments/79187--wheel-0.38.0.yml Co-authored-by: Matt Clay * Use constraints file when installing wheel. Co-authored-by: Matt Clay . (cherry picked from commit a76bbb18a5a80cda0d9683677aa8d5cd8a2e6093) Co-authored-by: Sviatoslav Sydorenko --- changelogs/fragments/79187--wheel-0.38.0.yml | 2 ++ test/integration/targets/pip/meta/main.yml | 1 + test/integration/targets/pip/tasks/main.yml | 1 + test/lib/ansible_test/_data/requirements/constraints.txt | 1 + 4 files changed, 5 insertions(+) create mode 100644 changelogs/fragments/79187--wheel-0.38.0.yml diff --git a/changelogs/fragments/79187--wheel-0.38.0.yml b/changelogs/fragments/79187--wheel-0.38.0.yml new file mode 100644 index 0000000000..62543e1868 --- /dev/null +++ b/changelogs/fragments/79187--wheel-0.38.0.yml @@ -0,0 +1,2 @@ +bugfixes: + - ansible-test - Add ``wheel < 0.38.0`` constraint for Python 3.6 and earlier. diff --git a/test/integration/targets/pip/meta/main.yml b/test/integration/targets/pip/meta/main.yml index 07faa21776..129fa698f1 100644 --- a/test/integration/targets/pip/meta/main.yml +++ b/test/integration/targets/pip/meta/main.yml @@ -1,2 +1,3 @@ dependencies: - prepare_tests + - setup_remote_constraints diff --git a/test/integration/targets/pip/tasks/main.yml b/test/integration/targets/pip/tasks/main.yml index e669d297cf..66992fd017 100644 --- a/test/integration/targets/pip/tasks/main.yml +++ b/test/integration/targets/pip/tasks/main.yml @@ -37,6 +37,7 @@ - name: ensure wheel is installed pip: name: wheel + extra_args: "-c {{ remote_constraints }}" - include_tasks: pip.yml always: diff --git a/test/lib/ansible_test/_data/requirements/constraints.txt b/test/lib/ansible_test/_data/requirements/constraints.txt index 2cc45a4102..17f494dda7 100644 --- a/test/lib/ansible_test/_data/requirements/constraints.txt +++ b/test/lib/ansible_test/_data/requirements/constraints.txt @@ -16,6 +16,7 @@ sphinx <= 2.1.2 ; python_version >= '2.7' # docs team hasn't tested beyond 2.1. rstcheck == 3.3.1 # required for sphinx version >= 1.8 pygments >= 2.4.0 # Pygments 2.4.0 includes bugfixes for YAML and YAML+Jinja lexers wheel < 0.30.0 ; python_version < '2.7' # wheel 0.30.0 and later require python 2.7 or later +wheel < 0.38.0 ; python_version >= '2.7' and python_version < '3.7' # wheel 0.38.0 and later require python 3.7 or later pycrypto >= 2.6 # Need features found in 2.6 and greater ncclient >= 0.5.2 # Need features added in 0.5.2 and greater idna < 2.6, >= 2.5 # linode requires idna < 2.9, >= 2.5, requests requires idna < 2.6, but cryptography will cause the latest version to be installed instead -- cgit v1.2.1