From 9ea5b539b60cb7035f08ac17688976a8e6dfb126 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Fri, 20 Dec 2019 09:15:43 -0800 Subject: [PATCH] Add ansible-test constraint to avoid coverage 5.0+ --- changelogs/fragments/ansible-test-coverage-constraint.yml | 2 ++ test/lib/ansible_test/_data/requirements/constraints.txt | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/ansible-test-coverage-constraint.yml diff --git a/changelogs/fragments/ansible-test-coverage-constraint.yml b/changelogs/fragments/ansible-test-coverage-constraint.yml new file mode 100644 index 00000000000..b5a03e56789 --- /dev/null +++ b/changelogs/fragments/ansible-test-coverage-constraint.yml @@ -0,0 +1,2 @@ +bugfixes: + - ansible-test no longer tries to install ``coverage`` 5.0+ since those versions are unsupported diff --git a/test/lib/ansible_test/_data/requirements/constraints.txt b/test/lib/ansible_test/_data/requirements/constraints.txt index 76b1612c601..4d8d4e58c41 100644 --- a/test/lib/ansible_test/_data/requirements/constraints.txt +++ b/test/lib/ansible_test/_data/requirements/constraints.txt @@ -1,5 +1,5 @@ -coverage >= 4.2, != 4.3.2 ; python_version <= '3.7' # features in 4.2+ required, avoid known bug in 4.3.2 on python 2.6 -coverage >= 4.5.4 ; python_version > '3.7' # coverage had a bug in < 4.5.4 that would cause unit tests to hang in Python 3.8 +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 deepdiff < 4.0.0 ; python_version < '3' # deepdiff 4.0.0 and later require python 3 urllib3 < 1.24 ; python_version < '2.7' # urllib3 1.24 and later require python 2.7 or later