Dear maintainer, I've prepared an NMU for pyramid-jinja2 (versioned as 2.7+dfsg-1.3) and uploaded it to DELAYED/1. Please feel free to tell me if I should cancel it.
cu Adrian
diff -Nru pyramid-jinja2-2.7+dfsg/debian/changelog pyramid-jinja2-2.7+dfsg/debian/changelog --- pyramid-jinja2-2.7+dfsg/debian/changelog 2021-02-06 10:10:55.000000000 +0200 +++ pyramid-jinja2-2.7+dfsg/debian/changelog 2023-05-22 22:50:17.000000000 +0300 @@ -1,3 +1,10 @@ +pyramid-jinja2 (2.7+dfsg-1.3) unstable; urgency=medium + + * Non-maintainer upload. + * Add upstream fix for latest jinja2. (Closes: #1033432) + + -- Adrian Bunk <[email protected]> Mon, 22 May 2023 22:50:17 +0300 + pyramid-jinja2 (2.7+dfsg-1.2) unstable; urgency=medium * Non-maintainer upload. diff -Nru pyramid-jinja2-2.7+dfsg/debian/patches/0001-jinja2.contextfilter-has-been-renamed-to-pass_contex.patch pyramid-jinja2-2.7+dfsg/debian/patches/0001-jinja2.contextfilter-has-been-renamed-to-pass_contex.patch --- pyramid-jinja2-2.7+dfsg/debian/patches/0001-jinja2.contextfilter-has-been-renamed-to-pass_contex.patch 1970-01-01 02:00:00.000000000 +0200 +++ pyramid-jinja2-2.7+dfsg/debian/patches/0001-jinja2.contextfilter-has-been-renamed-to-pass_contex.patch 2023-05-22 22:49:41.000000000 +0300 @@ -0,0 +1,88 @@ +From 8093938422ac0f8af6fc8fe028f9613e2e41117c Mon Sep 17 00:00:00 2001 +From: Olivier Le Moign <[email protected]> +Date: Wed, 12 May 2021 15:23:20 +0200 +Subject: jinja2.contextfilter has been renamed to pass_context + +--- + pyramid_jinja2/filters.py | 16 ++++++++-------- + 1 file changed, 8 insertions(+), 8 deletions(-) + +diff --git a/pyramid_jinja2/filters.py b/pyramid_jinja2/filters.py +index ebae93d..69dbbf1 100644 +--- a/pyramid_jinja2/filters.py ++++ b/pyramid_jinja2/filters.py +@@ -1,7 +1,7 @@ + from pyramid.url import resource_url, route_url, static_url + from pyramid.url import route_path, static_path + from pyramid.threadlocal import get_current_request +-from jinja2 import contextfilter ++from jinja2 import pass_context + + + __all__ = [ +@@ -14,7 +14,7 @@ __all__ = [ + ] + + +-@contextfilter ++@pass_context + def resource_url_filter(ctx, model, *elements, **kw): + """A filter from ``model`` to a string representing the absolute URL. + This filter calls :py:func:`pyramid.url.resource_url`. +@@ -36,7 +36,7 @@ def resource_url_filter(ctx, model, *elements, **kw): + return resource_url(model, request, *elements, **kw) + + +-@contextfilter ++@pass_context + def model_url_filter(ctx, model, *elements, **kw): + """A filter from ``model`` to a string representing the absolute URL. + This filter calls :py:func:`pyramid.url.resource_url`. +@@ -51,7 +51,7 @@ def model_url_filter(ctx, model, *elements, **kw): + return resource_url(model, request, *elements, **kw) + + +-@contextfilter ++@pass_context + def model_path_filter(ctx, model, *elements, **kw): + """A filter from ``model`` to a string representing the relative URL. + This filter calls :py:meth:`pyramid.request.Request.resource_path`. +@@ -60,7 +60,7 @@ def model_path_filter(ctx, model, *elements, **kw): + return request.resource_path(model, *elements, **kw) + + +-@contextfilter ++@pass_context + def route_url_filter(ctx, route_name, *elements, **kw): + """A filter from ``route_name`` to a string representing the absolute URL. + This filter calls :py:func:`pyramid.url.route_url`. +@@ -76,7 +76,7 @@ def route_url_filter(ctx, route_name, *elements, **kw): + return route_url(route_name, request, *elements, **kw) + + +-@contextfilter ++@pass_context + def route_path_filter(ctx, route_name, *elements, **kw): + """A filter from ``route_name`` to a string representing the relative URL. + This filter calls :py:func:`pyramid.url.route_path`. +@@ -85,7 +85,7 @@ def route_path_filter(ctx, route_name, *elements, **kw): + return route_path(route_name, request, *elements, **kw) + + +-@contextfilter ++@pass_context + def static_url_filter(ctx, path, **kw): + """A filter from ``path`` to a string representing the absolute URL. + This filter calls :py:func:`pyramid.url.static_url`. +@@ -99,7 +99,7 @@ def static_url_filter(ctx, path, **kw): + return static_url(path, request, **kw) + + +-@contextfilter ++@pass_context + def static_path_filter(ctx, path, **kw): + """A filter from ``path`` to a string representing the relative URL. + This filter calls :py:func:`pyramid.url.static_path`. +-- +2.30.2 + diff -Nru pyramid-jinja2-2.7+dfsg/debian/patches/series pyramid-jinja2-2.7+dfsg/debian/patches/series --- pyramid-jinja2-2.7+dfsg/debian/patches/series 1970-01-01 02:00:00.000000000 +0200 +++ pyramid-jinja2-2.7+dfsg/debian/patches/series 2023-05-22 22:50:10.000000000 +0300 @@ -0,0 +1 @@ +0001-jinja2.contextfilter-has-been-renamed-to-pass_contex.patch

