Path to this page:
Subject: CVS commit: pkgsrc/devel/py-mako
From: Adam Ciarcinski
Date: 2022-10-25 13:18:04
Message id: 20221025111804.4EC2FFA90@cvs.NetBSD.org
Log Message:
py-mako: updated to 1.2.3
1.2.3
Fixed issue in lexer in the same category as that of 366 where the regexp used \
to match an end tag didn’t correctly organize for matching characters \
surrounded by whitespace, leading to high memory / interpreter hang if a closing \
tag incorrectly had a large amount of unterminated space in it. Credit to \
Sebastian Chnelik for locating the issue.
As Mako templates inherently render and directly invoke arbitrary Python code \
from the template source, it is never appropriate to create templates that \
contain untrusted input.
1.2.2
Fixed issue in lexer where the regexp used to match tags would not correctly \
interpret quoted sections individually. While this parsing issue still produced \
the same expected tag structure later on, the mis-handling of quoted sections \
was also subject to a regexp crash if a tag had a large number of quotes within \
its quoted sections. Credit to Sebastian Chnelik for locating the issue.
As Mako templates inherently render and directly invoke arbitrary Python code \
from the template source, it is never appropriate to create templates that \
contain untrusted input.
1.2.1
Various fixes to the test suite in the area of exception message rendering to \
accommodate for variability in Python versions as well as Pygments.
Optimized some codepaths within the lexer/Python code generation process, \
improving performance for generation of templates prior to their being cached. \
Pull request courtesy Takuto Ikuta.
1.2.0
Corrected “universal wheel” directive in setup.cfg so that building a wheel \
does not target Python 2.
The bytestring_passthrough template argument is removed, as this flag only \
applied to Python 2.
With the removal of Python 2’s cStringIO, Mako now uses its own internal \
FastEncodingBuffer exclusively.
Removed disable_unicode flag, that’s no longer used in Python 3.
Refactored test utilities into mako.testing module. Removed unittest.TestCase \
dependency in favor of pytest.
Replaced the use of pkg_resources with the importlib library. For Python < \
3.8 the library importlib_metadata is used.
Removed support for Python 2 and Python 3.6. Mako now requires Python >= 3.7.
Mako now performs exception chaining using raise from, correctly identifying \
underlying exception conditions when it raises its own exceptions. Pull request \
courtesy Ram Rachum.
Files: