git: 7b3ef54fdba2 - main - databases/py-dbt-core: Allow build with py-sqlparse 0.5.0+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 20 Apr 2024 14:28:44 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=7b3ef54fdba26813f90988512c591c568ee87cb1

commit 7b3ef54fdba26813f90988512c591c568ee87cb1
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-04-20 14:24:15 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-04-20 14:26:01 +0000

    databases/py-dbt-core: Allow build with py-sqlparse 0.5.0+
    
    - Bump PORTREVISION for package change
---
 databases/py-dbt-core/Makefile             |  4 ++--
 databases/py-dbt-core/files/patch-setup.py | 11 +++++++++++
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/databases/py-dbt-core/Makefile b/databases/py-dbt-core/Makefile
index 8520bccd9c78..8ab5eed7a5a7 100644
--- a/databases/py-dbt-core/Makefile
+++ b/databases/py-dbt-core/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	dbt-core
 PORTVERSION=	1.7.3
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	databases python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -21,7 +21,7 @@ RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}agate>=1.7,<2:textproc/py-agate@${PY_FLAVOR}
 		${PYTHON_PKGNAMEPREFIX}colorama>=0.3.9,<0.5:devel/py-colorama@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}pathspec>=0.9,<0.13:devel/py-pathspec@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}isodate>=0.6,<0.7:devel/py-isodate@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}sqlparse>=0.2.3,<0.5:databases/py-sqlparse@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}sqlparse>=0.2.3,<0.6:databases/py-sqlparse@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}dbt-extractor>=0.5:devel/py-dbt-extractor@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}minimal-snowplow-tracker>=0.0.2,<0.1:devel/py-minimal-snowplow-tracker@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}dbt-semantic-interfaces>=0.4.0,<0.5:databases/py-dbt-semantic-interfaces@${PY_FLAVOR} \
diff --git a/databases/py-dbt-core/files/patch-setup.py b/databases/py-dbt-core/files/patch-setup.py
new file mode 100644
index 000000000000..986026cad15e
--- /dev/null
+++ b/databases/py-dbt-core/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2023-11-29 15:45:26 UTC
++++ setup.py
+@@ -68,7 +68,7 @@ setup(
+         "pathspec>=0.9,<0.12",
+         "isodate>=0.6,<0.7",
+         # ----
+-        "sqlparse>=0.2.3,<0.5",
++        "sqlparse>=0.2.3,<0.6",
+         # ----
+         # These are major-version-0 packages also maintained by dbt-labs. Accept patches.
+         "dbt-extractor~=0.5.0",