Compare commits

...
Sign in to create a new pull request.

32 commits

Author SHA1 Message Date
Python Maint
73b8db5fe8 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 13:31:55 +02:00
Python Maint
da96094071 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 13:58:35 +02:00
Fedora Release Engineering
3fcf5e155d Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 08:27:59 +00:00
Python Maint
159d32e143 Rebuilt for Python 3.14 2025-06-03 15:55:25 +02:00
Python Maint
811a737fb9 Bootstrap for Python 3.14 2025-06-02 23:22:52 +02:00
Lumir Balhar
9a3178e4ba Skip flaky test_elif_deep
https://github.com/pallets/jinja/issues/2079
2025-03-27 12:32:17 +01:00
Thomas Moschny
ab04c1a35a Update to 3.1.6. 2025-03-09 17:47:32 +01:00
Fedora Release Engineering
e78f795e7e Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 15:24:14 +00:00
Miro Hrončok
48d55f4742 Update to 3.1.5
- Security fix for CVE-2024-56201
- Fixes: rhzb#2333688
- Fixes: rhzb#2336377
2025-01-08 11:23:11 +01:00
Lukas Zachar
46fea4b890 Add tmt smoke test + plan
Cherry-picked from c9s.
Commit hash: 53acc26463e0248c91146bd2f6065d53fb845580
2024-07-25 11:35:07 +02:00
Fedora Release Engineering
5d9a9d69be Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 12:31:17 +00:00
Python Maint
da0819f188 Rebuilt for Python 3.13 2024-06-08 08:13:52 +02:00
Python Maint
566054026e Bootstrap for Python 3.13 2024-06-07 13:21:17 +02:00
Miro Hrončok
0aec2152b2 Make the build dependency on trio optional 2024-05-26 23:41:55 +02:00
Miro Hrončok
e84a72433e Python 3.13 fixes
- Fixes: rhzb#2245265
2024-05-23 15:32:31 +02:00
Lumir Balhar
18d1a5374f Update to 3.1.4 (rhbz#2279211) 2024-05-07 13:38:16 +02:00
Tim Landscheidt
4d9e43b39a Remove outdated sed to rename test teardown methods
The issue was fixed in 3.1.3 via
3fadee01b7

The sed turns teardown_method into teardown_method_method.
2024-03-19 00:15:42 +01:00
Fedora Release Engineering
9aeba43e96 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 05:41:08 +00:00
Fedora Release Engineering
0a28ad92e7 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 02:45:08 +00:00
Michel Lind
512d58d521
Update to 3.1.3 to fix CVE-2024-22195
Signed-off-by: Michel Lind <salimma@fedoraproject.org>
2024-01-11 10:57:45 -06:00
Karolina Surma
7bb65e9cfd Declare the license as an SPDX expression 2023-08-08 15:07:41 +02:00
Yaakov Selkowitz
fc015d1bcf Disable docs in flatpak builds
As of F39, flatpak builds will not be able to manually override macros.
2023-08-01 02:55:56 -04:00
Fedora Release Engineering
05480f2acc Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 10:44:21 +00:00
Python Maint
d228954a40 Rebuilt for Python 3.12 2023-06-16 08:18:06 +02:00
Python Maint
3c58a5d519 Bootstrap for Python 3.12 2023-06-14 00:03:28 +02:00
Yaakov Selkowitz
6eece4eaca Disable docs by default in RHEL builds
RHEL does not include some of the doc dependencies.  This is based on c9s:

8e7e566ba7
2023-05-19 13:30:43 -04:00
Sandro Mani
200fff0803 Update to 3.1.2 2023-05-02 00:21:00 +02:00
Fedora Release Engineering
ba5d786db5 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 14:08:29 +00:00
Lumir Balhar
7387df56e9 Fix compatibility with pytest 7.2.0 2022-11-14 09:11:39 +01:00
Fedora Release Engineering
e059429ee9 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 19:29:03 +00:00
Python Maint
86d162e6a1 Rebuilt for Python 3.11 2022-06-13 18:40:52 +02:00
Python Maint
5147748d39 Bootstrap for Python 3.11 2022-06-13 17:36:16 +02:00
8 changed files with 128 additions and 46 deletions

1
.fmf/version Normal file
View file

@ -0,0 +1 @@
1

1
.gitignore vendored
View file

@ -1 +1,2 @@
/Jinja2-*.tar.gz
/jinja2-*.tar.gz

View file

@ -1,33 +0,0 @@
From e32c985af3a419ae2ea0853ad8084a12ab62745b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
Date: Tue, 2 Nov 2021 16:47:28 +0100
Subject: [PATCH] Tests: Make "Traceback did not match" an actual f-string
Otherwise the failure looks like this:
> assert (
m is not None
), "Traceback did not match:\n\n{''.join(tb)}\nexpected:\n{expected_tb}"
E AssertionError: Traceback did not match:
E
E {''.join(tb)}
E expected:
E {expected_tb}
E assert None is not None
---
tests/test_debug.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_debug.py b/tests/test_debug.py
index 0aec78ae4..c639bbc29 100644
--- a/tests/test_debug.py
+++ b/tests/test_debug.py
@@ -25,7 +25,7 @@ def assert_traceback_matches(self, callback, expected_tb):
m = re.search(expected_tb.strip(), "".join(tb))
assert (
m is not None
- ), "Traceback did not match:\n\n{''.join(tb)}\nexpected:\n{expected_tb}"
+ ), f"Traceback did not match:\n\n{''.join(tb)}\nexpected:\n{expected_tb}"
def test_runtime_error(self, fs_env):
def test():

4
plans.fmf Normal file
View file

@ -0,0 +1,4 @@
discover:
how: fmf
execute:
how: tmt

View file

@ -1,19 +1,22 @@
%global srcname Jinja2
%global srcname jinja2
Name: python-jinja2
Version: 3.0.3
Release: 2%{?dist}
Version: 3.1.6
Release: 6%{?dist}
Summary: General purpose template engine
License: BSD
License: BSD-3-Clause
URL: https://palletsprojects.com/p/jinja/
Source0: %{pypi_source}
# Tests: Make "Traceback did not match" an actual f-string
Patch1: https://github.com/pallets/jinja/pull/1525.patch
Source0: %{pypi_source %srcname}
# Enable building without docs to avoid a circular dependency between this
# and python-sphinx:
%if 0%{?rhel} || 0%{?flatpak}
%bcond_with docs
%else
%bcond_without docs
%endif
# The dependency on trio is undesired on RHEL
%bcond asyncio_tests %{undefined rhel}
BuildArch: noarch
@ -34,6 +37,9 @@ environments.}
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3-pytest
%if %{with asyncio_tests}
BuildRequires: python3-trio
%endif
%if %{with docs}
BuildRequires: %{_bindir}/sphinx-build-3
BuildRequires: make
@ -70,19 +76,106 @@ rm -rvf docs/_build/html/.buildinfo
%check
%pytest tests
# test_elif_deep is flaky for an unknown reason
# https://github.com/pallets/jinja/issues/2079
%pytest tests -k "not test_elif_deep" %{!?with_asyncio_tests:--ignore tests/test_async.py --ignore tests/test_async_filters.py}
%files -n python3-jinja2 -f %{pyproject_files}
%doc CHANGES.rst
%doc examples
%license LICENSE.rst
%doc README.md
%doc docs/examples
%license LICENSE.txt
%if %{with docs}
%doc docs/_build/html
%endif
%changelog
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 3.1.6-6
- Rebuilt for Python 3.14.0rc3 bytecode
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 3.1.6-5
- Rebuilt for Python 3.14.0rc2 bytecode
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Tue Jun 03 2025 Python Maint <python-maint@redhat.com> - 3.1.6-3
- Rebuilt for Python 3.14
* Mon Jun 02 2025 Python Maint <python-maint@redhat.com> - 3.1.6-2
- Bootstrap for Python 3.14
* Sun Mar 9 2025 Thomas Moschny <thomas.moschny@gmx.de> - 3.1.6-1
- Update to 3.1.6.
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Wed Jan 08 2025 Miro Hrončok <mhroncok@redhat.com> - 3.1.5-1
- Update to 3.1.5
- Security fix for CVE-2024-56201
- Fixes: rhzb#2333688
- Fixes: rhzb#2336377
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.4-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Sat Jun 08 2024 Python Maint <python-maint@redhat.com> - 3.1.4-4
- Rebuilt for Python 3.13
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 3.1.4-3
- Bootstrap for Python 3.13
* Thu May 23 2024 Miro Hrončok <mhroncok@redhat.com> - 3.1.4-2
- Python 3.13 fixes
- Fixes: rhzb#2245265
* Tue May 07 2024 Lumír Balhar <lbalhar@redhat.com> - 3.1.4-1
- Update to 3.1.4 (rhbz#2279211,rhbz#2279491)
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Thu Jan 11 2024 Michel Lind <salimma@fedoraproject.org> - 3.1.3-1
- Update to 3.1.3 to fix CVE-2024-22195
* Tue Aug 08 2023 Karolina Surma <ksurma@redhat.com> - 3.1.2-6
- Declare the license as an SPDX expression
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 3.1.2-4
- Rebuilt for Python 3.12
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 3.1.2-3
- Bootstrap for Python 3.12
* Fri May 19 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 3.1.2-2
- Disable docs by default in RHEL builds
* Mon May 01 2023 Sandro Mani <manisandro@gmail.com> - 3.1.2-1
- Update to 3.1.2
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Mon Nov 14 2022 Lumír Balhar <lbalhar@redhat.com> - 3.0.3-6
- Fix compatibility with pytest 7.2
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.0.3-4
- Rebuilt for Python 3.11
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.0.3-3
- Bootstrap for Python 3.11
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

View file

@ -1 +1 @@
SHA512 (Jinja2-3.0.3.tar.gz) = 51703d396ffe35155ed216922294441e20d44cd1ab69674140146375d4964654cdb32b38945f22916e0de917bbc0cf406cb680c2e569f9225dbe1fe4063be0b0
SHA512 (jinja2-3.1.6.tar.gz) = bddd5e142f1462426c57b2efafdfafdfc6b66de257668707940896feae71eabdf19e0b6e34ef49b965153baf9b1eb59bb5a97349bb287ea0921dd2a751e967ab

7
tests/smoke.fmf Normal file
View file

@ -0,0 +1,7 @@
description: |
Runs very simple jinja2 template which should always work
test: python3 smoke.py
framework: shell
require:
- python3
- python3-jinja2

9
tests/smoke.py Normal file
View file

@ -0,0 +1,9 @@
import jinja2
TEMPLATE = "Text {{ variable }}"
environment = jinja2.Environment()
template = environment.from_string(TEMPLATE)
output = template.render(variable="demo")
assert output == "Text demo", f"got: {output}"