diff --git a/3.2.6.tar.gz b/3.2.6.tar.gz deleted file mode 100644 index 74be8cb..0000000 Binary files a/3.2.6.tar.gz and /dev/null differ diff --git a/3.3.1.tar.gz b/3.3.1.tar.gz new file mode 100644 index 0000000..be8451a Binary files /dev/null and b/3.3.1.tar.gz differ diff --git a/python-cheetah.spec b/python-cheetah.spec index 59cf5d5..c1819e3 100644 --- a/python-cheetah.spec +++ b/python-cheetah.spec @@ -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 - 3.3.1-1 +- Upgrade to version 3.3.1 + * Wed Jun 15 2022 houyingchao - 3.2.6-1 - Upgrade to version 3.2.6 diff --git a/resolve-run-test-Wrong-argument.patch b/resolve-run-test-Wrong-argument.patch new file mode 100644 index 0000000..e006319 --- /dev/null +++ b/resolve-run-test-Wrong-argument.patch @@ -0,0 +1,25 @@ +From d06581d7ecd75a97221f48aa2d0639772f171c0e Mon Sep 17 00:00:00 2001 +From: huangduirong +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 +