The NetBSD Project

CVS log for pkgsrc/devel/py-mako/Makefile

[BACK] Up to [] / pkgsrc / devel / py-mako

Request diff between arbitrary revisions

Default branch: MAIN

Revision 1.29 / (download) - annotate - [select for diffs], Mon Nov 13 11:17:03 2023 UTC (4 weeks ago) by wiz
Branch: MAIN
Changes since 1.28: +5 -7 lines
Diff to previous 1.28 (colored)

py-mako: update to 1.3.0.

Mako 1.3.0 bumps the minimum Python version to 3.8, as 3.7 is EOL as of
2023-06-27.   Python 3.12 is now supported explicitly.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Nov 16 13:55:36 2022 UTC (12 months, 3 weeks ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2023Q3-base, pkgsrc-2023Q3, pkgsrc-2023Q2-base, pkgsrc-2023Q2, pkgsrc-2023Q1-base, pkgsrc-2023Q1, pkgsrc-2022Q4-base, pkgsrc-2022Q4
Changes since 1.27: +2 -7 lines
Diff to previous 1.27 (colored)

py-mako: updated to 1.2.4

Fixed issue where unpacking nested tuples in a for loop using would raise a
"couldn't apply loop context" error if the loop context was used. The regex
used to match the for loop expression now allows the list of loop variables
to contain parenthesized sub-tuples. Pull request courtesy Matt Trescott.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Oct 25 11:18:04 2022 UTC (13 months, 2 weeks ago) by adam
Branch: MAIN
Changes since 1.26: +9 -3 lines
Diff to previous 1.26 (colored)

py-mako: updated to 1.2.3


Fixed issue in lexer in the same category as that of 366 where the regexp used to match an end tag didn„ŗ—’ correctly organize for matching characters surrounded by whitespace, leading to high memory / interpreter hang if a closing tag incorrectly had a large amount of unterminated space in it. Credit to Sebastian Chnelik for locating the issue.
As Mako templates inherently render and directly invoke arbitrary Python code from the template source, it is never appropriate to create templates that contain untrusted input.


Fixed issue in lexer where the regexp used to match tags would not correctly interpret quoted sections individually. While this parsing issue still produced the same expected tag structure later on, the mis-handling of quoted sections was also subject to a regexp crash if a tag had a large number of quotes within its quoted sections. Credit to Sebastian Chnelik for locating the issue.
As Mako templates inherently render and directly invoke arbitrary Python code from the template source, it is never appropriate to create templates that contain untrusted input.


Various fixes to the test suite in the area of exception message rendering to accommodate for variability in Python versions as well as Pygments.
Optimized some codepaths within the lexer/Python code generation process, improving performance for generation of templates prior to their being cached. Pull request courtesy Takuto Ikuta.

Corrected „ŗ◊÷niversal wheel„ŗdirective in setup.cfg so that building a wheel does not target Python 2.
The bytestring_passthrough template argument is removed, as this flag only applied to Python 2.
With the removal of Python 2„ŗ—‘ cStringIO, Mako now uses its own internal FastEncodingBuffer exclusively.
Removed disable_unicode flag, that„ŗ—‘ no longer used in Python 3.
Refactored test utilities into mako.testing module. Removed unittest.TestCase dependency in favor of pytest.
Replaced the use of pkg_resources with the importlib library. For Python < 3.8 the library importlib_metadata is used.
Removed support for Python 2 and Python 3.6. Mako now requires Python >= 3.7.
Mako now performs exception chaining using raise from, correctly identifying underlying exception conditions when it raises its own exceptions. Pull request courtesy Ram Rachum.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jan 5 15:41:06 2022 UTC (23 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2022Q3-base, pkgsrc-2022Q3, pkgsrc-2022Q2-base, pkgsrc-2022Q2, pkgsrc-2022Q1-base, pkgsrc-2022Q1
Changes since 1.25: +4 -2 lines
Diff to previous 1.25 (colored)

python: add USE_PKG_RESOURCES flag

This flag should be set for packages that import pkg_resources
and thus need setuptools after the build step.

Set this flag for packages that need it and bump PKGREVISION.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Jan 4 20:53:16 2022 UTC (23 months ago) by wiz
Branch: MAIN
Changes since 1.24: +2 -1 lines
Diff to previous 1.24 (colored)

*: bump PKGREVISION for users

They now have a tool dependency on py-setuptools instead of a DEPENDS

Revision 1.24 / (download) - annotate - [select for diffs], Wed Nov 17 17:03:48 2021 UTC (2 years ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2021Q4-base, pkgsrc-2021Q4
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

py-mako: updated to 1.1.6


[bug] [lexer]

Fixed issue where control statements on multi lines with a backslash would not parse correctly if the template itself contained CR/LF pairs as on Windows.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Oct 26 17:16:46 2021 UTC (2 years, 1 month ago) by adam
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

py-mako: updated to 1.1.5


[bug] [tests]

Fixed some issues with running the test suite which would be revealed by running tests in random order.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jan 15 12:33:26 2021 UTC (2 years, 10 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1
Changes since 1.21: +3 -4 lines
Diff to previous 1.21 (colored)

py-mako: updated to 1.1.4

Fixed Python deprecation issues related to module importing, as well as file access within the Lingua plugin, for deprecated APIs that began to emit warnings under Python 3.10.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Oct 4 17:30:51 2020 UTC (3 years, 2 months ago) by js
Branch: MAIN
CVS Tags: pkgsrc-2020Q4-base, pkgsrc-2020Q4
Changes since 1.20: +3 -1 lines
Diff to previous 1.20 (colored)

devel/py-mako: Fix missing dependency

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jun 3 17:01:05 2020 UTC (3 years, 6 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

py-mako: updated to 1.1.3

The default template encoding is now utf-8.  Previously, the encoding
"ascii", which was standard throughout Python 2.   This allows that
"magic encoding comment" for utf-8 templates is no longer required.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Mar 2 10:34:12 2020 UTC (3 years, 9 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2020Q1-base, pkgsrc-2020Q1
Changes since 1.18: +5 -6 lines
Diff to previous 1.18 (colored)

py-mako: updated to 1.1.2

[feature] [commands]
Added „ŗŇ–utput-file argument to the Mako command line runner, which allows a specific output file to be selected. Pull request courtesy Bj√∂rn Dahlgren.


[bug] [py3k]
Replaced usage of the long-superseded ◊—arser.suite„ŗmodule in the mako.util package for parsing the python magic encoding comment with the „ŗ◊¬st.parse„ŗfunction introduced many years ago in Python 2.5, as „ŗ◊—arser.suite„ŗis emitting deprecation warnings in Python 3.9.

[bug] [ext]
Added „ŗ◊√abel„ŗand „ŗ◊Õingua„ŗdependency entries to the setuptools entrypoints for the babel and lingua extensions, so that pkg_resources can check that these extra dependencies are available, raising an informative exception if not. Pull request courtesy sinoroc.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jan 26 17:31:03 2020 UTC (3 years, 10 months ago) by rillig
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

all: migrate homepages from http to https

pkglint -r --network --only "migrate"

As a side-effect of migrating the homepages, pkglint also fixed a few
indentations in unrelated lines. These and the new homepages have been
checked manually.

Revision 1.17 / (download) - annotate - [select for diffs], Sat Aug 3 11:27:27 2019 UTC (4 years, 4 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3
Changes since 1.16: +7 -2 lines
Diff to previous 1.16 (colored)

py-mako: updated to 1.1.0



[changed] [setup]
Removed the „ŗ◊—ython test„ŗfeature in favor of a straight run of „ŗ◊’ox„ŗ Per Pypa / pytest developers, „ŗ◊‘„ŗcommands are in general headed towards deprecation in favor of tox. The tox.ini script has been updated such that running „ŗ◊’ox„ŗwith no arguments will perform a single run of the test suite against the default installed Python interpreter.

[changed] [installer] [py3k]
Mako 1.1 now supports Python versions:
- 2.7
- 3.4 and higher

This includes that no longer includes any conditionals, allowing for a pure Python wheel build, however this is not necessarily part of the Pypi release process as of yet. The test suite also raises for Python deprecation warnings.


[bug] [py3k] [windows]
Replaced usage of time.clock() on windows as well as time.time() elsewhere for microsecond timestamps with timeit.default_timer(), as time.clock() is being removed in Python 3.8. Pull request courtesy Christoph Reiter.

[bug] [py3k]
Replaced usage of inspect.getfullargspec() with the vendored version used by SQLAlchemy, Alembic to avoid future deprecation warnings. Also cleans up an additional version of the same function that„ŗ—‘ apparently been floating around for some time.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Jul 21 08:07:19 2019 UTC (4 years, 4 months ago) by adam
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

py-mako: updated to 1.0.14


[feature] [template]

The n filter is now supported in the <%page> tag. This allows a template to omit the default expression filters throughout a whole template, for those cases where a template-wide filter needs to have default filtering disabled. Pull request courtesy Martin von Gagern.

[bug] [exceptions]

Fixed issue where the correct file URI would not be shown in the template-formatted exception traceback if the template filename were not known. Additionally fixes an issue where stale filenames would be displayed if a stack trace alternated between different templates. Pull request courtesy Martin von Gagern.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Jul 3 20:22:00 2019 UTC (4 years, 5 months ago) by adam
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

py-mako: updated to 1.0.13

version: 1.0.13
Improved the line-number tracking for source lines inside of Python  <%
... %> blocks, such that text- and HTML-formatted exception traces such
as that of  :func:.html_error_template now report the correct source line
inside the block, rather than the first line of the block itself.
Exceptions in <%! ... %> blocks which get raised while loading the
module are still not reported correctly, as these are handled before the
Mako code is generated.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jun 14 04:54:45 2019 UTC (4 years, 5 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2019Q2-base, pkgsrc-2019Q2
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

py-mako: updated to 1.0.12

[bug] [py3k]
Fixed regression where import refactors in Mako 1.0.11 caused broken imports on Python 3.8.

Updated for additional project metadata in Additionally, the code has been reformatted using Black and zimports.

[bug] [py3k]
Added a default encoding of „ŗ◊÷tf-8„ŗwhen the RichTraceback object retrieves Python source lines from a Python traceback; as these are bytes in Python 3 they need to be decoded so that they can be formatted in the template.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Apr 16 07:18:33 2019 UTC (4 years, 7 months ago) by adam
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

py-mako: updated to 1.0.9

Further corrected the previous fix for 287 as it relied upon an attribute that is monkeypatched by Python„ŗ—‘ ast module for some reason, which fails if ast hasn„ŗ—’ been imported; the correct attribute Constant.value is now used. Also note the issue was mis-numbered in the previous changelog note.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Mar 21 14:18:07 2019 UTC (4 years, 8 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2019Q1-base, pkgsrc-2019Q1
Changes since 1.11: +5 -4 lines
Diff to previous 1.11 (colored)

py-mako: updated to 1.0.8

[bug] Fixed an element in the AST Python generator which changed for Python 3.8, causing expression generation to fail.
[feature] Added --output-encoding flag to the mako-render script. Pull request courtesy lacsaP.
[bug] Removed unnecessary „ŗ◊÷sage„ŗprefix from mako-render script. Pull request courtesy Hugo.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jul 26 17:10:15 2017 UTC (6 years, 4 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3
Changes since 1.10: +5 -2 lines
Diff to previous 1.10 (colored)

[bug] Changed the „ŗ◊—rint„ŗin the mako-render command to sys.stdout.write(), avoiding the extra newline at the end of the template output.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Aug 21 10:53:17 2016 UTC (7 years, 3 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3
Changes since 1.9: +2 -3 lines
Diff to previous 1.9 (colored)

Remove incorrect mastersite.

Revision 1.9 / (download) - annotate - [select for diffs], Thu Aug 18 14:53:24 2016 UTC (7 years, 3 months ago) by richard
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

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 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 currently makes use of conditional dependencies.
      In :ticket:`249`, the discussion is ongoing on how to correct our
      setup.cfg / 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

    .. 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::


Revision 1.8 / (download) - annotate - [select for diffs], Wed Jun 8 21:33:18 2016 UTC (7 years, 6 months ago) by markd
Branch: MAIN
CVS Tags: pkgsrc-2016Q2-base, pkgsrc-2016Q2
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)


Revision 1.7 / (download) - annotate - [select for diffs], Wed Jun 8 17:43:25 2016 UTC (7 years, 6 months ago) by wiz
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)


Revision 1.6 / (download) - annotate - [select for diffs], Wed Jul 15 18:03:15 2015 UTC (8 years, 4 months ago) by wiz
Branch: MAIN
CVS Tags: pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

Update to 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/ file for Py3k. Pull
    requset courtesy Cody Taylor.

    References: pull request bitbucket:11


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

    References: pull request bitbucket:8

  [py2k] [bug] [filters] Added an html_escape filter that works in ◊Ōon
    unicode„ŗmode. Previously, when using disable_unicode=True, the u filter
    would fail to handle non-ASCII bytes properly. Pull request courtesy George

    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 ◊őetadata„ŗ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„ŗ—‘ 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 ◊’ry/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

    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 ◊’emplate 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

    References: pull request bitbucket:2

  „ŗ[feature] [py3k] Support is added for Python 3 ◊Őeyword only„ŗarguments, as
    used in defs. Pull request courtesy Eevee.

    References: pull request github:7



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 ◊‘ource 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


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
    ◊ńall„ŗtag, i.e. <%self:some_tag attr=„ŗ{_(„ŗŌ«oo„ŗ}„ŗ>. Code that„ŗ—‘ 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=„ŗŔ‘omemodule„ŗ> 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 ◊Õambda„ŗexpression was not interpreted
    correctly within a template tag; also fixed in Py2.4.

    References: #190

Revision 1.5 / (download) - annotate - [select for diffs], Thu Jul 18 20:33:50 2013 UTC (10 years, 4 months ago) by adam
Branch: MAIN
CVS Tags: pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

Changes 0.8.1:
- [bug] Changed to skip installing markupsafe
  if Python version is < 2.6 or is between 3.0 and
  less than 3.3, as Markupsafe now only supports 2.6->2.X,
- [bug] Fixed regression where "entity" filter wasn't
  converted for py3k properly (added tests.)
- [bug] Fixed bug where mako-render script wasn't
  compatible with Py3k.
- [bug] Cleaned up all the various deprecation/
  file warnings when running the tests under
  various Pythons with warnings turned on.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Feb 19 18:49:02 2013 UTC (10 years, 9 months ago) by ryoon
Branch: MAIN
CVS Tags: pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Update to 0.7.3

- [bug] legacy_html_escape function, used when
  Markupsafe isn't installed, was using an inline-compiled
  regexp which causes major slowdowns on Python 3.3;
  is now precompiled.

- [bug] AST supporting now supports tuple-packed
  function arguments inside pure-python def
  or lambda expressions.  [ticket:201]

- [bug] Fixed Py3K bug in the Babel extension.

- [bug] Fixed the "filter" attribute of the
  <%text> tag so that it pulls locally specified
  identifiers from the context the same
  way as that of <%block> and <%filter>.

- [bug] Fixed bug in plugin loader to correctly
  raise exception when non-existent plugin
  is specified.

- [bug] Fixed regression in 0.7.1 where AST
  parsing for Py2.4 was broken.

- [feature] Control lines with no bodies will
  now succeed, as "pass" is added for these
  when no statements are otherwise present.
  Courtesy Ben Trofatter [ticket:146]

- [bug] Fixed some long-broken scoping behavior
  involving variables declared in defs and such,
  which only became apparent when
  the strict_undefined flag was turned on.

- [bug] Can now use strict_undefined at the
  same time args passed to def() are used
  by other elements of the <%def> tag.

- [feature] Added new "loop" variable to templates,
  is provided within a % for block to provide
  info about the loop such as index, first/last,
  odd/even, etc.  A migration path is also provided
  for legacy templates via the "enable_loop" argument
  available on Template, TemplateLookup, and <%page>.
  Thanks to Ben Trofatter for all
  the work on this [ticket:125]

- [feature] Added a real check for "reserved"
  names, that is names which are never pulled
  from the context and cannot be passed to
  the template.render() method.  Current names
  are "context", "loop", "UNDEFINED".

- [feature] The html_error_template() will now
  apply Pygments highlighting to the source
  code displayed in the traceback, if Pygments
  if available.  Courtesy Ben Trofatter

- [feature] Added support for context managers,
  i.e. "% with x as e:/ % endwith" support.
  Courtesy Ben Trofatter [ticket:147]

- [feature] Added class-level flag to CacheImpl
  "pass_context"; when True, the keyword argument
  'context' will be passed to get_or_create()
  containing the Mako Context object.

- [bug] Fixed some Py3K resource warnings due
  to filehandles being implicitly closed.

- [bug] Fixed endless recursion bug when
  nesting multiple def-calls with content.
  Thanks to Jeff Dairiki. [ticket:186]

- [feature] Added Jinja2 to the example
  benchmark suite, courtesy Vincent Férotin

- [bug] The ${{"foo":"bar"}} parsing issue is fixed!!
  The legendary Eevee has slain the dragon!
  [ticket:20].  Also fixes quoting issue
  at [ticket:86].

- [bug] Added special compatibility for the 0.5.0
  Cache() constructor, which was preventing file
  version checks and not allowing Mako 0.6 to
  recompile the module files.


- [feature] Template caching has been converted into a plugin
  system, whereby the usage of Beaker is just the
  default plugin.   Template and TemplateLookup
  now accept a string "cache_impl" parameter which
  refers to the name of a cache plugin, defaulting
  to the name 'beaker'.  New plugins can be
  registered as pkg_resources entrypoints under
  the group "mako.cache", or registered directly
  using mako.cache.register_plugin().  The
  core plugin is the mako.cache.CacheImpl

- [feature] Added support for Beaker cache regions
  in templates.   Usage of regions should be considered
  as superseding the very obsolete idea of passing in
  backend options, timeouts, etc. within templates.

- [feature] The 'put' method on Cache is now
  'set'.  'put' is there for backwards compatibility.

- [feature] The <%def>, <%block> and <%page> tags now accept
  any argument named "cache_*", and the key
  minus the "cache_" prefix will be passed as keyword
  arguments to the CacheImpl methods.

- [feature] Template and TemplateLookup now accept an argument
  cache_args, which refers to a dictionary containing
  cache parameters.  The cache_dir, cache_url, cache_type,
  cache_timeout arguments are deprecated (will probably
  never be removed, however) and can be passed
  now as cache_args={'url':<some url>, 'type':'memcached',
  'timeout':50, 'dir':'/path/to/some/directory'}

- [feature/bug] Can now refer to context variables
  within extra arguments to <%block>, <%def>, i.e.
  <%block name="foo" cache_key="${somekey}">.
  Filters can also be used in this way, i.e.
  <%def name="foo()" filter="myfilter">
  then template.render(myfilter=some_callable)

- [feature] Added "--var name=value" option to the mako-render
  script, allows passing of kw to the template from
  the command line. [ticket:178]

- [feature] Added module_writer argument to Template,
  TemplateLookup, allows a callable to be passed which
  takes over the writing of the template's module source
  file, so that special environment-specific steps
  can be taken.  [ticket:181]

- [bug] The exception message in the html_error_template
  is now escaped with the HTML filter. [ticket:142]

- [bug] Added "white-space:pre" style to html_error_template()
  for code blocks so that indentation is preserved

- [bug] The "benchmark" example is now Python 3 compatible
  (even though several of those old template libs aren't
  available on Py3K, so YMMV) [ticket:175]

Revision 1.3 / (download) - annotate - [select for diffs], Wed Oct 31 11:19:32 2012 UTC (11 years, 1 month ago) by asau
Branch: MAIN
CVS Tags: pkgsrc-2012Q4-base, pkgsrc-2012Q4
Changes since 1.2: +1 -3 lines
Diff to previous 1.2 (colored)

Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Oct 12 13:09:48 2011 UTC (12 years, 2 months ago) by ryoon
Branch: MAIN
CVS Tags: pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4
Changes since 1.1: +4 -3 lines
Diff to previous 1.1 (colored)

Update to 0.5.0

- 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
  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.

- 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.

- Fixed the babel plugin to accommodate <%block>

- 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]

- A 20% speedup for a basic two-page
  inheritance setup rendering
  a table of escaped data
  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]

Revision / (download) - annotate - [select for diffs] (vendor branch), Fri Feb 11 08:24:02 2011 UTC (12 years, 10 months ago) by adam
Branch: TNF
CVS Tags: pkgsrc-base, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

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.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Feb 11 08:24:02 2011 UTC (12 years, 10 months ago) by adam
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

CVSweb <>