17
0

5 Commits

Author SHA256 Message Date
fa8322d0ef Accepting request 1329526 from devel:languages:python
- update to 0.5.5:
  * Fix DoS protection to raise SQLParseError instead of silently
    returning None when grouping limits are exceeded (issue827).
  * Fix splitting of BEGIN TRANSACTION statements (issue826).
  * Add support for Python 3.14.
  * Add type annotations to top-level API functions and include
    py.typed marker for PEP 561 compliance, enabling type checking
    with mypy and other tools
  * Add pre-commit hook support. sqlparse can now be used as a
    pre-commit hook to automatically format SQL files. The CLI now
    supports multiple files and an `--in-place` flag for in-place
    editing (issue537).
  * Add `ATTACH` and `DETACH` to PostgreSQL keywords (pr808).
  * Add `INTERSECT` to close keywords in WHERE clause (pr820).
  * Support `REGEXP BINARY` comparison operator (pr817).
  * Add additional protection against denial of service attacks
    when parsing very large lists of tuples. This enhances the
    existing recursion protections with configurable limits for
    token processing to prevent DoS through algorithmic complexity
    attacks. The new limits
  * MAX_GROUPING_TOKENS=10000) can be adjusted or disabled (by
    setting to None) if needed for legitimate large SQL statements.
  * Remove shebang from cli.py and remove executable flag
  * Fix strip_comments not removing all comments when input
    contains only comments (issue801, pr803 by stropysh).
  * Fix splitting statements with IF EXISTS/IF NOT EXISTS inside
    BEGIN...END blocks (issue812).
  * Fix splitting on semicolons inside BEGIN...END blocks
    (issue809).

OBS-URL: https://build.opensuse.org/request/show/1329526
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sqlparse?expand=0&rev=22
2026-01-28 14:06:20 +00:00
8f78cb44fe returning None when grouping limits are exceeded (issue827).
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=45
2026-01-27 16:07:39 +00:00
f673434928 - update to 0.5.5:
* Fix DoS protection to raise SQLParseError instead of silently
    returning None
  * when grouping limits are exceeded (issue827).
  * Fix splitting of BEGIN TRANSACTION statements (issue826).
  * Add support for Python 3.14.
  * Add type annotations to top-level API functions and include
    py.typed marker for PEP 561 compliance, enabling type checking
    with mypy and other tools
  * Add pre-commit hook support. sqlparse can now be used as a
    pre-commit hook to automatically format SQL files. The CLI now
    supports multiple files and an `--in-place` flag for in-place
    editing (issue537).
  * Add `ATTACH` and `DETACH` to PostgreSQL keywords (pr808).
  * Add `INTERSECT` to close keywords in WHERE clause (pr820).
  * Support `REGEXP BINARY` comparison operator (pr817).
  * Add additional protection against denial of service attacks
    when parsing very large lists of tuples. This enhances the
    existing recursion protections with configurable limits for
    token processing to prevent DoS through algorithmic complexity
    attacks. The new limits
  * MAX_GROUPING_TOKENS=10000) can be adjusted or disabled (by
    setting to None) if needed for legitimate large SQL statements.
  * Remove shebang from cli.py and remove executable flag
  * Fix strip_comments not removing all comments when input
    contains only comments (issue801, pr803 by stropysh).
  * Fix splitting statements with IF EXISTS/IF NOT EXISTS inside
    BEGIN...END blocks (issue812).
  * Fix splitting on semicolons inside BEGIN...END blocks
    (issue809).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=44
2026-01-27 16:07:26 +00:00
1c84c2e036 Accepting request 1301287 from devel:languages:python
- Convert to libalternatives on SLE-16-based and newer systems

OBS-URL: https://build.opensuse.org/request/show/1301287
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-sqlparse?expand=0&rev=21
2025-08-26 12:56:16 +00:00
bea1f41be6 - Convert to libalternatives on SLE-16-based and newer systems
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sqlparse?expand=0&rev=42
2025-08-25 13:52:50 +00:00
4 changed files with 57 additions and 6 deletions

View File

@@ -1,3 +1,41 @@
-------------------------------------------------------------------
Tue Jan 27 16:06:23 UTC 2026 - Dirk Müller <dmueller@suse.com>
- update to 0.5.5:
* Fix DoS protection to raise SQLParseError instead of silently
returning None when grouping limits are exceeded (issue827).
* Fix splitting of BEGIN TRANSACTION statements (issue826).
* Add support for Python 3.14.
* Add type annotations to top-level API functions and include
py.typed marker for PEP 561 compliance, enabling type checking
with mypy and other tools
* Add pre-commit hook support. sqlparse can now be used as a
pre-commit hook to automatically format SQL files. The CLI now
supports multiple files and an `--in-place` flag for in-place
editing (issue537).
* Add `ATTACH` and `DETACH` to PostgreSQL keywords (pr808).
* Add `INTERSECT` to close keywords in WHERE clause (pr820).
* Support `REGEXP BINARY` comparison operator (pr817).
* Add additional protection against denial of service attacks
when parsing very large lists of tuples. This enhances the
existing recursion protections with configurable limits for
token processing to prevent DoS through algorithmic complexity
attacks. The new limits
* MAX_GROUPING_TOKENS=10000) can be adjusted or disabled (by
setting to None) if needed for legitimate large SQL statements.
* Remove shebang from cli.py and remove executable flag
* Fix strip_comments not removing all comments when input
contains only comments (issue801, pr803 by stropysh).
* Fix splitting statements with IF EXISTS/IF NOT EXISTS inside
BEGIN...END blocks (issue812).
* Fix splitting on semicolons inside BEGIN...END blocks
(issue809).
-------------------------------------------------------------------
Mon Aug 25 13:52:31 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems
-------------------------------------------------------------------
Mon Feb 24 10:02:41 UTC 2025 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-sqlparse
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,9 +16,14 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-sqlparse
Version: 0.5.3
Version: 0.5.5
Release: 0
Summary: Non-validating SQL parser
License: BSD-3-Clause
@@ -31,9 +36,14 @@ BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%endif
%python_subpackages
%description
@@ -59,6 +69,9 @@ chmod -x sqlparse/cli.py
%postun
%python_uninstall_alternative sqlformat
%pre
%python_libalternatives_reset_alternative sqlformat
%check
%pytest

Binary file not shown.

3
sqlparse-0.5.5.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e20d4a9b0b8585fdf63b10d30066c7c94c5d7a7ec47c889a2d83a3caa93ff28e
size 120815