From 5faae7f464dc7c60ed3a416656ce0144ff94125b Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Tue, 7 Sep 2021 16:19:16 -0400 Subject: [PATCH] [stable-2.9] Add additional constraint for `setuptools` (#75651) The recent release of setuptools 58.0.2 breaks installation of coverage since it references the 'use_2to3' feature. --- changelogs/fragments/setuptools-constraint.yml | 5 +++++ test/lib/ansible_test/_data/requirements/constraints.txt | 1 + 2 files changed, 6 insertions(+) create mode 100644 changelogs/fragments/setuptools-constraint.yml diff --git a/changelogs/fragments/setuptools-constraint.yml b/changelogs/fragments/setuptools-constraint.yml new file mode 100644 index 00000000000..948f24163e7 --- /dev/null +++ b/changelogs/fragments/setuptools-constraint.yml @@ -0,0 +1,5 @@ +bugfixes: + - >- + ansible_test - add additional constraint for ``setuptools`` on Python >= 3.5 due to a bug + in the recently released version of ``setuptools`` related to the 'use_2to3' feature + (https://github.com/ansible/ansible/pull/75651) diff --git a/test/lib/ansible_test/_data/requirements/constraints.txt b/test/lib/ansible_test/_data/requirements/constraints.txt index 611a1981293..8a9ed6d910c 100644 --- a/test/lib/ansible_test/_data/requirements/constraints.txt +++ b/test/lib/ansible_test/_data/requirements/constraints.txt @@ -42,6 +42,7 @@ pyone == 1.1.9 # newer versions do not pass current integration tests MarkupSafe < 2.0.0 ; python_version < '3.6' # MarkupSafe >= 2.0.0. requires Python >= 3.6 botocore >= 1.10.0 # adds support for the following AWS services: secretsmanager, fms, and acm-pca setuptools < 45 ; python_version <= '2.7' # setuptools 45 and later require python 3.5 or later +setuptools < 58.0.2 ; python_version >= '3.5' # setuptools 58.0.2 breaks installation of packages, such as coverage, that reference the 'use_2to3' feature cffi != 1.14.4 # Fails on systems with older gcc. Should be fixed in the next release. https://foss.heptapod.net/pypy/cffi/-/issues/480 websocket-client < 1 ; python_version < '3' # version 1.0.0 drops support for python 2