Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-Mako for openSUSE:Factory checked in at 2026-08-21 16:50:05 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Mako (Old) and /work/SRC/openSUSE:Factory/.python-Mako.new.1258 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Mako" Fri Aug 21 16:50:05 2026 rev:64 rq:1372849 version:1.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Mako/python-Mako.changes 2026-05-04 21:17:18.640066251 +0200 +++ /work/SRC/openSUSE:Factory/.python-Mako.new.1258/python-Mako.changes 2026-08-21 16:50:37.840213920 +0200 @@ -1,0 +2,49 @@ +Tue Aug 18 16:25:28 UTC 2026 - Nico Krapp <[email protected]> + +- Update to 1.4.1 + * [bug] [installation] 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. +- Update to 1.4.0 + * [changed] [examples] 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. + * [changed] [installation] Minimum MarkupSafe dependency version bumped from + 0.9.2 to 2.0. + * [changed] [tests] The test suite now runs via nox. The old tox.ini remains + however nox will be the only system that's maintained. + * [changed] [installation] 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. + * [changed] [installation] Minimum Python version is now 3.10. Mako 1.4.0 has + been tested up through Python 3.15.0b4. + * bug] [ext] 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. + * [bug] [exceptions] 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. + * [bug] [exceptions] A series of fixes involving syntax warnings and + exceptions found during template lexing / compilation +- run tests in multibuild flavor to not add new test dependencies to ring0 +- disable 3 tests failing with Pygments 2.21.0 + +------------------------------------------------------------------- Old: ---- mako-1.3.12.tar.gz New: ---- _multibuild mako-1.4.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Mako.spec ++++++ --- /var/tmp/diff_new_pack.oSRHzU/_old 2026-08-21 16:50:38.699244771 +0200 +++ /var/tmp/diff_new_pack.oSRHzU/_new 2026-08-21 16:50:38.703244915 +0200 @@ -16,6 +16,15 @@ # +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif + %if 0%{?suse_version} > 1500 %bcond_without libalternatives %else @@ -23,20 +32,25 @@ %endif %{?sle15_python_module_pythons} -Name: python-Mako -Version: 1.3.12 +Name: python-Mako%{psuffix} +Version: 1.4.1 Release: 0 Summary: A Python templating language License: MIT URL: https://www.makotemplates.org/ Source: https://files.pythonhosted.org/packages/source/m/mako/mako-%{version}.tar.gz -BuildRequires: %{python_module MarkupSafe >= 0.9.2} -BuildRequires: %{python_module base >= 3.8} -BuildRequires: %{python_module pbr} +BuildRequires: %{python_module MarkupSafe} +BuildRequires: %{python_module base >= 3.10} BuildRequires: %{python_module pip} -BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +%if %{with test} +BuildRequires: %{python_module Beaker} +BuildRequires: %{python_module Mako = %{version}} +BuildRequires: %{python_module dogpile.cache} +BuildRequires: %{python_module pygments} +BuildRequires: %{python_module pytest} +%endif BuildRequires: fdupes BuildRequires: python-rpm-macros >= 20210929 Requires: python-MarkupSafe >= 0.9.2 @@ -63,8 +77,9 @@ scoping semantics. %prep -%setup -q -n mako-%{version} +%autosetup -p1 -n mako-%{version} +%if ! %{with test} %build %pyproject_wheel @@ -72,9 +87,13 @@ %pyproject_install %python_clone -a %{buildroot}%{_bindir}/mako-render %python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif +%if %{with test} %check -%pytest +# failing with pygments 2.21.0 (gh#sqlalchemy/mako/issues/440) +%pytest -k "not (test_py_utf8_html_error_template or test_utf8_format_exceptions_pygments or test_custom_tback)" +%endif %pre # If libalternatives is used: Removing old update-alternatives entries. @@ -86,6 +105,7 @@ %postun %python_uninstall_alternative mako-render +%if ! %{with test} %files %{python_files} %license LICENSE %doc CHANGES README.rst @@ -93,4 +113,5 @@ %python_alternative %{_bindir}/mako-render %{python_sitelib}/mako/ %{python_sitelib}/[Mm]ako-%{version}.dist-info +%endif ++++++ _multibuild ++++++ <multibuild> <package>test</package> </multibuild> ++++++ mako-1.3.12.tar.gz -> mako-1.4.1.tar.gz ++++++ ++++ 6839 lines of diff (skipped)
