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
2015-07-15 20:03:15 +02:00
|
|
|
# $NetBSD: Makefile,v 1.6 2015/07/15 18:03:15 wiz Exp $
|
2011-02-11 09:24:02 +01:00
|
|
|
|
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
2015-07-15 20:03:15 +02:00
|
|
|
DISTNAME= Mako-1.0.1
|
2011-02-11 09:24:02 +01:00
|
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
|
|
|
|
CATEGORIES= devel python
|
Update to 0.5.0
Changelog:
0.5
- A Template is explicitly disallowed
from having a url that normalizes to relative outside
of the root. That is, if the Lookup is based
at /home/mytemplates, an include that would place
the ultimate template at
/home/mytemplates/../some_other_directory,
i.e. outside of /home/mytemplates,
is disallowed. This usage was never intended
despite the lack of an explicit check.
The main issue this causes
is that module files can be written outside
of the module root (or raise an error, if file perms aren't
set up), and can also lead to the same template being
cached in the lookup under multiple, relative roots.
TemplateLookup instead has always supported multiple
file roots for this purpose.
[ticket:174]
0.4.2
- Fixed bug regarding <%call>/def calls w/ content
whereby the identity of the "caller" callable
inside the <%def> would be corrupted by the
presence of another <%call> in the same block.
[ticket:170]
- Fixed the babel plugin to accommodate <%block>
[ticket:169]
0.4.1
- New tag: <%block>. A variant on <%def> that
evaluates its contents in-place.
Can be named or anonymous,
the named version is intended for inheritance
layouts where any given section can be
surrounded by the <%block> tag in order for
it to become overrideable by inheriting
templates, without the need to specify a
top-level <%def> plus explicit call.
Modified scoping and argument rules as well as a
more strictly enforced usage scheme make it ideal
for this purpose without at all replacing most
other things that defs are still good for.
Lots of new docs. [ticket:164]
- a slight adjustment to the "highlight" logic
for generating template bound stacktraces.
Will stick to known template source lines
without any extra guessing. [ticket:165]
0.4.0
- A 20% speedup for a basic two-page
inheritance setup rendering
a table of escaped data
(see http://techspot.zzzeek.org/2010/11/19/quick-mako-vs.-jinja-speed-test/).
A few configurational changes which
affect those in the I-don't-do-unicode
camp should be noted below.
- The FastEncodingBuffer is now used
by default instead of cStringIO or StringIO,
regardless of whether output_encoding
is set to None or not. FEB is faster than
both. Only StringIO allows bytestrings
of unknown encoding to pass right
through, however - while it is of course
not recommended to send bytestrings of unknown
encoding to the output stream, this
mode of usage can be re-enabled by
setting the flag bytestring_passthrough
to True.
- disable_unicode mode requires that
output_encoding be set to None - it also
forces the bytestring_passthrough flag
to True.
- the <%namespace> tag raises an error
if the 'template' and 'module' attributes
are specified at the same time in
one tag. A different class is used
for each case which allows a reduction in
runtime conditional logic and function
call overhead. [ticket:156]
- the keys() in the Context, as well as
it's internal _data dictionary, now
include just what was specified to
render() as well as Mako builtins
'caller', 'capture'. The contents
of __builtin__ are no longer copied.
Thanks to Daniel Lopez for pointing
this out. [ticket:159]
2011-10-12 15:09:48 +02:00
|
|
|
MASTER_SITES= http://pypi.python.org/packages/source/M/Mako/ \
|
|
|
|
http://www.makotemplates.org/downloads/
|
2011-02-11 09:24:02 +01:00
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.makotemplates.org/
|
|
|
|
COMMENT= Hyperfast and lightweight templating for the Python platform
|
|
|
|
LICENSE= mit
|
|
|
|
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|