git: eb928ef5207f - main - www/py-google-cloud-logging: 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:22 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=eb928ef5207f5601e135b9f581ee17b84b507af2
commit eb928ef5207f5601e135b9f581ee17b84b507af2
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-08-04 17:09:48 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-08-04 17:14:15 +0000
www/py-google-cloud-logging: Allow build with py-protobuf 5.0.0+
- Bump PORTREVISION for package change
---
www/py-google-cloud-logging/Makefile | 3 ++-
www/py-google-cloud-logging/files/patch-setup.py | 11 +++++++++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/www/py-google-cloud-logging/Makefile b/www/py-google-cloud-logging/Makefile
index 6541cdd29bca..aa4d2110ad4f 100644
--- a/www/py-google-cloud-logging/Makefile
+++ b/www/py-google-cloud-logging/Makefile
@@ -1,5 +1,6 @@
PORTNAME= google-cloud-logging
PORTVERSION= 3.10.0
+PORTREVISION= 1
CATEGORIES= www python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -20,7 +21,7 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}google-api-core>=2.11.0<3.0.0:www/py-google-
${PYTHON_PKGNAMEPREFIX}google-cloud-core>=2.0.0<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-logging/files/patch-setup.py b/www/py-google-cloud-logging/files/patch-setup.py
new file mode 100644
index 000000000000..8050ab061f32
--- /dev/null
+++ b/www/py-google-cloud-logging/files/patch-setup.py
@@ -0,0 +1,11 @@
+--- setup.py.orig 2024-03-14 18:16:40 UTC
++++ setup.py
+@@ -46,7 +46,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",
+ ]
+ url = "https://github.com/googleapis/python-logging"
+