[Bug 264990] devel/py-Jinja2: Update to 3.1.2

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 06 Oct 2022 14:08:00 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264990

--- Comment #4 from ruben@verweg.com ---
This also fixes using (complex) macros with Ansible as described in
https://github.com/ansible/ansible/issues/77272

With 3.0.1 Jinja2

$ ansible localhost -m debug -a "msg='{% macro foo(v) %}{{ v }}{% endmacro %}
{{ foo(1) }}'"
[WARNING]: No inventory was parsed, only implicit localhost is available
localhost | FAILED! => {
    "msg": "Unexpected templating type error occurred on ({% macro foo(v) %}{{
v }}{% endmacro %} {{ foo(1) }}): sequence item 0: expected str instance, int
found"
}
$ pkg info -I py39-{ansible,Jinja2}
py39-ansible-6.1.0             Radically simple IT automation
py39-Jinja2-3.0.1              Fast and easy to use stand-alone template engine

With 3.1.2 Jinja2

$ ansible localhost -m debug -a "msg='{% macro foo(v) %}{{ v }}{% endmacro %}
{{ foo(1) }}'"
[WARNING]: No inventory was parsed, only implicit localhost is available
localhost | SUCCESS => {
    "msg": " 1"
}
$ pkg info -I py39-{ansible,Jinja2}
py39-ansible-6.1.0             Radically simple IT automation
py39-Jinja2-3.1.2              Fast and easy to use stand-alone template engine

-- 
You are receiving this mail because:
You are on the CC list for the bug.