upgrage cheetah to 3.3.1

This commit is contained in:
huangduirong 2023-02-18 04:18:28 -05:00
parent fcbae68db2
commit 8a08446919
4 changed files with 31 additions and 4 deletions

Binary file not shown.

BIN
3.3.1.tar.gz Normal file

Binary file not shown.

View File

@ -1,14 +1,13 @@
Name: python-cheetah Name: python-cheetah
Version: 3.2.6 Version: 3.3.1
Release: 1 Release: 1
Summary: The Python-Powered Template Engine Summary: The Python-Powered Template Engine
License: MIT License: MIT
URL: http://cheetahtemplate.org/ URL: http://cheetahtemplate.org/
Source0: https://github.com/CheetahTemplate3/cheetah3/archive/refs/tags/3.2.6.tar.gz Source0: https://github.com/CheetahTemplate3/cheetah3/archive/refs/tags/3.3.1.tar.gz
BuildRequires: gcc python3-devel python3-setuptools python3-markdown python3-pygments BuildRequires: gcc python3-devel python3-setuptools python3-markdown python3-pygments
Patch0001: _bootlocale-removed.patch Patch0001: resolve-run-test-Wrong-argument.patch
Patch0003: import-from-the-new-abc-module.patch
%description %description
Cheetah3 is a free and open source template engine and code-generation tool written in Python. Cheetah3 is a free and open source template engine and code-generation tool written in Python.
@ -46,6 +45,9 @@ export PATH="%{buildroot}/%{_bindir}:$PATH" PYTHONPATH="%{buildroot}/%{python3_s
%{python3_sitearch}/ %{python3_sitearch}/
%changelog %changelog
* Sat Feb 18 2023 huangduirong <huangduirong@huawei.com> - 3.3.1-1
- Upgrade to version 3.3.1
* Wed Jun 15 2022 houyingchao <houyingchao@h-partners.com> - 3.2.6-1 * Wed Jun 15 2022 houyingchao <houyingchao@h-partners.com> - 3.2.6-1
- Upgrade to version 3.2.6 - Upgrade to version 3.2.6

View File

@ -0,0 +1,25 @@
From d06581d7ecd75a97221f48aa2d0639772f171c0e Mon Sep 17 00:00:00 2001
From: huangduirong <huangduirong@huawei.com>
Date: Sat, 18 Feb 2023 04:12:19 -0500
Subject: [PATCH] resolve run test Wrong argument
---
Cheetah/Tests/Test.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Cheetah/Tests/Test.py b/Cheetah/Tests/Test.py
index a3dfd41..08e79d4 100755
--- a/Cheetah/Tests/Test.py
+++ b/Cheetah/Tests/Test.py
@@ -16,6 +16,8 @@ import sys
args_l = len(sys.argv)
if args_l == 1:
pass
+elif args_l == 2 and sys.argv[1] == 'test':
+ pass
elif args_l == 2 and sys.argv[1] == '--namemapper-pure':
try:
from Cheetah import _namemapper # noqa
--
2.35.1