Received: by mail.netbsd.org (Postfix, from userid 605) id 46F2F84D6C; Thu, 9 Nov 2017 07:52:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id C488084D50 for ; Thu, 9 Nov 2017 07:52:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id RnA5QKXP9gC4 for ; Thu, 9 Nov 2017 07:52:18 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id E95CF84C86 for ; Thu, 9 Nov 2017 07:52:17 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id DC7F3FBDE; Thu, 9 Nov 2017 07:52:17 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_1510213937107210" MIME-Version: 1.0 Date: Thu, 9 Nov 2017 07:52:17 +0000 From: "Adam Ciarcinski" Subject: CVS commit: pkgsrc/textproc/py-jinja2 To: pkgsrc-changes@NetBSD.org Reply-To: adam@netbsd.org X-Mailer: log_accum Message-Id: <20171109075217.DC7F3FBDE@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_1510213937107210 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: adam Date: Thu Nov 9 07:52:17 UTC 2017 Modified Files: pkgsrc/textproc/py-jinja2: Makefile PLIST distinfo Log Message: py-jinja2: updated to 2.10 Version 2.10: - Added a new extension node called OverlayScope which can be used to create an unoptimized scope that will look up all variables from a derived context. - Added an in test that works like the in operator. This can be used in combination with reject and select. - Added previtem and nextitem to loop contexts, providing access to the previous/next item in the loop. If such an item does not exist, the value is undefined. - Added changed(*values) to loop contexts, providing an easy way of checking whether a value has changed since the last iteration (or rather since the last call of the method) - Added a namespace function that creates a special object which allows attribute assignment using the set tag. This can be used to carry data across scopes, e.g. from a loop body to code that comes after the loop. - Added a trimmed modifier to {% trans %} to strip linebreaks and surrounding whitespace. Also added a new policy to enable this for all trans blocks. - The random filter is no longer incorrectly constant folded and will produce a new random choice each time the template is rendered. - Added a unique filter. - Added min and max filters. - Added tests for all comparison operators: eq, ne, lt, le, gt, ge. - import statement cannot end with a trailing comma. - indent filter will not indent blank lines by default. - Add reverse argument for dictsort filter. - Add a NativeEnvironment that renders templates to native Python types instead of strings. - Added filter support to the block set tag. - tojson filter marks output as safe to match documented behavior. - Resolved a bug where getting debug locals for tracebacks could modify template context. - Fixed a bug where having many {% elif ... %} blocks resulted in a "too many levels of indentation" error. These blocks now compile to native elif ..: instead of else: if ..: To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 pkgsrc/textproc/py-jinja2/Makefile cvs rdiff -u -r1.9 -r1.10 pkgsrc/textproc/py-jinja2/PLIST cvs rdiff -u -r1.12 -r1.13 pkgsrc/textproc/py-jinja2/distinfo Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_1510213937107210 Content-Disposition: inline Content-Length: 3497 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/textproc/py-jinja2/Makefile diff -u pkgsrc/textproc/py-jinja2/Makefile:1.22 pkgsrc/textproc/py-jinja2/Makefile:1.23 --- pkgsrc/textproc/py-jinja2/Makefile:1.22 Thu May 4 20:23:31 2017 +++ pkgsrc/textproc/py-jinja2/Makefile Thu Nov 9 07:52:17 2017 @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.22 2017/05/04 20:23:31 adam Exp $ +# $NetBSD: Makefile,v 1.23 2017/11/09 07:52:17 adam Exp $ -DISTNAME= Jinja2-2.9.6 +DISTNAME= Jinja2-2.10 PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl} CATEGORIES= textproc python MASTER_SITES= ${MASTER_SITE_PYPI:=J/Jinja2/} @@ -10,9 +10,10 @@ HOMEPAGE= http://jinja.pocoo.org/ COMMENT= Small but fast and easy to use stand-alone template engine LICENSE= modified-bsd -USE_LANGUAGES= # none +DEPENDS+= ${PYPKGPREFIX}-babel>=0.8:../../devel/py-babel +DEPENDS+= ${PYPKGPREFIX}-markupsafe>=0.23:../../textproc/py-markupsafe -DEPENDS+= ${PYPKGPREFIX}-markupsafe-[0-9]*:../../textproc/py-markupsafe +USE_LANGUAGES= # none SUBST_CLASSES+= unicode SUBST_FILES.unicode= jinja2/*.py Index: pkgsrc/textproc/py-jinja2/PLIST diff -u pkgsrc/textproc/py-jinja2/PLIST:1.9 pkgsrc/textproc/py-jinja2/PLIST:1.10 --- pkgsrc/textproc/py-jinja2/PLIST:1.9 Thu May 4 20:23:31 2017 +++ pkgsrc/textproc/py-jinja2/PLIST Thu Nov 9 07:52:17 2017 @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.9 2017/05/04 20:23:31 adam Exp $ +@comment $NetBSD: PLIST,v 1.10 2017/11/09 07:52:17 adam Exp $ ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt @@ -12,9 +12,9 @@ ${PYSITELIB}/jinja2/__init__.pyo ${PYSITELIB}/jinja2/_compat.py ${PYSITELIB}/jinja2/_compat.pyc ${PYSITELIB}/jinja2/_compat.pyo -${PYSITELIB}/jinja2/_stringdefs.py -${PYSITELIB}/jinja2/_stringdefs.pyc -${PYSITELIB}/jinja2/_stringdefs.pyo +${PYSITELIB}/jinja2/_identifier.py +${PYSITELIB}/jinja2/_identifier.pyc +${PYSITELIB}/jinja2/_identifier.pyo ${PYSITELIB}/jinja2/asyncfilters.py ${PLIST.async}${PYSITELIB}/jinja2/asyncfilters.pyc ${PLIST.async}${PYSITELIB}/jinja2/asyncfilters.pyo @@ -60,6 +60,9 @@ ${PYSITELIB}/jinja2/loaders.pyo ${PYSITELIB}/jinja2/meta.py ${PYSITELIB}/jinja2/meta.pyc ${PYSITELIB}/jinja2/meta.pyo +${PYSITELIB}/jinja2/nativetypes.py +${PYSITELIB}/jinja2/nativetypes.pyc +${PYSITELIB}/jinja2/nativetypes.pyo ${PYSITELIB}/jinja2/nodes.py ${PYSITELIB}/jinja2/nodes.pyc ${PYSITELIB}/jinja2/nodes.pyo Index: pkgsrc/textproc/py-jinja2/distinfo diff -u pkgsrc/textproc/py-jinja2/distinfo:1.12 pkgsrc/textproc/py-jinja2/distinfo:1.13 --- pkgsrc/textproc/py-jinja2/distinfo:1.12 Thu May 4 18:11:09 2017 +++ pkgsrc/textproc/py-jinja2/distinfo Thu Nov 9 07:52:17 2017 @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.12 2017/05/04 18:11:09 adam Exp $ +$NetBSD: distinfo,v 1.13 2017/11/09 07:52:17 adam Exp $ -SHA1 (Jinja2-2.9.6.tar.gz) = 61b17399d098c0c110618fd4da7d33bd7031dd5e -RMD160 (Jinja2-2.9.6.tar.gz) = 395f1804017144ac858cda98bd7f3a9f7dc83d14 -SHA512 (Jinja2-2.9.6.tar.gz) = b41b4e83bfe1ed2c5170e78bc6fb1ac3abb73df1b360c28e8011d430c3369efb49b923ede1f32c84c47c4bfa8a030ed24fc86700f2a8f777d54ee09c0fdee3c2 -Size (Jinja2-2.9.6.tar.gz) = 437659 bytes +SHA1 (Jinja2-2.10.tar.gz) = 34b69e5caab12ee37b9df69df9018776c008b7b8 +RMD160 (Jinja2-2.10.tar.gz) = 552a79aaea2fa3e5b5211f89260fc8416cc28ce4 +SHA512 (Jinja2-2.10.tar.gz) = 0ea7371be67ffcf19e46dfd06523a45a0806e678a407d54f5f2f3e573982f0959cf82ec5d07b203670309928a62ef71109701ab16547a9bba2ebcdc178cb67f2 +Size (Jinja2-2.10.tar.gz) = 261631 bytes --_----------=_1510213937107210--