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
This commit is contained in:
parent
fad936e1f9
commit
36afb205ab
2 changed files with 6 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
# $NetBSD: Makefile,v 1.5 2013/07/18 20:33:50 adam Exp $
|
||||
# $NetBSD: Makefile,v 1.6 2015/07/15 18:03:15 wiz Exp $
|
||||
|
||||
DISTNAME= Mako-0.8.1
|
||||
DISTNAME= Mako-1.0.1
|
||||
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= http://pypi.python.org/packages/source/M/Mako/ \
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
$NetBSD: distinfo,v 1.4 2013/07/18 20:33:50 adam Exp $
|
||||
$NetBSD: distinfo,v 1.5 2015/07/15 18:03:15 wiz Exp $
|
||||
|
||||
SHA1 (Mako-0.8.1.tar.gz) = 6e27889d3dddedd442da9bdb79df3f3a93eeb172
|
||||
RMD160 (Mako-0.8.1.tar.gz) = 09a667be607eba7cbbd9368f89fcc6f32e3bf9c1
|
||||
Size (Mako-0.8.1.tar.gz) = 407434 bytes
|
||||
SHA1 (Mako-1.0.1.tar.gz) = 00ef43d5722c5407e5d64047ef4e3218006d741c
|
||||
RMD160 (Mako-1.0.1.tar.gz) = b4ce15a2a64694b7555e10ed0a00d1a688c90c32
|
||||
Size (Mako-1.0.1.tar.gz) = 473295 bytes
|
||||
|
|
Loading…
Reference in a new issue