Compare commits
10 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| cd4d34723f | |||
| 7277f3342b | |||
| fb8efb2254 | |||
| ca8ee688ae | |||
| 0c9a12d550 | |||
| 61a805917c | |||
| e1274c6c05 | |||
| 7e1a23cb61 | |||
| 0f9fb2854d | |||
| ea572c4957 |
BIN
jinja2-3.1.4.tar.gz
LFS
BIN
jinja2-3.1.4.tar.gz
LFS
Binary file not shown.
BIN
jinja2-3.1.6.tar.gz
LFS
Normal file
BIN
jinja2-3.1.6.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,3 +1,72 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 17 11:59:32 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Skip test_elif_deep on s390x arch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 10 08:46:26 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Update to 3.1.6
|
||||
* The ``|attr`` filter does not bypass the environment's attribute lookup,
|
||||
allowing the sandbox to apply its checks.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 27 09:16:40 UTC 2024 - Nico Krapp <nico.krapp@suse.com>
|
||||
|
||||
- Update to 3.1.5:
|
||||
* The sandboxed environment handles indirect calls to str.format,
|
||||
such as by passing a stored reference to a filter that calls
|
||||
its argument. GHSA-q2x7-8rv6-6q7h
|
||||
* Escape template name before formatting it into error messages,
|
||||
to avoid issues with names that contain f-string syntax. #1792,
|
||||
GHSA-gmj6-6f8f-6699
|
||||
* Sandbox does not allow clear and pop on known mutable sequence
|
||||
types. #2032
|
||||
* Calling sync render for an async template uses asyncio.run. #1952
|
||||
* Avoid unclosed auto_aiter warnings. #1960
|
||||
* Return an aclose-able AsyncGenerator from
|
||||
Template.generate_async. #1960
|
||||
* Avoid leaving root_render_func() unclosed in
|
||||
Template.generate_async. #1960
|
||||
* Avoid leaving async generators unclosed in blocks, includes and
|
||||
extends. #1960
|
||||
* The runtime uses the correct concat function for the current
|
||||
environment when calling block references. #1701
|
||||
* Make |unique async-aware, allowing it to be used after another
|
||||
async-aware filter. #1781
|
||||
* |int filter handles OverflowError from scientific notation. #1921
|
||||
* Make compiling deterministic for tuple unpacking in a {% set ... %}
|
||||
call. #2021
|
||||
* Fix dunder protocol (copy/pickle/etc) interaction with Undefined
|
||||
objects. #2025
|
||||
* Fix copy/pickle support for the internal missing object. #2027
|
||||
* Environment.overlay(enable_async) is applied correctly. #2061
|
||||
* The error message from FileSystemLoader includes the paths that
|
||||
were searched. #1661
|
||||
* PackageLoader shows a clearer error message when the package does
|
||||
not contain the templates directory. #1705
|
||||
* Improve annotations for methods returning copies. #1880
|
||||
* urlize does not add mailto: to values like @a@b. #1870
|
||||
* Tests decorated with @pass_context can be used with the
|
||||
|select filter. #1624
|
||||
* Using set for multiple assignment (a, b = 1, 2) does not fail when
|
||||
the target is a namespace attribute. #1413
|
||||
* Using set in all branches of {% if %}{% elif %}{% else %} blocks does
|
||||
not cause the variable to be considered initially undefined. #1253
|
||||
- drop fix-ftbfs-with-python313.patch, merged upstream
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 24 12:48:03 UTC 2024 - ecsos <ecsos@opensuse.org>
|
||||
|
||||
- Fix build error under Leap.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 30 10:44:01 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Cherry-pick patch from Fedora to fix FTBFS with Python 3.13
|
||||
* fix-ftbfs-with-python313.patch
|
||||
- Add new build dependency python-trio to BuildRequires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 6 18:10:40 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-Jinja2
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -23,7 +23,7 @@
|
||||
%endif
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-Jinja2
|
||||
Version: 3.1.4
|
||||
Version: 3.1.6
|
||||
Release: 0
|
||||
Summary: A template engine written in pure Python
|
||||
License: BSD-3-Clause
|
||||
@@ -34,6 +34,7 @@ BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module flit-core}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module trio}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: fdupes
|
||||
@@ -52,13 +53,18 @@ inspired non-XML syntax but supports inline expressions and an optional
|
||||
sandboxed environment.
|
||||
|
||||
%prep
|
||||
%setup -q -n jinja2-%{version}
|
||||
%autosetup -p1 -n jinja2-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
# Fix python-bytecode-inconsistent-mtime
|
||||
pushd %{buildroot}%{python_sitelib}
|
||||
find . -name '*.pyc' -exec rm -f '{}' ';'
|
||||
python%python_bin_suffix -m compileall *.py ';'
|
||||
popd
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
@@ -66,6 +72,10 @@ sandboxed environment.
|
||||
# Test broken with latest version of MarkupSafe (2.1.4)
|
||||
# gh#pallets/jinja#1930, gh#pallets/markupsafe#417
|
||||
donttest="test_striptags"
|
||||
# Test fails in s390x with maximum recursion depth exceeded during compilation
|
||||
%if "%{_arch}" == "s390x"
|
||||
donttest+=" or test_elif_deep"
|
||||
%endif
|
||||
%pytest -W ignore:'Support for nose tests is deprecated' -k "not ($donttest)"
|
||||
%endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user