From 23dced28df8935949a06752314fbe6241db61c91 Mon Sep 17 00:00:00 2001 From: tzing_t Date: Wed, 27 Sep 2023 07:15:35 +0000 Subject: [PATCH] fix pyparsing module has no attribute operatorPrecedence --- aodhclient_pyparsing.patch | 13 +++++++++++++ python-aodhclient.spec | 8 ++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 aodhclient_pyparsing.patch diff --git a/aodhclient_pyparsing.patch b/aodhclient_pyparsing.patch new file mode 100644 index 0000000..a5f3f68 --- /dev/null +++ b/aodhclient_pyparsing.patch @@ -0,0 +1,13 @@ +diff --git a/aodhclient/utils.py b/aodhclient/utils.py +index 4b6577f..d683672 100644 +--- a/aodhclient/utils.py ++++ b/aodhclient/utils.py +@@ -40,7 +40,7 @@ comparison_term << (null | boolean | uuid | identifier | number | + quoted_string) + condition = pp.Group(comparison_term + operator + comparison_term) + +-expr = pp.operatorPrecedence(condition, [ ++expr = pp.infixNotation(condition, [ + ("not", 1, pp.opAssoc.RIGHT, ), + ("and", 2, pp.opAssoc.LEFT, ), + ("or", 2, pp.opAssoc.LEFT, ), diff --git a/python-aodhclient.spec b/python-aodhclient.spec index 54e2d6c..016b16f 100644 --- a/python-aodhclient.spec +++ b/python-aodhclient.spec @@ -1,11 +1,12 @@ %global _empty_manifest_terminate_build 0 Name: python-aodhclient Version: 2.2.0 -Release: 1 +Release: 2 Summary: Python client library for Aodh License: Apache-2.0 URL: https://docs.openstack.org/python-aodhclient/latest/ Source0: https://files.pythonhosted.org/packages/93/65/8921604833ac7392c4721da1c6841d38ca92b375c23b3d1d3c4b936654bc/aodhclient-2.2.0.tar.gz +Patch01: aodhclient_pyparsing.patch BuildArch: noarch %description Python client library for Aodh. @@ -68,7 +69,7 @@ Provides: python3-aodhclient-doc Python client library for Aodh. %prep -%autosetup -n aodhclient-2.2.0 +%autosetup -n aodhclient-2.2.0 -p1 %build %py3_build @@ -113,5 +114,8 @@ pytest -k 'not functional' %{_docdir}/* %changelog +* Wed Sep 27 2023 zhengting - 2.2.0-2 +- Fix depracted attribute + * Mon Jul 19 2021 OpenStack_SIG - 2.2.0-1 - Package Spec generate -- Gitee