diff --git a/0001-fix-syntax-error.patch b/0001-fix-syntax-error.patch new file mode 100644 index 0000000..a6b3b5c --- /dev/null +++ b/0001-fix-syntax-error.patch @@ -0,0 +1,24 @@ +From b4673e990c4bf745e5f307d3067cae520c07ae0e Mon Sep 17 00:00:00 2001 +From: wang--ge +Date: Thu, 6 Apr 2023 16:34:28 +0800 +Subject: [PATCH] fix syntax error + +--- + aenum/_py2.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/aenum/_py2.py b/aenum/_py2.py +index a6e7b29..7206155 100644 +--- a/aenum/_py2.py ++++ b/aenum/_py2.py +@@ -2,6 +2,6 @@ from operator import div as _div_ + from inspect import getargspec + + def raise_with_traceback(exc, tb): +- raise exc, None, tb ++ raise exc.with_traceback(tb) + + __all__ = ['_div_', 'getargspec', 'raise_with_traceback'] +-- +2.33.0 + diff --git a/3.1.11.tar.gz b/3.1.11.tar.gz new file mode 100644 index 0000000..74d2397 Binary files /dev/null and b/3.1.11.tar.gz differ diff --git a/aenum-2.2.3.tar.gz b/aenum-2.2.3.tar.gz deleted file mode 100644 index 7e364fe..0000000 Binary files a/aenum-2.2.3.tar.gz and /dev/null differ diff --git a/python-aenum.spec b/python-aenum.spec index 89a4de0..17d0c9a 100644 --- a/python-aenum.spec +++ b/python-aenum.spec @@ -1,11 +1,12 @@ %global _empty_manifest_terminate_build 0 Name: python-aenum -Version: 2.2.3 +Version: 3.1.11 Release: 1 Summary: Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants License: BSD License URL: https://bitbucket.org/stoneleaf/aenum -Source0: https://files.pythonhosted.org/packages/6f/6a/8ed729e0add885d7a559ebb06133029b1f8c4bd66cbf1bdee1ec969fb310/aenum-2.2.3.tar.gz +Source0: https://github.com/ethanfurman/aenum/archive/refs/tags/3.1.11.tar.gz +Patch0: 0001-fix-syntax-error.patch BuildArch: noarch @@ -29,7 +30,7 @@ Provides: python3-aenum-doc Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants %prep -%autosetup -n aenum-2.2.3 +%autosetup -n aenum-%{version} -p1 %build %py3_build @@ -69,5 +70,8 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Thu Apr 06 2023 Ge Wang - 3.1.11-1 +- Update to version 3.1.11 + * Fri Jul 10 2020 Python_Bot - Package Spec generated