pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/py-jinja2 Version 2.8



details:   https://anonhg.NetBSD.org/pkgsrc/rev/89427656be43
branches:  trunk
changeset: 355879:89427656be43
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Dec 15 10:44:33 2016 +0000

description:
Version 2.8
-----------
(codename Replacement, released on July 26th 2015)

- Added `target` parameter to urlize function.
- Added support for `followsymlinks` to the file system loader.
- The truncate filter now counts the length.
- Added equalto filter that helps with select filters.
- Changed cache keys to use absolute file names if available
  instead of load names.
- Fixed loop length calculation for some iterators.
- Changed how Jinja2 enforces strings to be native strings in
  Python 2 to work when people break their default encoding.
- Added :func:`make_logging_undefined` which returns an undefined
  object that logs failures into a logger.
- If unmarshalling of cached data fails the template will be
  reloaded now.
- Implemented a block ``set`` tag.
- Default cache size was incrased to 400 from a low 50.
- Fixed ``is number`` test to accept long integers in all Python versions.
- Changed ``is number`` to accept Decimal as a number.
- Added a check for default arguments followed by non-default arguments. This
  change makes ``{% macro m(x, y=1, z) %}...{% endmacro %}`` a syntax error. The
  previous behavior for this code was broken anyway (resulting in the default
  value being applied to `y`).
- Add ability to use custom subclasses of ``jinja2.compiler.CodeGenerator`` and
  ``jinja2.runtime.Context`` by adding two new attributes to the environment
  (`code_generator_class` and `context_class`) (pull request ``404``).
- added support for context/environment/evalctx decorator functions on
  the finalize callback of the environment.
- escape query strings for urlencode properly.  Previously slashes were not
  escaped in that place.
- Add 'base' parameter to 'int' filter.

diffstat:

 textproc/py-jinja2/Makefile |   4 +-
 textproc/py-jinja2/PLIST    |  57 +--------------------------------------------
 textproc/py-jinja2/distinfo |  10 +++---
 3 files changed, 8 insertions(+), 63 deletions(-)

diffs (98 lines):

diff -r 768982078a8d -r 89427656be43 textproc/py-jinja2/Makefile
--- a/textproc/py-jinja2/Makefile       Thu Dec 15 10:42:30 2016 +0000
+++ b/textproc/py-jinja2/Makefile       Thu Dec 15 10:44:33 2016 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.18 2016/06/08 17:43:40 wiz Exp $
+# $NetBSD: Makefile,v 1.19 2016/12/15 10:44:33 adam Exp $
 
-DISTNAME=      Jinja2-2.7.3
+DISTNAME=      Jinja2-2.8
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:tl}
 CATEGORIES=    textproc python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=J/Jinja2/}
diff -r 768982078a8d -r 89427656be43 textproc/py-jinja2/PLIST
--- a/textproc/py-jinja2/PLIST  Thu Dec 15 10:42:30 2016 +0000
+++ b/textproc/py-jinja2/PLIST  Thu Dec 15 10:44:33 2016 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2013/08/31 22:33:35 adam Exp $
+@comment $NetBSD: PLIST,v 1.6 2016/12/15 10:44:33 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -69,61 +69,6 @@
 ${PYSITELIB}/jinja2/tests.py
 ${PYSITELIB}/jinja2/tests.pyc
 ${PYSITELIB}/jinja2/tests.pyo
-${PYSITELIB}/jinja2/testsuite/__init__.py
-${PYSITELIB}/jinja2/testsuite/__init__.pyc
-${PYSITELIB}/jinja2/testsuite/__init__.pyo
-${PYSITELIB}/jinja2/testsuite/api.py
-${PYSITELIB}/jinja2/testsuite/api.pyc
-${PYSITELIB}/jinja2/testsuite/api.pyo
-${PYSITELIB}/jinja2/testsuite/bytecode_cache.py
-${PYSITELIB}/jinja2/testsuite/bytecode_cache.pyc
-${PYSITELIB}/jinja2/testsuite/bytecode_cache.pyo
-${PYSITELIB}/jinja2/testsuite/core_tags.py
-${PYSITELIB}/jinja2/testsuite/core_tags.pyc
-${PYSITELIB}/jinja2/testsuite/core_tags.pyo
-${PYSITELIB}/jinja2/testsuite/debug.py
-${PYSITELIB}/jinja2/testsuite/debug.pyc
-${PYSITELIB}/jinja2/testsuite/debug.pyo
-${PYSITELIB}/jinja2/testsuite/doctests.py
-${PYSITELIB}/jinja2/testsuite/doctests.pyc
-${PYSITELIB}/jinja2/testsuite/doctests.pyo
-${PYSITELIB}/jinja2/testsuite/ext.py
-${PYSITELIB}/jinja2/testsuite/ext.pyc
-${PYSITELIB}/jinja2/testsuite/ext.pyo
-${PYSITELIB}/jinja2/testsuite/filters.py
-${PYSITELIB}/jinja2/testsuite/filters.pyc
-${PYSITELIB}/jinja2/testsuite/filters.pyo
-${PYSITELIB}/jinja2/testsuite/imports.py
-${PYSITELIB}/jinja2/testsuite/imports.pyc
-${PYSITELIB}/jinja2/testsuite/imports.pyo
-${PYSITELIB}/jinja2/testsuite/inheritance.py
-${PYSITELIB}/jinja2/testsuite/inheritance.pyc
-${PYSITELIB}/jinja2/testsuite/inheritance.pyo
-${PYSITELIB}/jinja2/testsuite/lexnparse.py
-${PYSITELIB}/jinja2/testsuite/lexnparse.pyc
-${PYSITELIB}/jinja2/testsuite/lexnparse.pyo
-${PYSITELIB}/jinja2/testsuite/loader.py
-${PYSITELIB}/jinja2/testsuite/loader.pyc
-${PYSITELIB}/jinja2/testsuite/loader.pyo
-${PYSITELIB}/jinja2/testsuite/regression.py
-${PYSITELIB}/jinja2/testsuite/regression.pyc
-${PYSITELIB}/jinja2/testsuite/regression.pyo
-${PYSITELIB}/jinja2/testsuite/res/__init__.py
-${PYSITELIB}/jinja2/testsuite/res/__init__.pyc
-${PYSITELIB}/jinja2/testsuite/res/__init__.pyo
-${PYSITELIB}/jinja2/testsuite/res/templates/broken.html
-${PYSITELIB}/jinja2/testsuite/res/templates/foo/test.html
-${PYSITELIB}/jinja2/testsuite/res/templates/syntaxerror.html
-${PYSITELIB}/jinja2/testsuite/res/templates/test.html
-${PYSITELIB}/jinja2/testsuite/security.py
-${PYSITELIB}/jinja2/testsuite/security.pyc
-${PYSITELIB}/jinja2/testsuite/security.pyo
-${PYSITELIB}/jinja2/testsuite/tests.py
-${PYSITELIB}/jinja2/testsuite/tests.pyc
-${PYSITELIB}/jinja2/testsuite/tests.pyo
-${PYSITELIB}/jinja2/testsuite/utils.py
-${PYSITELIB}/jinja2/testsuite/utils.pyc
-${PYSITELIB}/jinja2/testsuite/utils.pyo
 ${PYSITELIB}/jinja2/utils.py
 ${PYSITELIB}/jinja2/utils.pyc
 ${PYSITELIB}/jinja2/utils.pyo
diff -r 768982078a8d -r 89427656be43 textproc/py-jinja2/distinfo
--- a/textproc/py-jinja2/distinfo       Thu Dec 15 10:42:30 2016 +0000
+++ b/textproc/py-jinja2/distinfo       Thu Dec 15 10:44:33 2016 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.10 2015/11/04 02:00:03 agc Exp $
+$NetBSD: distinfo,v 1.11 2016/12/15 10:44:33 adam Exp $
 
-SHA1 (Jinja2-2.7.3.tar.gz) = 25ab3881f0c1adfcf79053b58de829c5ae65d3ac
-RMD160 (Jinja2-2.7.3.tar.gz) = e84a4c27dfb4cdd58c4f9625fcc48b0851a2b5c9
-SHA512 (Jinja2-2.7.3.tar.gz) = 2810db2b52fe800e2a4a47ea41a07f997b1647a2b7ad05fe564f9d554d6a402283c84c4e2491e5dad8d22acd83d3ca420f0983ed2effc732f6d79600a846071b
-Size (Jinja2-2.7.3.tar.gz) = 378470 bytes
+SHA1 (Jinja2-2.8.tar.gz) = 4a33c1a0fd585eba2507e8c274a9cd113b1d13ab
+RMD160 (Jinja2-2.8.tar.gz) = 1ec00ab41df1619d3cf3a7dde5eb4166f5ee5b36
+SHA512 (Jinja2-2.8.tar.gz) = 2e80d6d9ad10dafcce1e6dd24493f5dffc43a17f71a30a650415638e12d3a3891738ebacc569701129214026d062d91a2b10e4f7a2c7b85d801dde26ded1bebb
+Size (Jinja2-2.8.tar.gz) = 357055 bytes



Home | Main Index | Thread Index | Old Index