[packages/python3-opentelemetry-sdk] - new

qboosh qboosh at pld-linux.org
Fri Feb 27 21:50:27 CET 2026


commit 6ff3e549f4f5e9e9f2fc531967fa5feab9b57996
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Feb 27 21:50:18 2026 +0100

    - new

 python3-opentelemetry-sdk.spec | 70 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)
---
diff --git a/python3-opentelemetry-sdk.spec b/python3-opentelemetry-sdk.spec
new file mode 100644
index 0000000..4039edb
--- /dev/null
+++ b/python3-opentelemetry-sdk.spec
@@ -0,0 +1,70 @@
+#
+# Conditional build:
+%bcond_with	tests	# unit tests (dependency loop with test-utils)
+
+Summary:	OpenTelemetry Python SDK
+Summary(pl.UTF-8):	SDK OpenTelemetry dla Pythona
+Name:		python3-opentelemetry-sdk
+Version:	1.39.1
+Release:	1
+License:	Apache v2.0
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/opentelemetry-sdk/
+Source0:	https://files.pythonhosted.org/packages/source/o/opentelemetry-sdk/opentelemetry_sdk-%{version}.tar.gz
+# Source0-md5:	b1ca24253de7a17d4937084f73a4fc51
+URL:		https://pypi.org/project/opentelemetry-sdk/
+BuildRequires:	python3-build
+BuildRequires:	python3-hatchling
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.9
+%if %{with tests}
+BuildRequires:	python3-opentelemetry-api = 1.39.1
+BuildRequires:	python3-opentelemetry-semantic-conventions = 0.60
+BuildRequires:	python3-opentelemetry-test-utils = 0.60
+BuildRequires:	python3-pytest
+BuildRequires:	python3-typing_extensions >= 4.5.0
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+Requires:	python3-modules >= 1:3.9
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+OpenTelemetry Python SDK.
+
+%description -l pl.UTF-8
+SDK OpenTelemetry dla Pythona.
+
+%prep
+%setup -q -n opentelemetry_sdk-%{version}
+
+# ensure python is python3 fo tests/trace/test_trace.py
+install -d tests/bin
+ln -sf %{__python3} tests/bin/python
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+# metadata is required for tests
+%{__python3} -m zipfile -e build-3/*.whl build-3-test
+PATH=$(pwd)/tests/bin \
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd)/build-3-test \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%{py3_sitescriptdir}/opentelemetry/sdk
+%{py3_sitescriptdir}/opentelemetry_sdk-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-opentelemetry-sdk.git/commitdiff/6ff3e549f4f5e9e9f2fc531967fa5feab9b57996



More information about the pld-cvs-commit mailing list