From f69b1846f9d87148311f830b3c38a575641e2417 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Mon, 15 Jun 2020 10:59:48 -0700 Subject: [PATCH] Add pyparsing constraint to ansible-test. The upcoming pyparsing 3 release will require Python 3.5 or later, see: https://github.com/pypa/packaging/issues/313 Unfortunately pip 8.x and earlier versions do not support python version requirements, which is why this constraint is needed. --- changelogs/fragments/ansible-test-pyparsing-constraint.yml | 2 ++ test/lib/ansible_test/_data/requirements/constraints.txt | 1 + 2 files changed, 3 insertions(+) create mode 100644 changelogs/fragments/ansible-test-pyparsing-constraint.yml diff --git a/changelogs/fragments/ansible-test-pyparsing-constraint.yml b/changelogs/fragments/ansible-test-pyparsing-constraint.yml new file mode 100644 index 00000000000..21504ac1dd1 --- /dev/null +++ b/changelogs/fragments/ansible-test-pyparsing-constraint.yml @@ -0,0 +1,2 @@ +minor_changes: + - ansible-test add pyparsing constraint for Python 2.x to avoid compatibility issues with the upcoming pyparsing 3 release diff --git a/test/lib/ansible_test/_data/requirements/constraints.txt b/test/lib/ansible_test/_data/requirements/constraints.txt index bf7d2f9813f..b02bcf76289 100644 --- a/test/lib/ansible_test/_data/requirements/constraints.txt +++ b/test/lib/ansible_test/_data/requirements/constraints.txt @@ -28,6 +28,7 @@ openshift >= 0.6.2, < 0.9.0 # merge_type support virtualenv < 16.0.0 ; python_version < '2.7' # virtualenv 16.0.0 and later require python 2.7 or later pathspec < 0.6.0 ; python_version < '2.7' # pathspec 0.6.0 and later require python 2.7 or later pyopenssl < 18.0.0 ; python_version < '2.7' # pyOpenSSL 18.0.0 and later require python 2.7 or later +pyparsing < 3.0.0 ; python_version < '3.5' # pyparsing 3 and later require python 3.5 or later pyfmg == 0.6.1 # newer versions do not pass current unit tests pyyaml < 5.1 ; python_version < '2.7' # pyyaml 5.1 and later require python 2.7 or later pycparser < 2.19 ; python_version < '2.7' # pycparser 2.19 and later require python 2.7 or later