./devel/py-mako, Hyperfast and lightweight templating for the Python platform

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 1.0.7, Package name: py27-mako-1.0.7, Maintainer: pkgsrc-users

Mako is a template library written in Python. It provides a familiar, non-XML
syntax which compiles into Python modules for maximum performance. Mako's
syntax and API borrows from the best ideas of many others, including Django
templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded
Python (i.e. Python Server Page) language, which refines the familiar ideas of
componentized layout and inheritance to produce one of the most straightforward
and flexible models available, while also maintaining close ties to Python
calling and scoping semantics.


Master sites:

SHA1: bf0c1f4cdfca4dd37bc0c9f83e984a0558268b42
RMD160: 641bcab9ad3fc93ea0be1911b29082498819eb0e
Filesize: 551.189 KB

Version history: (Expand)


CVS history: (Expand)


   2017-07-26 19:10:15 by Adam Ciarcinski | Files touched by this commit (4)
Log message:
1.0.7
[bug] Changed the “print” in the mako-render command to \ 
sys.stdout.write(), avoiding the extra newline at the end of the template \ 
output.
   2016-08-21 12:53:17 by Thomas Klausner | Files touched by this commit (1)
Log message:
Remove incorrect mastersite.
   2016-08-18 16:53:24 by Richard PALO | Files touched by this commit (3) | Package updated
Log message:
update to Mako-1.0.4

.. changelog::
    :version: 1.0.4
    :released: Thu Mar 10 2016

    .. change::
        :tags: feature, test

      The default test runner is now py.test.  Running "python setup.py \ 
test"
      will make use of py.test instead of nose.  nose still works as a test
      runner as well, however.

    .. change::
        :tags: bug, lexer
        :pullreq: github:19

      Major improvements to lexing of intricate Python sections which may
      contain complex backslash sequences, as well as support for the bitwise
      operator (e.g. pipe symbol) inside of expression sections distinct
      from the Mako "filter" operator, provided the operator is enclosed
      within parentheses or brackets.  Pull request courtesy Daniel Martin.

    .. change::
        :tags: feature
        :pullreq: bitbucket:16

      Added new method :meth:`.Template.list_defs`.   Pull request courtesy
      Jonathan Vanasco.

.. changelog::
    :version: 1.0.3
    :released: Tue Oct 27 2015

    .. change::
        :tags: bug, babel
        :pullreq: bitbucket:21

      Fixed an issue where the Babel plugin would not handle a translation
      symbol that contained non-ascii characters.  Pull request courtesy
      Roman Imankulov.

.. changelog::
    :version: 1.0.2
    :released: Wed Aug 26 2015

    .. change::
        :tags: bug, installation
        :tickets: 249

      The "universal wheel" marker is removed from setup.cfg, because
      our setup.py currently makes use of conditional dependencies.
      In :ticket:`249`, the discussion is ongoing on how to correct our
      setup.cfg / setup.py fully so that we can handle the per-version
      dependency changes while still maintaining optimal wheel settings,
      so this issue is not yet fully resolved.

    .. change::
        :tags: bug, py3k
        :tickets: 250

      Repair some calls within the ast module that no longer work on Python3.5;
      additionally replace the use of ``inspect.getargspec()`` under
      Python 3 (seems to be called from the TG plugin) to avoid deprecation
      warnings.

    .. change::
        :tags: bug
        :pullreq: bitbucket:18

      Update the Lingua translation extraction plugin to correctly
      handle templates mixing Python control statements (such as if,
      for and while) with template fragments. Pull request courtesy
      Laurent Daverio.

    .. change::
        :tags: feature
        :tickets: 236

      Added ``STOP_RENDERING`` keyword for returning/exiting from a
      template early, which is a synonym for an empty string ``""``.
      Previously, the docs suggested a bare
      ``return``, but this could cause ``None`` to appear in the
      rendered template result.

      .. seealso::

        :ref:`syntax_exiting_early`
   2016-06-08 23:33:18 by Mark Davies | Files touched by this commit (1)
Log message:
Fix MASTER_SITES
   2016-06-08 19:43:49 by Thomas Klausner | Files touched by this commit (356)
Log message:
Switch to MASTER_SITES_PYPI.
   2015-11-03 04:29:40 by Alistair G. Crooks | Files touched by this commit (1995)
Log message:
Add SHA512 digests for distfiles for devel category

Issues found with existing distfiles:
	distfiles/eclipse-sourceBuild-srcIncluded-3.0.1.zip
	distfiles/fortran-utils-1.1.tar.gz
	distfiles/ivykis-0.39.tar.gz
	distfiles/enum-1.11.tar.gz
	distfiles/pvs-3.2-libraries.tgz
	distfiles/pvs-3.2-linux.tgz
	distfiles/pvs-3.2-solaris.tgz
	distfiles/pvs-3.2-system.tgz
No changes made to these distinfo files.

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
   2015-07-15 20:04:23 by Thomas Klausner | Files touched by this commit (1) | Package updated
Log message:
Update PLIST for Mako-1.0.1.
   2015-07-15 20:03:15 by Thomas Klausner | Files touched by this commit (2) | Package updated
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