Skip to content

Commit

Permalink
Restrict wheel below v0.38.0 under Pythons < 3.7 (ansible#79187)
Browse files Browse the repository at this point in the history
* Restrict `wheel` below v0.38.0 under Pythons < 3.7

* Add a change note for PR ansible#79187

* Update changelogs/fragments/79187--wheel-0.38.0.yml

Co-authored-by: Matt Clay <[email protected]>

* Use constraints file when installing wheel.

Co-authored-by: Matt Clay <[email protected]>
  • Loading branch information
webknjaz and mattclay authored Oct 24, 2022
1 parent 757efa4 commit a76bbb1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/79187--wheel-0.38.0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bugfixes:
- ansible-test - Add ``wheel < 0.38.0`` constraint for Python 3.6 and earlier.
1 change: 1 addition & 0 deletions test/integration/targets/pip/meta/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dependencies:
- prepare_tests
- setup_remote_tmp_dir
- setup_remote_constraints
1 change: 1 addition & 0 deletions test/integration/targets/pip/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
- name: ensure wheel is installed
pip:
name: wheel
extra_args: "-c {{ remote_constraints }}"

- include_tasks: pip.yml
always:
Expand Down
1 change: 1 addition & 0 deletions test/lib/ansible_test/_data/requirements/constraints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a76bbb1

Please sign in to comment.