diff --git a/adapted-wrapt-version.patch b/adapted-wrapt-version.patch new file mode 100644 index 0000000..6467ce0 --- /dev/null +++ b/adapted-wrapt-version.patch @@ -0,0 +1,26 @@ +From 1e96a50dfb18c2522138b1acb6107d6d099811c8 Mon Sep 17 00:00:00 2001 +From: cherry530 <707078654@qq.com> +Date: Wed, 8 May 2024 17:22:26 +0800 +Subject: [PATCH] adapted wrapt version + +Signed-off-by: cherry530 <707078654@qq.com> +--- + setup.cfg | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.cfg b/setup.cfg +index 3b13b14..68bf428 100644 +--- a/setup.cfg ++++ b/setup.cfg +@@ -37,7 +37,7 @@ project_urls = + packages = find: + install_requires = + lazy_object_proxy>=1.4.0 +- wrapt>=1.11,<1.14 ++ wrapt>=1.11,<2 + setuptools>=20.0 + typed-ast>=1.4.0,<2.0;implementation_name=="cpython" and python_version<"3.8" + typing-extensions>=3.10;python_version<"3.10" +-- +2.33.0 + diff --git a/python-astroid.spec b/python-astroid.spec index 9d9e03f..20d5c16 100644 --- a/python-astroid.spec +++ b/python-astroid.spec @@ -1,11 +1,14 @@ %global _empty_manifest_terminate_build 0 Name: python-astroid Version: 2.9.3 -Release: 2 +Release: 3 Summary: An abstract syntax tree for Python with inference support. License: LGPL-2.1-only and GPL-2.0-or-later URL: https://github.com/PyCQA/astroid Source0: https://files.pythonhosted.org/packages/2d/be/33923f5dee9f7119abbaa688833b0c71c2ef4b66af3b06ffc64fc8c341ae/astroid-2.9.3.tar.gz + +Patch0: adapted-wrapt-version.patch + BuildArch: noarch %description An abstract syntax tree for Python with inference support. @@ -46,8 +49,7 @@ The aim of this module is to provide a common base representation of python source code. It is currently the library powering pylint capabilities. %prep -%autosetup -n astroid-%{version} -sed -i 's/<1.14/<=1.14/g' setup.cfg +%autosetup -n astroid-%{version} -p1 %build %py3_build @@ -88,6 +90,9 @@ mv %{buildroot}/doclist.lst . %{_docdir}/* %changelog +* Wed May 08 2024 xu_ping <707078654@qq.com> -2.9.3-3 +- Change fix wrapt version mismatch method + * Mon Dec 04 2023 Ge Wang -2.9.3-2 - Fix wrapt version mismatch