diff options
author | Felix Fontein <felix@fontein.de> | 2021-07-07 15:19:05 +0200 |
---|---|---|
committer | Matt Clay <matt@mystile.com> | 2021-07-07 12:47:36 -0700 |
commit | 7a5c66fe143b1e8d033ba5a1595017899c93c7fd (patch) | |
tree | 2e61f4985985c3e8d676730b79ef4ade4e075ccc | |
parent | 332ca6e298b6278321d85877fa793bff5e38d056 (diff) | |
download | ansible-7a5c66fe143b1e8d033ba5a1595017899c93c7fd.tar.gz |
[stable-2.9] Restrict packaging to < 21.0 for Python < 3.6. (#75186).
(cherry picked from commit 67bc49e001e6cbd6736e1dbc3d8b07f9bccda2bb)
Co-authored-by: Felix Fontein <felix@fontein.de>
-rw-r--r-- | changelogs/fragments/75186-ansible-test-packaging-constraint.yml | 2 | ||||
-rw-r--r-- | test/lib/ansible_test/_data/requirements/constraints.txt | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/changelogs/fragments/75186-ansible-test-packaging-constraint.yml b/changelogs/fragments/75186-ansible-test-packaging-constraint.yml new file mode 100644 index 0000000000..ef242f6a37 --- /dev/null +++ b/changelogs/fragments/75186-ansible-test-packaging-constraint.yml @@ -0,0 +1,2 @@ +bugfixes: +- "ansible-test - restrict ``packaging`` to ``< 21.0`` for Python ``< 3.6`` (https://github.com/ansible/ansible/pull/75186)." diff --git a/test/lib/ansible_test/_data/requirements/constraints.txt b/test/lib/ansible_test/_data/requirements/constraints.txt index a277e27b86..611a198129 100644 --- a/test/lib/ansible_test/_data/requirements/constraints.txt +++ b/test/lib/ansible_test/_data/requirements/constraints.txt @@ -1,3 +1,4 @@ +packaging < 21.0 ; python_version < '3.6' # packaging 21.0 requires Python 3.6 or newer coverage >= 4.2, < 5.0.0, != 4.3.2 ; python_version <= '3.7' # features in 4.2+ required, avoid known bug in 4.3.2 on python 2.6, coverage 5.0+ incompatible coverage >= 4.5.4, < 5.0.0 ; python_version > '3.7' # coverage had a bug in < 4.5.4 that would cause unit tests to hang in Python 3.8, coverage 5.0+ incompatible cryptography < 2.2 ; python_version < '2.7' # cryptography 2.2 drops support for python 2.6 |