Path to this page:
Subject: CVS commit: pkgsrc/devel/py-mako
From: Thomas Klausner
Date: 2015-07-15 20:03:15
Message id: 20150715180315.9A65498@cvs.netbsd.org
Log Message:
Update to 1.0.1:
1.0.1
Released: Thu Jan 22 2015
⢠[feature] Added support for Lingua, a translation extraction system as an
alternative to Babel. Pull request courtesy Wichert Akkerman.
References: pull request bitbucket:9
⢠[bug] [py3k] Modernized the examples/wsgi/run_wsgi.py file for Py3k. Pull
requset courtesy Cody Taylor.
References: pull request bitbucket:11
1.0.0
Released: Sun Jun 8 2014
⢠[py2k] [bug] Improved the error re-raise operation when a custom
Template.error_handler is used that does not handle the exception; the
original stack trace etc. is now preserved. Pull request courtesy Manfred
Haltner.
References: pull request bitbucket:8
⢠[py2k] [bug] [filters] Added an html_escape filter that works in ânon
unicodeâ mode. Previously, when using disable_unicode=True, the u filter
would fail to handle non-ASCII bytes properly. Pull request courtesy George
Xie.
References: pull request bitbucket:7
⢠[general] Compatibility changes; in order to modernize the codebase, Mako
is now dropping support for Python 2.4 and Python 2.5 altogether. The
source base is now targeted at Python 2.6 and forwards.
⢠[feature] Template modules now generate a JSON âmetadataâ \
structure at the
bottom of the source file which includes parseable information about the
templatesâ source file, encoding etc. as well as a mapping of module source
lines to template lines, thus replacing the â# SOURCE LINEâ markers
throughout the source code. The structure also indicates those lines that
are explicitly not part of the templateâs source; the goal here is to allow
better integration with coverage and other tools.
⢠[bug] [py3k] Fixed bug in decode.<encoding> filter where a non-string
object would not be correctly interpreted in Python 3.
⢠[bug] [py3k] Fixed bug in Python parsing logic which would fail on Python 3
when a âtry/exceptâ targeted a tuple of exception types, rather than a
single exception.
References: #227
⢠[feature] mako-render is now implemented as a setuptools entrypoint script;
a standalone mako.cmd.cmdline() callable is now available, and the system
also uses argparse now instead of optparse. Pull request courtesy Derek
Harland.
References: pull request bitbucket:5
⢠[feature] The mako-render script will now catch exceptions and run them
into the text error handler, and exit with a non-zero exit code. Pull
request courtesy Derek Harland.
References: pull request bitbucket:4
⢠[bug] A rework of the mako-render script allows the script to run correctly
when given a file pathname that is outside of the current directory, e.g.
mako-render ../some_template.mako. In this case, the âtemplate rootâ
defaults to the directory in which the template is located, instead of \
â.â.
The script also accepts a new argument --template-dir which can be
specified multiple times to establish template lookup directories. Standard
input for templates also works now too. Pull request courtesy Derek
Harland.
References: pull request bitbucket:2
⢠[feature] [py3k] Support is added for Python 3 âkeyword onlyâ \
arguments, as
used in defs. Pull request courtesy Eevee.
References: pull request github:7
0.9
0.9.1
Released: Thu Dec 26 2013
⢠[bug] Fixed bug in Babel plugin where translator comments would be lost if
intervening text nodes were encountered. Fix courtesy Ned Batchelder.
References: #225
⢠[bug] Fixed TGPlugin.render method to support unicode template names in
Py2K - courtesy Vladimir Magamedov.
⢠[bug] Fixed an AST issue that was preventing correct operation under alpha
versions of Python 3.4. Pullreq courtesy Zer0-.
⢠[bug] Changed the format of the âsource encodingâ header \
output by the code
generator to use the format # -*- coding:%s -*- instead of # -*-
encoding:%s -*-; the former is more common and compatible with emacs.
Courtesy Martin Geisler.
⢠[bug] Fixed issue where an old lexer rule prevented a template line which
looked like â#*â from being correctly parsed.
References: #224
0.9.0
Released: Tue Aug 27 2013
⢠[bug] The Context.locals_() method becomes a private underscored method, as
this method has a specific internal use. The purpose of Context.kwargs has
been clarified, in that it only delivers top level keyword arguments
originally passed to template.render().
References: #219
⢠[bug] Fixed the babel plugin to properly interpret ${} sections inside of a
âcallâ tag, i.e. <%self:some_tag \
attr=â${_(âfooâ)}â/>. Code thatâs subject
to babel escapes in here needs to be specified as a Python expression, not
a literal. This change is backwards incompatible vs. code that is relying
upon a _(ââ) translation to be working within a call tag.
⢠[bug] The Babel plugin has been repaired to work on Python 3.
References: #187
⢠[bug] Using <%namespace import=â*â \
module=âsomemoduleâ/> now skips over
module elements that are not explcitly callable, avoiding TypeError when
trying to produce partials.
References: #207
⢠[bug] Fixed Py3K bug where a âlambdaâ expression was not \
interpreted
correctly within a template tag; also fixed in Py2.4.
References: #190
Files: