Accepting request 1198830 from home:glaubitz:branches:devel:languages:python

- Initial build
  * Version 0.48b0

OBS-URL: https://build.opensuse.org/request/show/1198830
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opentelemetry-instrumentation-asgi?expand=0&rev=1
This commit is contained in:
2024-09-04 21:31:01 +00:00
committed by Git OBS Bridge
commit c45eb7394c
5 changed files with 102 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:04c32174b23c7fa72ddfe192dad874954968a6a924608079af9952964ecdf785
size 23435

View File

@@ -0,0 +1,5 @@
-------------------------------------------------------------------
Wed Sep 4 21:17:56 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Initial build
* Version 0.48b0

View File

@@ -0,0 +1,70 @@
#
# spec file for package python-opentelemetry-instrumentation-asgi
#
# Copyright (c) 2024 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/
#
%{?sle15_python_module_pythons}
Name: python-opentelemetry-instrumentation-asgi%{?psuffix}
Version: 0.48b0
Release: 0
Summary: ASGI instrumentation for OpenTelemetry
License: Apache-2.0
URL: https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-asgi
Source: https://files.pythonhosted.org/packages/source/o/opentelemetry_instrumentation_asgi/opentelemetry_instrumentation_asgi-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: python-rpm-macros
BuildRequires: %{python_module opentelemetry-test-utils = 0.48b0}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module opentelemetry-api >= 1.12}
BuildRequires: %{python_module opentelemetry-instrumentation = 0.48b0}
BuildRequires: %{python_module opentelemetry-semantic-conventions = 0.48b0}
BuildRequires: %{python_module opentelemetry-util-http = 0.48b0}
BuildRequires: %{python_module hatchling}
BuildRequires: fdupes
Requires: python-asgiref >= 3.0
Requires: python-opentelemetry-api >= 1.12
Requires: python-opentelemetry-instrumentation = 0.48b0
Requires: python-opentelemetry-semantic-conventions = 0.48b0
Requires: python-opentelemetry-util-http = 0.48b0
BuildArch: noarch
%python_subpackages
%description
This library provides a ASGI middleware that can be used on any ASGI framework
(such as Django, Starlette, FastAPI or Quart) to track requests timing through
OpenTelemetry.
%prep
%setup -q -n opentelemetry_instrumentation_asgi-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/opentelemetry/instrumentation/asgi
%{python_sitelib}/opentelemetry_instrumentation_asgi-%{version}.dist-info
%changelog