diff --git a/python-opentelemetry-sdk.changes b/python-opentelemetry-sdk.changes index cdc94ba..a42db77 100644 --- a/python-opentelemetry-sdk.changes +++ b/python-opentelemetry-sdk.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 10 09:42:02 UTC 2026 - Markéta Machová + +- Add python314.patch to fix tests with Python 3.14 + ------------------------------------------------------------------- Sun Dec 28 15:16:24 UTC 2025 - Dirk Müller diff --git a/python-opentelemetry-sdk.spec b/python-opentelemetry-sdk.spec index 1294bc6..7aa919e 100644 --- a/python-opentelemetry-sdk.spec +++ b/python-opentelemetry-sdk.spec @@ -1,7 +1,7 @@ # # spec file for package python-opentelemetry-sdk # -# Copyright (c) 2025 SUSE LLC and contributors +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -45,6 +45,8 @@ BuildRequires: %{python_module typing-extensions >= 3.7.4} %endif BuildRequires: fdupes BuildRequires: python-rpm-macros +# PATCH-FIX-UPSTREAM cherry-pick from https://github.com/open-telemetry/opentelemetry-python/pull/4798 add python 3.14 support +Patch0: python314.patch Requires: python-opentelemetry-api = %{version} Requires: python-opentelemetry-semantic-conventions = 0.60b0 Requires: python-typing-extensions >= 3.7.4 @@ -69,9 +71,7 @@ OpenTelemetry Python SDK for the OpenTelemetry Project +Date: Thu, 6 Nov 2025 10:32:01 -0300 +Subject: [PATCH] fix opentelemetry-sdk CI + +--- + opentelemetry-sdk/tests/context/test_asyncio.py | 4 +++- + opentelemetry-sdk/tests/logs/test_export.py | 4 +++- + 2 files changed, 6 insertions(+), 2 deletions(-) + +diff --git a/tests/context/test_asyncio.py b/tests/context/test_asyncio.py +index 7c5288a274e..2c5b27a135b 100644 +--- a/tests/context/test_asyncio.py ++++ b/tests/context/test_asyncio.py +@@ -60,10 +60,12 @@ def setUp(self): + self.memory_exporter = InMemorySpanExporter() + span_processor = export.SimpleSpanProcessor(self.memory_exporter) + self.tracer_provider.add_span_processor(span_processor) +- self.loop = asyncio.get_event_loop() ++ self.loop = asyncio.new_event_loop() ++ asyncio.set_event_loop(self.loop) + + def tearDown(self): + context.detach(self.token) ++ self.loop.close() + + @patch( + "opentelemetry.context._RUNTIME_CONTEXT", ContextVarsRuntimeContext() +diff --git a/tests/logs/test_export.py b/tests/logs/test_export.py +index 7570ed3a74f..4f65ab6b56d 100644 +--- a/tests/logs/test_export.py ++++ b/tests/logs/test_export.py +@@ -17,7 +17,9 @@ + import os + import time + import unittest +-from concurrent.futures import ThreadPoolExecutor ++from concurrent.futures import ( ++ ThreadPoolExecutor, # pylint: disable=no-name-in-module ++) + from sys import version_info + from unittest.mock import Mock, patch +