Require Jinja2 3.1.0 or later (#84864)

pull/84866/head
Matt Clay 9 months ago committed by GitHub
parent ad5cf37625
commit 7e7946b60d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,2 @@
minor_changes:
- Jinja2 version 3.1.0 or later is now required on the controller.

@ -82,9 +82,9 @@ from ansible.module_utils.compat.version import LooseVersion
# Used for determining if the system is running a new enough Jinja2 version # Used for determining if the system is running a new enough Jinja2 version
# and should only restrict on our documented minimum versions # and should only restrict on our documented minimum versions
jinja2_version = version('jinja2') jinja2_version = version('jinja2')
if jinja2_version < LooseVersion('3.0'): if jinja2_version < LooseVersion('3.1'):
raise SystemExit( raise SystemExit(
'ERROR: Ansible requires Jinja2 3.0 or newer on the controller. ' 'ERROR: Ansible requires Jinja2 3.1 or newer on the controller. '
'Current version: %s' % jinja2_version 'Current version: %s' % jinja2_version
) )

@ -3,7 +3,7 @@
# packages. Thus, this should be the loosest set possible (only required # packages. Thus, this should be the loosest set possible (only required
# packages, not optional ones, and with the widest range of versions that could # packages, not optional ones, and with the widest range of versions that could
# be suitable) # be suitable)
jinja2 >= 3.0.0 jinja2 >= 3.1.0 # Jinja2 native macro support fixed in 3.1.0
PyYAML >= 5.1 # PyYAML 5.1 is required for Python 3.8+ support PyYAML >= 5.1 # PyYAML 5.1 is required for Python 3.8+ support
cryptography cryptography
packaging packaging

@ -3,7 +3,7 @@
# packages. Thus, this should be the loosest set possible (only required # packages. Thus, this should be the loosest set possible (only required
# packages, not optional ones, and with the widest range of versions that could # packages, not optional ones, and with the widest range of versions that could
# be suitable) # be suitable)
jinja2 >= 3.0.0 jinja2 >= 3.1.0 # Jinja2 native macro support fixed in 3.1.0
PyYAML >= 5.1 # PyYAML 5.1 is required for Python 3.8+ support PyYAML >= 5.1 # PyYAML 5.1 is required for Python 3.8+ support
cryptography cryptography
packaging packaging

Loading…
Cancel
Save