pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/databases/py-sqlparse



Module Name:    pkgsrc
Committed By:   adam
Date:           Fri Nov 28 11:45:09 UTC 2025

Modified Files:
        pkgsrc/databases/py-sqlparse: Makefile PLIST distinfo

Log Message:
py-sqlparse: updated to 0.5.4

Release 0.5.4 (Nov 28, 2025)

Enhancements

* 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
  (issue756).
* 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).

Bug Fixes

* 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_DEPTH=100,
  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 (pr818).
* 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).py-sqlparse: updated to 0.5.4


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 pkgsrc/databases/py-sqlparse/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/databases/py-sqlparse/PLIST
cvs rdiff -u -r1.22 -r1.23 pkgsrc/databases/py-sqlparse/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/databases/py-sqlparse/Makefile
diff -u pkgsrc/databases/py-sqlparse/Makefile:1.27 pkgsrc/databases/py-sqlparse/Makefile:1.28
--- pkgsrc/databases/py-sqlparse/Makefile:1.27  Mon Dec 16 05:57:53 2024
+++ pkgsrc/databases/py-sqlparse/Makefile       Fri Nov 28 11:45:09 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.27 2024/12/16 05:57:53 adam Exp $
+# $NetBSD: Makefile,v 1.28 2025/11/28 11:45:09 adam Exp $
 
-DISTNAME=      sqlparse-0.5.3
+DISTNAME=      sqlparse-0.5.4
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    databases python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=s/sqlparse/}

Index: pkgsrc/databases/py-sqlparse/PLIST
diff -u pkgsrc/databases/py-sqlparse/PLIST:1.5 pkgsrc/databases/py-sqlparse/PLIST:1.6
--- pkgsrc/databases/py-sqlparse/PLIST:1.5      Sun Apr 14 18:10:08 2024
+++ pkgsrc/databases/py-sqlparse/PLIST  Fri Nov 28 11:45:09 2025
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.5 2024/04/14 18:10:08 adam Exp $
+@comment $NetBSD: PLIST,v 1.6 2025/11/28 11:45:09 adam Exp $
 bin/sqlformat-${PYVERSSUFFIX}
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
@@ -60,6 +60,7 @@ ${PYSITELIB}/sqlparse/keywords.pyo
 ${PYSITELIB}/sqlparse/lexer.py
 ${PYSITELIB}/sqlparse/lexer.pyc
 ${PYSITELIB}/sqlparse/lexer.pyo
+${PYSITELIB}/sqlparse/py.typed
 ${PYSITELIB}/sqlparse/sql.py
 ${PYSITELIB}/sqlparse/sql.pyc
 ${PYSITELIB}/sqlparse/sql.pyo

Index: pkgsrc/databases/py-sqlparse/distinfo
diff -u pkgsrc/databases/py-sqlparse/distinfo:1.22 pkgsrc/databases/py-sqlparse/distinfo:1.23
--- pkgsrc/databases/py-sqlparse/distinfo:1.22  Mon Dec 16 05:57:53 2024
+++ pkgsrc/databases/py-sqlparse/distinfo       Fri Nov 28 11:45:09 2025
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.22 2024/12/16 05:57:53 adam Exp $
+$NetBSD: distinfo,v 1.23 2025/11/28 11:45:09 adam Exp $
 
-BLAKE2s (sqlparse-0.5.3.tar.gz) = 19b20ede444e7d90fae9ab203f690817c9fb597a6bcab90986f2025bfef36b00
-SHA512 (sqlparse-0.5.3.tar.gz) = 219c4a3874606b6b3270fb507d89822412b51d8d120d50682fa683ab127fe05538256a575b5b29ee1a9f88be51ad46999e7c2ad2bb84a39e96ae6d2401eaffcd
-Size (sqlparse-0.5.3.tar.gz) = 84999 bytes
+BLAKE2s (sqlparse-0.5.4.tar.gz) = 2ffce74823b3bfa5561697a4c1db3962d03e239899684437a5cacf2a29ae29e5
+SHA512 (sqlparse-0.5.4.tar.gz) = 9417188604579bb4079bb0d0a610c96c1323a65099d2dc486175213276c8d983df00cd7aea74aa5b5fb1f61f973072d99a57581afb9ffb8a6ef293dfe143a740
+Size (sqlparse-0.5.4.tar.gz) = 120112 bytes



Home | Main Index | Thread Index | Old Index