10 Commits

Author SHA256 Message Date
cd4d34723f Accepting request 1253771 from devel:languages:python
- Skip test_elif_deep on s390x arch

OBS-URL: https://build.opensuse.org/request/show/1253771
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=58
2025-03-18 16:40:14 +00:00
7277f3342b - Skip test_elif_deep on s390x arch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=120
2025-03-17 12:10:54 +00:00
fb8efb2254 Accepting request 1251789 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1251789
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=57
2025-03-11 19:44:00 +00:00
ca8ee688ae Accepting request 1251677 from home:glaubitz:branches:devel:languages:python
- Update to 3.1.6
  * The ``|attr`` filter does not bypass the environment's attribute lookup,
    allowing the sandbox to apply its checks.

OBS-URL: https://build.opensuse.org/request/show/1251677
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=118
2025-03-10 12:18:59 +00:00
0c9a12d550 Accepting request 1233561 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1233561
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=56
2024-12-30 11:50:36 +00:00
61a805917c Accepting request 1233506 from home:nkrapp:branches:devel:languages:python
- Update to 3.1.5
- drop fix-ftbfs-with-python313.patch, merged upstream

OBS-URL: https://build.opensuse.org/request/show/1233506
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=116
2024-12-27 13:13:52 +00:00
e1274c6c05 Accepting request 1202972 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1202972
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=55
2024-09-25 19:52:57 +00:00
7e1a23cb61 Accepting request 1202964 from home:ecsos:python
- Fix build error under Leap.

OBS-URL: https://build.opensuse.org/request/show/1202964
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=114
2024-09-24 13:02:08 +00:00
0f9fb2854d Accepting request 1190527 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1190527
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Jinja2?expand=0&rev=54
2024-08-01 20:03:17 +00:00
ea572c4957 Accepting request 1190444 from home:glaubitz:branches:devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1190444
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Jinja2?expand=0&rev=112
2024-07-30 20:05:28 +00:00
4 changed files with 85 additions and 6 deletions

Binary file not shown.

BIN
jinja2-3.1.6.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -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>

View File

@@ -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