mirror of https://github.com/ansible/ansible.git
[stable-2.10] CI and compat fixes for Jinja2 >= 3.0 (#74666)
* Add constraint for MarkupSafe
MarkupSafe >= 2.0.0 requires Python >= 3.6.0. Add a constraint for older Python versions
and fix the `groupby_filter` test.
* Fix template_jinja2_latest test.
* patch filter decorators on newer Jinja2
* Jinja2 >= 3.0 renames several filter decorators used by Ansible itself, as well as by filters in collections. This patch ensures that the old names are usable within Ansible and by collections without warnings or errors.
* Ignore docs-build issues.
Co-authored-by: Matt Clay <matt@mystile.com>
Co-authored-by: Matt Davis <mrd@redhat.com>.
(cherry picked from commit f99d024851)
Co-authored-by: Sam Doran <sdoran@redhat.com>
pull/74692/head
parent
357714a7c4
commit
b345760393
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- ansible_test - add constraint for ``MarkupSafe`` (https://github.com/ansible/ansible/pull/74666)
|
||||
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- filter plugins - patch new versions of Jinja2 to prevent warnings/errors on renamed filter decorators (https://github.com/ansible/ansible/issues/74667)
|
||||
@ -1 +1,2 @@
|
||||
shippable/posix/group2
|
||||
needs/file/test/lib/ansible_test/_data/requirements/constraints.txt
|
||||
|
||||
@ -0,0 +1,4 @@
|
||||
# pip 7.1 added support for constraints, which are required by ansible-test to install most python requirements
|
||||
# see https://github.com/pypa/pip/blame/e648e00dc0226ade30ade99591b245b0c98e86c9/NEWS.rst#L1258
|
||||
pip >= 7.1, < 10 ; python_version < '2.7' # pip 10+ drops support for python 2.6 (sanity_ok)
|
||||
pip >= 7.1 ; python_version >= '2.7' # sanity_ok
|
||||
@ -0,0 +1,4 @@
|
||||
# pip 7.1 added support for constraints, which are required by ansible-test to install most python requirements
|
||||
# see https://github.com/pypa/pip/blame/e648e00dc0226ade30ade99591b245b0c98e86c9/NEWS.rst#L1258
|
||||
pip >= 7.1, < 10 ; python_version < '2.7' # pip 10+ drops support for python 2.6 (sanity_ok)
|
||||
pip >= 7.1 ; python_version >= '2.7' # sanity_ok
|
||||
Loading…
Reference in New Issue