git: c0cbafde995a - main - devel/py-opentelemetry-proto: Add py-opentelemetry-proto 1.27.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sun, 08 Sep 2024 18:42:06 UTC
The branch main has been updated by sunpoet:

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

commit c0cbafde995aa80e60efeda910223d575462fb6e
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-09-08 17:47:30 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-09-08 18:36:55 +0000

    devel/py-opentelemetry-proto: Add py-opentelemetry-proto 1.27.0
    
    OpenTelemetry Python Proto contains the generated code for OpenTelemetry
    protobuf data model.
---
 devel/Makefile                                     |  1 +
 devel/py-opentelemetry-proto/Makefile              | 25 ++++++++++++++++++++++
 devel/py-opentelemetry-proto/distinfo              |  3 +++
 .../files/patch-pyproject.toml                     | 11 ++++++++++
 devel/py-opentelemetry-proto/pkg-descr             |  2 ++
 5 files changed, 42 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index d2c6130d830d..7005d6756298 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5255,6 +5255,7 @@
     SUBDIR += py-opentelemetry-exporter-otlp-proto-common
     SUBDIR += py-opentelemetry-exporter-otlp-proto-grpc
     SUBDIR += py-opentelemetry-exporter-otlp-proto-http
+    SUBDIR += py-opentelemetry-proto
     SUBDIR += py-opentelemetry-sdk
     SUBDIR += py-opentelemetry-semantic-conventions
     SUBDIR += py-opentracing
diff --git a/devel/py-opentelemetry-proto/Makefile b/devel/py-opentelemetry-proto/Makefile
new file mode 100644
index 000000000000..74b0fc62a35e
--- /dev/null
+++ b/devel/py-opentelemetry-proto/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	opentelemetry-proto
+PORTVERSION=	1.27.0
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	opentelemetry_proto-${PORTVERSION}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	OpenTelemetry Python Proto
+WWW=		https://github.com/open-telemetry/opentelemetry-python/tree/main/opentelemetry-proto \
+		https://github.com/open-telemetry/opentelemetry-python \
+		https://opentelemetry.io/
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}protobuf>=3.19,1:devel/py-protobuf@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-opentelemetry-proto/distinfo b/devel/py-opentelemetry-proto/distinfo
new file mode 100644
index 000000000000..e3bffa172d14
--- /dev/null
+++ b/devel/py-opentelemetry-proto/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1725559539
+SHA256 (opentelemetry_proto-1.27.0.tar.gz) = 33c9345d91dafd8a74fc3d7576c5a38f18b7fdf8d02983ac67485386132aedd6
+SIZE (opentelemetry_proto-1.27.0.tar.gz) = 34749
diff --git a/devel/py-opentelemetry-proto/files/patch-pyproject.toml b/devel/py-opentelemetry-proto/files/patch-pyproject.toml
new file mode 100644
index 000000000000..0eb0647b26b5
--- /dev/null
+++ b/devel/py-opentelemetry-proto/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig	2020-02-02 00:00:00 UTC
++++ pyproject.toml
+@@ -26,7 +26,7 @@ dependencies = [
+   "Programming Language :: Python :: 3.12",
+ ]
+ dependencies = [
+-  "protobuf>=3.19, < 5.0",
++  "protobuf>=3.19",
+ ]
+ 
+ [project.urls]
diff --git a/devel/py-opentelemetry-proto/pkg-descr b/devel/py-opentelemetry-proto/pkg-descr
new file mode 100644
index 000000000000..2dfbadf81e8c
--- /dev/null
+++ b/devel/py-opentelemetry-proto/pkg-descr
@@ -0,0 +1,2 @@
+OpenTelemetry Python Proto contains the generated code for OpenTelemetry
+protobuf data model.