!10 升级python-cheetah到3.3.1版本

From: @huangduirong 
Reviewed-by: @licihua 
Signed-off-by: @licihua
This commit is contained in:
openeuler-ci-bot 2023-02-18 09:34:40 +00:00 committed by Gitee
commit f702df1af5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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
Version: 3.2.6
Version: 3.3.1
Release: 1
Summary: The Python-Powered Template Engine
License: MIT
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
Patch0001: _bootlocale-removed.patch
Patch0003: import-from-the-new-abc-module.patch
Patch0001: resolve-run-test-Wrong-argument.patch
%description
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}/
%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
- 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