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:           Sun Apr 14 18:10:08 UTC 2024

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

Log Message:
py-sqlparse: updated to 0.5.0

Release 0.5.0 (Apr 13, 2024)
----------------------------

Notable Changes

* Drop support for Python 3.5, 3.6, and 3.7.
* Python 3.12 is now supported (pr725, by hugovk).
* IMPORTANT: Fixes a potential denial of service attack (DOS) due to recursion
  error for deeply nested statements. Instead of recursion error a generic
  SQLParseError is raised. See the security advisory for details:
  https://github.com/andialbrecht/sqlparse/security/advisories/GHSA-2m57-hf25-phgg
  The vulnerability was discovered by @uriyay-jfrog. Thanks for reporting!

Enhancements:

* Splitting statements now allows to remove the semicolon at the end.
  Some database backends love statements without semicolon (issue742).
* Support TypedLiterals in get_parameters (pr649, by Khrol).
* Improve splitting of Transact SQL when using GO keyword (issue762).
* Support for some JSON operators (issue682).
* Improve formatting of statements containing JSON operators (issue542).
* Support for BigQuery and Snowflake keywords (pr699, by griffatrasgo).
* Support parsing of OVER clause (issue701, pr768 by r33s3n6).

Bug Fixes

* Ignore dunder attributes when creating Tokens (issue672).
* Allow operators to precede dollar-quoted strings (issue763).
* Fix parsing of nested order clauses (issue745, pr746 by john-bodley).
* Thread-safe initialization of Lexer class (issue730).
* Classify TRUNCATE as DDL and GRANT/REVOKE as DCL keywords (based on pr719
  by josuc1, thanks for bringing this up!).
* Fix parsing of PRIMARY KEY (issue740).

Other

* Optimize performance of matching function (pr799, by admachainz).


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 pkgsrc/databases/py-sqlparse/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/databases/py-sqlparse/PLIST
cvs rdiff -u -r1.18 -r1.19 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.23 pkgsrc/databases/py-sqlparse/Makefile:1.24
--- pkgsrc/databases/py-sqlparse/Makefile:1.23  Sat Oct 28 19:56:56 2023
+++ pkgsrc/databases/py-sqlparse/Makefile       Sun Apr 14 18:10:08 2024
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.23 2023/10/28 19:56:56 wiz Exp $
+# $NetBSD: Makefile,v 1.24 2024/04/14 18:10:08 adam Exp $
 
-DISTNAME=      sqlparse-0.4.4
+DISTNAME=      sqlparse-0.5.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    databases python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=s/sqlparse/}
 
@@ -11,8 +10,7 @@ HOMEPAGE=     https://github.com/andialbrech
 COMMENT=       Non-validating SQL parser
 LICENSE=       modified-bsd
 
-TOOL_DEPENDS+= ${PYPKGPREFIX}-flit_core>=3.2:../../devel/py-flit_core
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+TOOL_DEPENDS+= ${PYPKGPREFIX}-hatchling-[0-9]*:../../devel/py-hatchling
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
 
 USE_LANGUAGES= # none
@@ -25,9 +23,6 @@ post-install:
        cd ${DESTDIR}${PREFIX}/bin && \
        ${MV} sqlformat sqlformat-${PYVERSSUFFIX} || ${TRUE}
 
-do-test:
-       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
-
 .include "../../lang/python/application.mk"
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/databases/py-sqlparse/PLIST
diff -u pkgsrc/databases/py-sqlparse/PLIST:1.4 pkgsrc/databases/py-sqlparse/PLIST:1.5
--- pkgsrc/databases/py-sqlparse/PLIST:1.4      Sat Oct 28 19:56:56 2023
+++ pkgsrc/databases/py-sqlparse/PLIST  Sun Apr 14 18:10:08 2024
@@ -1,10 +1,11 @@
-@comment $NetBSD: PLIST,v 1.4 2023/10/28 19:56:56 wiz Exp $
+@comment $NetBSD: PLIST,v 1.5 2024/04/14 18:10:08 adam Exp $
 bin/sqlformat-${PYVERSSUFFIX}
-${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD
 ${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
 ${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/AUTHORS
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
 ${PYSITELIB}/sqlparse/__init__.py
 ${PYSITELIB}/sqlparse/__init__.pyc
 ${PYSITELIB}/sqlparse/__init__.pyo

Index: pkgsrc/databases/py-sqlparse/distinfo
diff -u pkgsrc/databases/py-sqlparse/distinfo:1.18 pkgsrc/databases/py-sqlparse/distinfo:1.19
--- pkgsrc/databases/py-sqlparse/distinfo:1.18  Thu Sep  7 15:46:23 2023
+++ pkgsrc/databases/py-sqlparse/distinfo       Sun Apr 14 18:10:08 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.18 2023/09/07 15:46:23 adam Exp $
+$NetBSD: distinfo,v 1.19 2024/04/14 18:10:08 adam Exp $
 
-BLAKE2s (sqlparse-0.4.4.tar.gz) = 80ec96a4c299a7ab09ea2c76ac99b8b61065a4eab792c2985e6488aeb65e79d9
-SHA512 (sqlparse-0.4.4.tar.gz) = bb655f8de2466c2ed51aca901b6561b8ac7730bf65f1254d218d7b9dabbece609cadd8a52a092b301895ad83813ddf02691e2de49cf55a26e676a2661c240a2b
-Size (sqlparse-0.4.4.tar.gz) = 72383 bytes
+BLAKE2s (sqlparse-0.5.0.tar.gz) = d72d457becf0ba016f348c28397ddf3130c1c6a762cc3b63450c66d73f5bbab6
+SHA512 (sqlparse-0.5.0.tar.gz) = eade99e832054ddbc466d1c56a4d5ce6f79d31be8dbfa0b175b8413e4326af18baa20a42d9661bc09e91f04edd8329d4c0df2ca6f62983df3daef67d38342269
+Size (sqlparse-0.5.0.tar.gz) = 83475 bytes



Home | Main Index | Thread Index | Old Index