git: 135000189257 - main - www/py-google-cloud-datastore: Allow build with py-protobuf 5.0.0+

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 04 Aug 2024 17:23:21 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=135000189257e077dc352adcc62f41bfd68d4c69

commit 135000189257e077dc352adcc62f41bfd68d4c69
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-08-04 17:09:45 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-08-04 17:14:15 +0000

    www/py-google-cloud-datastore: Allow build with py-protobuf 5.0.0+
    
    - Bump PORTREVISION for package change
---
 www/py-google-cloud-datastore/Makefile             |  4 ++--
 www/py-google-cloud-datastore/files/patch-setup.py | 11 +++++++++++
 2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/www/py-google-cloud-datastore/Makefile b/www/py-google-cloud-datastore/Makefile
index 4421cfd3d4ff..3769001e27d3 100644
--- a/www/py-google-cloud-datastore/Makefile
+++ b/www/py-google-cloud-datastore/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	google-cloud-datastore
 PORTVERSION=	2.19.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -17,7 +17,7 @@ BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLA
 RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}google-api-core>=2.10.0<3.0.0:www/py-google-api-core@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}google-cloud-core>=1.4.0<3.0:www/py-google-cloud-core@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}proto-plus>=1.22.2<2.0.0:devel/py-proto-plus@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}protobuf>=4.21.6,1<5.0.0,1:devel/py-protobuf@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}protobuf>=4.21.6,1<6.0.0,1:devel/py-protobuf@${PY_FLAVOR}
 
 USES=		python
 USE_PYTHON=	autoplist concurrent pep517
diff --git a/www/py-google-cloud-datastore/files/patch-setup.py b/www/py-google-cloud-datastore/files/patch-setup.py
new file mode 100644
index 000000000000..fa6788875471
--- /dev/null
+++ b/www/py-google-cloud-datastore/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig	2023-12-12 20:35:35 UTC
++++ setup.py
+@@ -33,7 +33,7 @@ dependencies = [
+     "google-cloud-core >= 1.4.0, <3.0.0dev",
+     "proto-plus >= 1.22.0, <2.0.0dev",
+     "proto-plus >= 1.22.2, <2.0.0dev; python_version>='3.11'",
+-    "protobuf>=3.19.5,<5.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
++    "protobuf>=3.19.5,<6.0.0dev,!=3.20.0,!=3.20.1,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
+ ]
+ extras = {"libcst": "libcst >= 0.2.5"}
+