summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>2022-10-24 23:57:54 +0200
committerMatt Clay <matt@mystile.com>2022-10-24 17:29:36 -0700
commite7b39bd1bd1f0d3c3a83e3314eed58769ff8d915 (patch)
tree5ab64abe8f2740cbefe139a023531811fa2b5ec8
parent19b56e7f32e31b9f77f72751155394a81b760a86 (diff)
downloadansible-e7b39bd1bd1f0d3c3a83e3314eed58769ff8d915.tar.gz
[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 <matt@mystile.com> * Use constraints file when installing wheel. Co-authored-by: Matt Clay <matt@mystile.com>. (cherry picked from commit a76bbb18a5a80cda0d9683677aa8d5cd8a2e6093) Co-authored-by: Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua>
-rw-r--r--changelogs/fragments/79187--wheel-0.38.0.yml2
-rw-r--r--test/integration/targets/pip/meta/main.yml1
-rw-r--r--test/integration/targets/pip/tasks/main.yml1
-rw-r--r--test/lib/ansible_test/_data/requirements/constraints.txt1
4 files changed, 5 insertions, 0 deletions
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