1.2.0
1.2.0
Released: Thu Mar 10 2022
changed
-
[changed] [py3k] Corrected "universal wheel" directive in
setup.cfg
so that building a
wheel does not target Python 2.References: #351
-
[changed] [py3k] The
bytestring_passthrough
template argument is removed, as this
flag only applied to Python 2. -
[changed] [py3k] With the removal of Python 2's
cStringIO
, Mako now uses its own
internalFastEncodingBuffer
exclusively. -
[changed] [py3k] Removed
disable_unicode
flag, that's no longer used in Python 3. -
[changed] Refactored test utilities into
mako.testing
module. Removed
unittest.TestCase
dependency in favor ofpytest
.References: #349
-
[changed] [setup] Replaced the use of
pkg_resources
with theimportlib
library.
For Python < 3.8 the libraryimportlib_metadata
is used. -
[changed] [py3k] Removed support for Python 2 and Python 3.6. Mako now requires Python >=
3.7.
bug
- [bug] [py3k] Mako now performs exception chaining using
raise from
, correctly
identifying underlying exception conditions when it raises its own
exceptions. Pull request courtesy Ram Rachum.