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 16:19:23 -0700 |
commit | 2d6747bcbfda8bbfa0a57d3493cccf1362150f47 (patch) | |
tree | fe06c139ec4d80f2e8b7d600407cb284439b80b4 /test | |
parent | b44cb7aa996f15bda02c2994b4f83ef3b8a1ea1c (diff) | |
download | ansible-2d6747bcbfda8bbfa0a57d3493cccf1362150f47.tar.gz |
[stable-2.13] 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>
Diffstat (limited to 'test')
-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 |
3 files changed, 3 insertions, 0 deletions
diff --git a/test/integration/targets/pip/meta/main.yml b/test/integration/targets/pip/meta/main.yml index cb6005d042..2d78e29fdb 100644 --- a/test/integration/targets/pip/meta/main.yml +++ b/test/integration/targets/pip/meta/main.yml @@ -1,3 +1,4 @@ dependencies: - prepare_tests - setup_remote_tmp_dir + - 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 6c4b53ba5d..b7b6b16f6e 100644 --- a/test/lib/ansible_test/_data/requirements/constraints.txt +++ b/test/lib/ansible_test/_data/requirements/constraints.txt @@ -14,3 +14,4 @@ mock >= 2.0.0 # needed for features backported from Python 3.6 unittest.mock (as pytest-mock >= 1.4.0 # needed for mock_use_standalone_module pytest option setuptools < 45 ; python_version == '2.7' # setuptools 45 and later require python 3.5 or later pyspnego >= 0.1.6 ; python_version >= '3.10' # bug in older releases breaks on Python 3.10 +wheel < 0.38.0 ; python_version < '3.7' # wheel 0.38.0 and later require python 3.7 or later |