File python-opentelemetry-instrumentation-threading.spec of Package python-opentelemetry-instrumentation-threading

#
# spec file for package python-opentelemetry-instrumentation-threading
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           python-opentelemetry-instrumentation-threading
Version:        0.54b1
Release:        0
Summary:        Thread context propagation support for OpenTelemetry
License:        Apache-2.0
URL:            https://github.com/open-telemetry/opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-threading
Source:         https://files.pythonhosted.org/packages/source/o/opentelemetry-instrumentation-threading/opentelemetry_instrumentation_threading-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module hatchling}
BuildRequires:  %{python_module pip}
# SECTION test requirements
BuildRequires:  %{python_module opentelemetry-api >= 1.12}
BuildRequires:  %{python_module opentelemetry-instrumentation == %{version}}
BuildRequires:  %{python_module opentelemetry-test-utils}
BuildRequires:  %{python_module pytest}
BuildRequires:  %{python_module wrapt >= 1.0.0}
# /SECTION
BuildRequires:  fdupes
Requires:       python-opentelemetry-api >= 1.12
Requires:       python-opentelemetry-instrumentation == %{version}
Requires:       python-wrapt >= 1.0.0
BuildArch:      noarch
%python_subpackages

%description
This library provides instrumentation for the `threading` module to ensure that
the OpenTelemetry context is propagated across threads. It is important to note
that this instrumentation does not produce any telemetry data on its own. It
merely ensures that the context is correctly propagated when threads are used.

%prep
%autosetup -p1 -n opentelemetry_instrumentation_threading-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%check
%pytest

%files %{python_files}
%license LICENSE
%dir %{python_sitelib}/opentelemetry
%dir %{python_sitelib}/opentelemetry/instrumentation
%{python_sitelib}/opentelemetry/instrumentation/threading
%{python_sitelib}/opentelemetry_instrumentation_threading-%{version}.dist-info

%changelog
openSUSE Build Service is sponsored by