git: 89cff0c415a8 - main - devel/py-opentelemetry-exporter-otlp: Add py-opentelemetry-exporter-otlp 1.27.0

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

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

commit 89cff0c415a887e2488477cf47740e69512ab6ce
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-09-08 18:13:25 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-09-08 18:36:53 +0000

    devel/py-opentelemetry-exporter-otlp: Add py-opentelemetry-exporter-otlp 1.27.0
    
    OpenTelemetry Collector Exporters is provided as a convenience to install all
    supported OpenTelemetry Collector Exporters. Currently it installs:
    - opentelemetry-exporter-otlp-proto-grpc
    - opentelemetry-exporter-otlp-proto-http
    
    In the future, additional packages will be available:
    opentelemetry-exporter-otlp-json-http
    
    To avoid unnecessary dependencies, users should install the specific package
    once they've determined their preferred serialization and protocol method.
---
 devel/Makefile                                 |  1 +
 devel/py-opentelemetry-exporter-otlp/Makefile  | 26 ++++++++++++++++++++++++++
 devel/py-opentelemetry-exporter-otlp/distinfo  |  3 +++
 devel/py-opentelemetry-exporter-otlp/pkg-descr | 10 ++++++++++
 4 files changed, 40 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 3dd12ac4653c..4141c300c913 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5251,6 +5251,7 @@
     SUBDIR += py-opengrok-tools
     SUBDIR += py-openstacksdk
     SUBDIR += py-opentelemetry-api
+    SUBDIR += py-opentelemetry-exporter-otlp
     SUBDIR += py-opentelemetry-sdk
     SUBDIR += py-opentelemetry-semantic-conventions
     SUBDIR += py-opentracing
diff --git a/devel/py-opentelemetry-exporter-otlp/Makefile b/devel/py-opentelemetry-exporter-otlp/Makefile
new file mode 100644
index 000000000000..929c100ffbef
--- /dev/null
+++ b/devel/py-opentelemetry-exporter-otlp/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	opentelemetry-exporter-otlp
+PORTVERSION=	1.27.0
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	opentelemetry_exporter_otlp-${PORTVERSION}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	OpenTelemetry Collector Exporters
+WWW=		https://github.com/open-telemetry/opentelemetry-python/tree/main/exporter/opentelemetry-exporter-otlp \
+		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}opentelemetry-exporter-otlp-proto-grpc>=${PORTVERSION}<${PORTVERSION}_99:devel/py-opentelemetry-exporter-otlp-proto-grpc@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}opentelemetry-exporter-otlp-proto-http>=${PORTVERSION}<${PORTVERSION}_99:devel/py-opentelemetry-exporter-otlp-proto-http@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-opentelemetry-exporter-otlp/distinfo b/devel/py-opentelemetry-exporter-otlp/distinfo
new file mode 100644
index 000000000000..b39f102783e9
--- /dev/null
+++ b/devel/py-opentelemetry-exporter-otlp/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1725559531
+SHA256 (opentelemetry_exporter_otlp-1.27.0.tar.gz) = 4a599459e623868cc95d933c301199c2367e530f089750e115599fccd67cb2a1
+SIZE (opentelemetry_exporter_otlp-1.27.0.tar.gz) = 6166
diff --git a/devel/py-opentelemetry-exporter-otlp/pkg-descr b/devel/py-opentelemetry-exporter-otlp/pkg-descr
new file mode 100644
index 000000000000..e693f74f6d64
--- /dev/null
+++ b/devel/py-opentelemetry-exporter-otlp/pkg-descr
@@ -0,0 +1,10 @@
+OpenTelemetry Collector Exporters is provided as a convenience to install all
+supported OpenTelemetry Collector Exporters. Currently it installs:
+- opentelemetry-exporter-otlp-proto-grpc
+- opentelemetry-exporter-otlp-proto-http
+
+In the future, additional packages will be available:
+opentelemetry-exporter-otlp-json-http
+
+To avoid unnecessary dependencies, users should install the specific package
+once they've determined their preferred serialization and protocol method.