diff options
author | Sviatoslav Sydorenko <wk.cvs.github@sydorenko.org.ua> | 2022-10-24 23:57:54 +0200 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2022-10-24 17:04:29 -0700 |
commit | 01fde4baeae04a45847253d744453f681eda11b0 (patch) | |
tree | 12084062f43ff104c2c75d2751c0c2504c09e39c | |
parent | 4a8d41dee5cfefcf862f7756e06ee512aac3bc8b (diff) | |
download | ansible-01fde4baeae04a45847253d744453f681eda11b0.tar.gz |
[stable-2.12] 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.yml | 2 | ||||
-rw-r--r-- | test/integration/targets/pip/meta/main.yml | 1 | ||||
-rw-r--r-- | test/integration/targets/pip/tasks/main.yml | 1 | ||||
-rw-r--r-- | test/lib/ansible_test/_data/requirements/constraints.txt | 1 |
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 6b5b064aa8..6eda167d0e 100644 --- a/test/lib/ansible_test/_data/requirements/constraints.txt +++ b/test/lib/ansible_test/_data/requirements/constraints.txt @@ -6,6 +6,7 @@ jinja2 < 2.11 ; python_version < '2.7' # jinja2 2.11 and later require python 2. urllib3 < 1.24 ; python_version < '2.7' # urllib3 1.24 and later require python 2.7 or later pywinrm >= 0.3.0 # message encryption support 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 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 paramiko < 2.4.0 ; python_version < '2.7' # paramiko 2.4.0 drops support for python 2.6 pytest < 3.3.0, >= 3.1.0 ; python_version < '2.7' # pytest 3.3.0 drops support for python 2.6 |