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: wiz
Date: Sun Aug 9 16:21:08 UTC 2026
Modified Files:
pkgsrc/devel/py-mako: Makefile distinfo
Log Message:
py-mako: update to 1.4.1.
1.4.1
bug
Fixed issue in the 1.4.0 packaging where the repository’s
internal tools/ directory was detected by setuptools package
discovery and installed as a top-level tools package into
site-packages, shadowing unrelated tools packages belonging to
other applications. Package discovery is now limited to the
mako package explicitly.
1.4.0
changed
The examples/bench folder has been removed as it used mostly
long-obsolete template engines. The examples/wsgi/run_wsgi.py
example has been updated to remove the use of the
removed-in-Python-3.13 cgi module, and to be runnable as a
module from the project root.
Minimum MarkupSafe dependency version bumped from 0.9.2 to 2.0.
The test suite now runs via nox. The old tox.ini remains however
nox will be the only system that’s maintained.
Project metadata has been migrated to PEP 621 pyproject.toml-based
configuration. setup.cfg remains only for the [mako_testing]
section used by Mako’s own test suite. The build requirements
now set the minimum setuptools version at 77.0.0 in order to
build Mako from source.
Minimum Python version is now 3.10. Mako 1.4.0 has been tested
up through Python 3.15.0b4.
bug
The minimum Lingua version supported by LinguaMakoExtractor is
now 4.16. The test suite had continued to pin Lingua below 4
long after the extractor itself was repaired to work with Lingua
4 in version 1.2.0, with the result that the plugin was no
longer covered by tests at all; the pinned version additionally
imports pkg_resources at startup, which is not present in
current setuptools releases and left the package unimportable.
Lingua 4.16 resolves entry points using importlib.metadata, so
no deprecated pkg_resources usage remains.
Fixed issue where formatting a traceback for an exception raised
inside a template compiled from a string would emit
DeprecationWarning: Module globals is missing a __spec__.loader
on Python 3.15. Modules for such templates were created without
a module spec, which Python’s linecache module consults for
every frame while a traceback is being built; the warning was
raised from within traceback formatting itself, disrupting the
error report for applications that configure warnings as errors.
These modules are now given a spec with a loader that provides
the generated module source, which additionally allows the
generated source lines to be displayed in tracebacks produced
by the standard library where previously no source was available.
A series of fixes involving syntax warnings and exceptions
found during template lexing / compilation:
Warnings raised while a template is compiled, which in
practice means SyntaxWarning, now report the filename and
line number of the template rather than a line within the
generated module, and are no longer reported twice. This
applies equally to templates compiled from a string, from
a file, and to a module file in a Template.module_directory,
as does a warning raised while the module level code of a
<%! %> block runs. Warnings raised while a template renders
continue to report the location within the generated module.
To do this, Mako replaces warnings.showwarning while a
template is compiled. As that name is global to the process,
an unrelated warning displayed by another thread during
that window may also be passed through Mako’s hook, which
shows any warning it does not recognize unchanged. (#430)
The SyntaxException raised for a syntax error in Python
code spanning several lines of a template, such as that
within a <% %> or <%! %> block, is now reported against
the line the error is on, rather than against the line on
which the block begins. The line reported for code that
occupies a single line, such as an expression or a control
line, is unchanged. (#245)
The SyntaxException raised for a tag or expression that is
never closed is now reported against the line the construct
begins on, rather than the point at which the search for
the closing token gave up, which for an unclosed construct
is the end of the template. The message of the exception
is amended to indicate that the position given is where
the unterminated construct begins. (#428)
To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 pkgsrc/devel/py-mako/Makefile
cvs rdiff -u -r1.34 -r1.35 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.41 pkgsrc/devel/py-mako/Makefile:1.42
--- pkgsrc/devel/py-mako/Makefile:1.41 Sun May 3 14:52:31 2026
+++ pkgsrc/devel/py-mako/Makefile Sun Aug 9 16:21:08 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.41 2026/05/03 14:52:31 wiz Exp $
+# $NetBSD: Makefile,v 1.42 2026/08/09 16:21:08 wiz Exp $
-DISTNAME= mako-1.3.12
+DISTNAME= mako-1.4.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=M/Mako/}
Index: pkgsrc/devel/py-mako/distinfo
diff -u pkgsrc/devel/py-mako/distinfo:1.34 pkgsrc/devel/py-mako/distinfo:1.35
--- pkgsrc/devel/py-mako/distinfo:1.34 Sun May 3 14:52:31 2026
+++ pkgsrc/devel/py-mako/distinfo Sun Aug 9 16:21:08 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.34 2026/05/03 14:52:31 wiz Exp $
+$NetBSD: distinfo,v 1.35 2026/08/09 16:21:08 wiz Exp $
-BLAKE2s (mako-1.3.12.tar.gz) = 20288a291eb02f42d2d04703caf18b462018d5c2320ce659bcbe404dd087a4e2
-SHA512 (mako-1.3.12.tar.gz) = 405de95c7656e00458015b84131e8b32d399c4d8f738af690ab34d21b2f57113d2736b7e91d862175bebf578191f62d49fae3533a65c2e469abc36cb1d95b886
-Size (mako-1.3.12.tar.gz) = 400219 bytes
+BLAKE2s (mako-1.4.1.tar.gz) = c3359b13a439353aaf263282b6ee421777a2573c22269139449619f10cf8d193
+SHA512 (mako-1.4.1.tar.gz) = 5129ff5335dc2b5d90941905b6b4de12bbba766a5ad91032a4adf362428e71e48e11998ead598d9f19140e7a1f4f84be91a02cfa47b7a8933f23a6c1ffda658e
+Size (mako-1.4.1.tar.gz) = 410165 bytes
Home |
Main Index |
Thread Index |
Old Index