git: 5443569bf87d - main - www/py-google-cloud-bigtable: Allow build with py-protobuf 5.0.0+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 04 Aug 2024 17:23:20 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=5443569bf87dec4f7fda391ebedbe7cec9ad6a7d
commit 5443569bf87dec4f7fda391ebedbe7cec9ad6a7d
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-08-04 17:09:41 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-08-04 17:14:14 +0000
www/py-google-cloud-bigtable: Allow build with py-protobuf 5.0.0+
- Bump PORTREVISION for package change
---
www/py-google-cloud-bigtable/Makefile | 3 ++-
www/py-google-cloud-bigtable/files/patch-setup.py | 11 +++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/www/py-google-cloud-bigtable/Makefile b/www/py-google-cloud-bigtable/Makefile
index df9233ca89f5..907c76a239dc 100644
--- a/www/py-google-cloud-bigtable/Makefile
+++ b/www/py-google-cloud-bigtable/Makefile
@@ -1,5 +1,6 @@
PORTNAME= google-cloud-bigtable
PORTVERSION= 2.24.0
+PORTREVISION= 1
CATEGORIES= www python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -17,7 +18,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}google-api-core>=2.16.0<3.0.0:www/py-google-
${PYTHON_PKGNAMEPREFIX}google-cloud-core>=1.4.4<3.0.0:www/py-google-cloud-core@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}grpc-google-iam-v1>=0.12.4<1.0.0:devel/py-grpc-google-iam-v1@${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-bigtable/files/patch-setup.py b/www/py-google-cloud-bigtable/files/patch-setup.py
new file mode 100644
index 000000000000..d1c1724520e6
--- /dev/null
+++ b/www/py-google-cloud-bigtable/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2024-06-11 22:47:49 UTC
++++ setup.py
+@@ -42,7 +42,7 @@ dependencies = [
+ "grpc-google-iam-v1 >= 0.12.4, <1.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"}
+