pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-mako
Module Name: pkgsrc
Committed By: adam
Date: Tue Oct 25 11:18:04 UTC 2022
Modified Files:
pkgsrc/devel/py-mako: Makefile PLIST distinfo
Log Message:
py-mako: updated to 1.2.3
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’t 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.
1.2.2
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.
1.2.1
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.
1.2.0
Corrected “universal 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’s cStringIO, Mako now uses its own internal FastEncodingBuffer exclusively.
Removed disable_unicode flag, that’s 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.
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 pkgsrc/devel/py-mako/Makefile
cvs rdiff -u -r1.7 -r1.8 pkgsrc/devel/py-mako/PLIST
cvs rdiff -u -r1.21 -r1.22 pkgsrc/devel/py-mako/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-mako/Makefile
diff -u pkgsrc/devel/py-mako/Makefile:1.26 pkgsrc/devel/py-mako/Makefile:1.27
--- pkgsrc/devel/py-mako/Makefile:1.26 Wed Jan 5 15:41:06 2022
+++ pkgsrc/devel/py-mako/Makefile Tue Oct 25 11:18:04 2022
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.26 2022/01/05 15:41:06 wiz Exp $
+# $NetBSD: Makefile,v 1.27 2022/10/25 11:18:04 adam Exp $
-DISTNAME= Mako-1.1.6
+DISTNAME= Mako-1.2.3
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
-PKGREVISION= 2
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=M/Mako/}
@@ -18,6 +17,13 @@ USE_LANGUAGES= # none
USE_PKG_RESOURCES= yes
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} == 37
+DEPENDS+= ${PYPKGPREFIX}-importlib-metadata-[0-9]*:../../devel/py-importlib-metadata
+.endif
+
PYSETUPTESTTARGET= pytest
post-install:
Index: pkgsrc/devel/py-mako/PLIST
diff -u pkgsrc/devel/py-mako/PLIST:1.7 pkgsrc/devel/py-mako/PLIST:1.8
--- pkgsrc/devel/py-mako/PLIST:1.7 Thu Mar 21 14:18:07 2019
+++ pkgsrc/devel/py-mako/PLIST Tue Oct 25 11:18:04 2022
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.7 2019/03/21 14:18:07 adam Exp $
+@comment $NetBSD: PLIST,v 1.8 2022/10/25 11:18:04 adam Exp $
bin/mako-render-${PYVERSSUFFIX}
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
@@ -82,6 +82,27 @@ ${PYSITELIB}/mako/runtime.pyo
${PYSITELIB}/mako/template.py
${PYSITELIB}/mako/template.pyc
${PYSITELIB}/mako/template.pyo
+${PYSITELIB}/mako/testing/__init__.py
+${PYSITELIB}/mako/testing/__init__.pyc
+${PYSITELIB}/mako/testing/__init__.pyo
+${PYSITELIB}/mako/testing/_config.py
+${PYSITELIB}/mako/testing/_config.pyc
+${PYSITELIB}/mako/testing/_config.pyo
+${PYSITELIB}/mako/testing/assertions.py
+${PYSITELIB}/mako/testing/assertions.pyc
+${PYSITELIB}/mako/testing/assertions.pyo
+${PYSITELIB}/mako/testing/config.py
+${PYSITELIB}/mako/testing/config.pyc
+${PYSITELIB}/mako/testing/config.pyo
+${PYSITELIB}/mako/testing/exclusions.py
+${PYSITELIB}/mako/testing/exclusions.pyc
+${PYSITELIB}/mako/testing/exclusions.pyo
+${PYSITELIB}/mako/testing/fixtures.py
+${PYSITELIB}/mako/testing/fixtures.pyc
+${PYSITELIB}/mako/testing/fixtures.pyo
+${PYSITELIB}/mako/testing/helpers.py
+${PYSITELIB}/mako/testing/helpers.pyc
+${PYSITELIB}/mako/testing/helpers.pyo
${PYSITELIB}/mako/util.py
${PYSITELIB}/mako/util.pyc
${PYSITELIB}/mako/util.pyo
Index: pkgsrc/devel/py-mako/distinfo
diff -u pkgsrc/devel/py-mako/distinfo:1.21 pkgsrc/devel/py-mako/distinfo:1.22
--- pkgsrc/devel/py-mako/distinfo:1.21 Wed Nov 17 17:03:48 2021
+++ pkgsrc/devel/py-mako/distinfo Tue Oct 25 11:18:04 2022
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.21 2021/11/17 17:03:48 adam Exp $
+$NetBSD: distinfo,v 1.22 2022/10/25 11:18:04 adam Exp $
-BLAKE2s (Mako-1.1.6.tar.gz) = be6dbbf922a73c32019471077b04dea580733ecac0f1e89a61c659c5264f44d8
-SHA512 (Mako-1.1.6.tar.gz) = e87d883d7a549a902bb2e16d20306ccd3dd7b3bf855dfdaff20477dd182a782a5cecbdc447e4b1607f190a7b0febcca001333137f7cac6ffa674824c2a2fd1bb
-Size (Mako-1.1.6.tar.gz) = 495132 bytes
+BLAKE2s (Mako-1.2.3.tar.gz) = 368dd8c0d691d7eaa001a8d99c671440f9ce16b34936f6765026799f22209617
+SHA512 (Mako-1.2.3.tar.gz) = 904b12826b3fc74dec069e1fd4afb67a8a1962d72962c4ee8c9360deb728b8deb40c21e7bf831122ad6b095172a8de015222a97f47675d48d595c8eabd98a14b
+Size (Mako-1.2.3.tar.gz) = 491336 bytes
Home |
Main Index |
Thread Index |
Old Index