diff --git a/Try-to-fix-importlib-issue-with-flake8.patch b/Try-to-fix-importlib-issue-with-flake8.patch new file mode 100644 index 0000000000000000000000000000000000000000..d4026185e8036a4d748b497759e81370fc33a819 --- /dev/null +++ b/Try-to-fix-importlib-issue-with-flake8.patch @@ -0,0 +1,25 @@ +From 21f9fd57005401888abf5cd1444923f483842203 Mon Sep 17 00:00:00 2001 +From: Andi Albrecht +Date: Mon, 4 Sep 2023 08:31:03 +0200 +Subject: [PATCH] CI: Try to fix importlib issue with flake8. + +See https://github.com/python/importlib_metadata/issues/406 +--- + pyproject.toml | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/pyproject.toml b/pyproject.toml +index 10e9669..67a9c7c 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -41,6 +41,7 @@ sqlformat = "sqlparse.__main__:main" + + [project.optional-dependencies] + dev = [ ++ "importlib_metadata<5; python_version <= '3.7'", + "flake8", + "build", + ] +-- +2.27.0 + diff --git a/python-sqlparse.spec b/python-sqlparse.spec index e4134365e0414fb16ff052c4d00ad595fe063d8f..405bc55a13e1a2de430cbce671f298c402f75a53 100644 --- a/python-sqlparse.spec +++ b/python-sqlparse.spec @@ -3,12 +3,13 @@ Name: python-sqlparse Version: 0.4.4 -Release: 2 +Release: 3 Summary: A non-validating SQL parser. License: BSD-3-Clause URL: https://github.com/andialbrecht/sqlparse Source0: https://github.com/andialbrecht/%{shortname}/archive/%{version}/%{shortname}-%{version}.tar.gz Patch0: CVE-2024-4340.patch +Patch1: Try-to-fix-importlib-issue-with-flake8.patch BuildArch: noarch %description @@ -49,6 +50,9 @@ A non-validating SQL parser. %{_bindir}/sqlformat %changelog +* Sat May 11 2024 lilu - 0.4.4-3 +- Try to fix importlib issue with flake8 + * Mon May 06 2024 wangkai <13474090681@163.com> - 0.4.4-2 - Fix CVE-2024-4340