Add constraints for Jinja2 on Python 2.6. (#66826)

* Add constraint for Jinja2 on Python 2.6.

* Fix constraint in inventory_aws_conformance test.

* Add constrraints for template_jinja2_latest test.
This commit is contained in:
Matt Clay 2020-01-27 14:01:34 -08:00 committed by GitHub
parent 4ca0c7f116
commit 965854fbd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- ansible-test now limits Jinja2 installs to version 2.10 and earlier on Python 2.6

View file

@ -4,7 +4,7 @@ set -eux
source virtualenv.sh
pip install "python-dateutil>=2.1,<2.7.0" jmespath "Jinja2>=2.10"
pip install "python-dateutil>=2.1,<2.7.0" jmespath "Jinja2==2.10"
# create boto3 symlinks
ln -s "$(pwd)/lib/boto" "$(pwd)/lib/boto3"

View file

@ -0,0 +1,2 @@
jinja2 < 2.11 ; python_version < '2.7' # jinja2 2.11 and later require python 2.7 or later
jinja2 ; python_version >= '2.7'

View file

@ -4,7 +4,7 @@ set -eux
source virtualenv.sh
pip install -U jinja2
pip install -U -r requirements.txt
ANSIBLE_ROLES_PATH=../
export ANSIBLE_ROLES_PATH

View file

@ -2,6 +2,7 @@ coverage >= 4.2, < 5.0.0, != 4.3.2 ; python_version <= '3.7' # features in 4.2+
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
jinja2 < 2.11 ; python_version < '2.7' # jinja2 2.11 and later require python 2.7 or later
urllib3 < 1.24 ; python_version < '2.7' # urllib3 1.24 and later require python 2.7 or later
pywinrm >= 0.3.0 # message encryption support
sphinx < 1.6 ; python_version < '2.7' # sphinx 1.6 and later require python 2.7 or later