%global _empty_manifest_terminate_build 0
%global shortname sqlparse
Name: python-sqlparse
Version: 0.6.0
Release: 1
Summary: A non-validating SQL parser.
License: BSD-3-Clause
URL: https://github.com/andialbrecht/sqlparse
Source0: https://files.pythonhosted.org/packages/source/s/sqlparse/sqlparse-%{version}.tar.gz
BuildArch: noarch
%description
A non-validating SQL parser.
%package -n python3-sqlparse
Summary: A non-validating SQL parser.
Provides: python-sqlparse
Obsoletes: python-sqlparse-help < 0.4.4
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-pytest
BuildRequires: python3-flit
BuildRequires: python3-hatchling
%description -n python3-sqlparse
A non-validating SQL parser.
%prep
%autosetup -n sqlparse-%{version} -p1
%build
%pyproject_build
%install
%pyproject_install
%check
%{__python3} -m pytest
%files -n python3-sqlparse
%{python3_sitelib}/*
%doc AUTHORS CHANGELOG
%license LICENSE
%{_bindir}/sqlformat
%changelog
* Thu Aug 20 2026 xu_ping <707078654@qq.com> - 0.6.0-1
- Upgrade versio to 0.6.0 to fix cves
* Tue Aug 18 2026 hanjinpeng <hanjinpeng@kylinos.cn> - 0.5.5-2
- Type:CVE
- ID:CVE-2026-59893
- SUG:NA
- DESC:fix CVE-2026-59893: eliminate ReDoS in lexer handling of dollar-quoted literals and multiline comments
* Mon Dec 29 2025 Yu Peng <yupeng@kylinos.cn> - 0.5.5-1
- Upgrade to 0.5.5
* Fix DoS protection to raise SQLParseError instead of silently returning None when grouping limits are exceeded
* Fix splitting of BEGIN TRANSACTION statements
* Fri Nov 28 2025 zhangzeyang0718 <zhangzeyang@kylinos.cn> - 0.5.4-1
- Update to 0.5.4
* Thu Jul 17 2025 jinshuaiyu <jinshuaiyu@kylinos.cn> - 0.5.3-1
- Update package to version 0.5.3
- This version introduces a more generalized handling of potential denial of service attack (DOS) due to recursion errors for deeply nested statements.
* Mon Aug 05 2024 dongjiao <dongjiao@kylinos.cn> - 0.5.1-1
- Update package to version 0.5.1
- Support python 3.12, drop support for Python 3.5, 3.6, and 3.7.
- Fixes a potential denial of service attack (DOS) due to recursion error for deeply nested statements.
* Mon May 06 2024 wangkai <13474090681@163.com> - 0.4.4-2
- Fix CVE-2024-4340
* Thu May 04 2023 wangkai <13474090681@163.com> - 0.4.4-1
- Update package to version 0.4.4
- Fix CVE-2023-30608
- Compling package with pyproject
- Obsoletes subpackage python-sqlparse-help
* Wed Dec 07 2022 liqiuyu <liqiuyu@kylinos.cn> - 0.4.3-1
- Update package to version 0.4.3
* Tue Jun 21 2022 renliang <renliang@uniontech.com> - 0.4.2-2
- Setup.py does not execute check, To change parameters, Go to check
* Fri May 20 2022 renliang <renliang@uniontech.com> - 0.4.2-1
- Upgrade package python3-sqlparse to version 0.4.2
* Mon May 9 2022 yaoxin <yaoxin30@h-partners.com> - 0.4.1-3
- License compliance rectification
* Mon Oct 11 2021 houyingchao <houyingchao@huawei.com> - 0.4.1-2
- Fix CVE-2021-32839
* Fri Aug 06 2021 OpenStack_SIG <openstack@openeuler.org> - 0.4.1-1
- Upgrade version to 0.4.1
* Sun Jul 12 2020 Python_Bot <Python_Bot@openeuler.org>
- Package Spec generated