From 24c6227122787cc0e846ef863c8305112da5cea1 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Mon, 21 Feb 2022 17:21:39 -0800 Subject: ansible-test - Add MarkupSafe constraint. Installation of MarkupSafe 2.1.0 and later require setuptools 39.2 or later, or a recent version of pip which supports installation using a wheel. Some systems will not have new enough versions of pip and/or setuptools, especially virtual environments -- including those created by ansible-test. --- changelogs/fragments/ansible-test-markupsafe-constraint-update.yml | 3 +++ test/lib/ansible_test/_data/requirements/constraints.txt | 1 + 2 files changed, 4 insertions(+) create mode 100644 changelogs/fragments/ansible-test-markupsafe-constraint-update.yml diff --git a/changelogs/fragments/ansible-test-markupsafe-constraint-update.yml b/changelogs/fragments/ansible-test-markupsafe-constraint-update.yml new file mode 100644 index 0000000000..b6cc3f1c92 --- /dev/null +++ b/changelogs/fragments/ansible-test-markupsafe-constraint-update.yml @@ -0,0 +1,3 @@ +bugfixes: + - ansible-test - Add constraint for ``MarkupSafe < 2.1.0`` on Python 3.6 and later. + This avoids installation failures when old ``pip`` or ``setuptools`` packages are present. diff --git a/test/lib/ansible_test/_data/requirements/constraints.txt b/test/lib/ansible_test/_data/requirements/constraints.txt index 1da30911f5..23afa24e88 100644 --- a/test/lib/ansible_test/_data/requirements/constraints.txt +++ b/test/lib/ansible_test/_data/requirements/constraints.txt @@ -46,6 +46,7 @@ botocore >= 1.10.0 ; python_version >= '2.7' # adds support for the following AW setuptools < 37 ; python_version == '2.6' # setuptools 37 and later require python 2.7 or later setuptools < 45 ; python_version == '2.7' # setuptools 45 and later require python 3.5 or later MarkupSafe < 2.0.0 ; python_version < '3.6' # MarkupSafe >= 2.0.0. requires Python >= 3.6 +MarkupSafe < 2.1.0 ; python_version >= '3.6' # MarkupSafe 2.1.0 and later require setuptools 39.2+ or installation from a wheel, which not all environments support # freeze pylint and its requirements for consistent test results astroid == 2.3.3 -- cgit v1.2.1