Compare commits
15 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
73b8db5fe8 | ||
|
|
da96094071 | ||
|
|
3fcf5e155d | ||
|
|
159d32e143 | ||
|
|
811a737fb9 | ||
|
|
9a3178e4ba | ||
|
|
ab04c1a35a | ||
|
|
e78f795e7e | ||
|
|
48d55f4742 | ||
|
|
46fea4b890 | ||
|
|
5d9a9d69be | ||
|
|
da0819f188 | ||
|
|
566054026e | ||
|
|
0aec2152b2 | ||
|
|
e84a72433e |
7 changed files with 73 additions and 5 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,2 +1,2 @@
|
|||
/Jinja2-*.tar.gz
|
||||
/jinja2-3.1.4.tar.gz
|
||||
/jinja2-*.tar.gz
|
||||
|
|
|
|||
4
plans.fmf
Normal file
4
plans.fmf
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
discover:
|
||||
how: fmf
|
||||
execute:
|
||||
how: tmt
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
%global srcname jinja2
|
||||
|
||||
Name: python-jinja2
|
||||
Version: 3.1.4
|
||||
Release: 1%{?dist}
|
||||
Version: 3.1.6
|
||||
Release: 6%{?dist}
|
||||
Summary: General purpose template engine
|
||||
License: BSD-3-Clause
|
||||
URL: https://palletsprojects.com/p/jinja/
|
||||
|
|
@ -15,6 +15,8 @@ Source0: %{pypi_source %srcname}
|
|||
%else
|
||||
%bcond_without docs
|
||||
%endif
|
||||
# The dependency on trio is undesired on RHEL
|
||||
%bcond asyncio_tests %{undefined rhel}
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
|
|
@ -35,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
|
||||
|
|
@ -71,7 +76,9 @@ 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}
|
||||
|
|
@ -84,6 +91,46 @@ rm -rvf docs/_build/html/.buildinfo
|
|||
|
||||
|
||||
%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)
|
||||
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (jinja2-3.1.4.tar.gz) = d07d68a2687af68c705d3b7f5a2c67aca7b9d125316b15085888b9d0d6e769981af76f6f524728b89b5501bd671d518fcb2638f9ae112e57ca2bf2a53482cd89
|
||||
SHA512 (jinja2-3.1.6.tar.gz) = bddd5e142f1462426c57b2efafdfafdfc6b66de257668707940896feae71eabdf19e0b6e34ef49b965153baf9b1eb59bb5a97349bb287ea0921dd2a751e967ab
|
||||
|
|
|
|||
7
tests/smoke.fmf
Normal file
7
tests/smoke.fmf
Normal 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
9
tests/smoke.py
Normal 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}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue