commit f3929488e330c3201b358806da03a775e6366e719d08f7fddf1583549318e22d Author: Nico Krapp Date: Thu Sep 5 09:28:46 2024 +0000 Accepting request 1198833 from home:glaubitz:branches:devel:languages:python - Initial build * Version 0.48b0 OBS-URL: https://build.opensuse.org/request/show/1198833 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opentelemetry-instrumentation-fastapi?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..6996b96 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/opentelemetry_instrumentation_fastapi-0.48b0.tar.gz b/opentelemetry_instrumentation_fastapi-0.48b0.tar.gz new file mode 100644 index 0000000..ba56690 --- /dev/null +++ b/opentelemetry_instrumentation_fastapi-0.48b0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21a72563ea412c0b535815aeed75fc580240f1f02ebc72381cfab672648637a2 +size 18497 diff --git a/python-opentelemetry-instrumentation-fastapi.changes b/python-opentelemetry-instrumentation-fastapi.changes new file mode 100644 index 0000000..52309b1 --- /dev/null +++ b/python-opentelemetry-instrumentation-fastapi.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Wed Sep 4 21:30:09 UTC 2024 - John Paul Adrian Glaubitz + +- Initial build + * Version 0.48b0 diff --git a/python-opentelemetry-instrumentation-fastapi.spec b/python-opentelemetry-instrumentation-fastapi.spec new file mode 100644 index 0000000..9deb9d1 --- /dev/null +++ b/python-opentelemetry-instrumentation-fastapi.spec @@ -0,0 +1,89 @@ +# +# spec file for package python-opentelemetry-instrumentation-fastapi +# +# 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/ +# + +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif + +%{?sle15_python_module_pythons} +Name: python-opentelemetry-instrumentation-fastapi%{?psuffix} +Version: 0.48b0 +Release: 0 +Summary: OpenTelemetry FastAPI Instrumentation +License: Apache-2.0 +URL: https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation/opentelemetry-instrumentation-fastapi +Source: https://files.pythonhosted.org/packages/source/o/opentelemetry_instrumentation_fastapi/opentelemetry_instrumentation_fastapi-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros +%if %{with test} +BuildRequires: %{python_module fastapi >= 0.58} +BuildRequires: %{python_module httpx} +BuildRequires: %{python_module opentelemetry-instrumentation-fastapi = %{version}} +BuildRequires: %{python_module opentelemetry-test-utils == 0.48b0} +BuildRequires: %{python_module pytest} +%endif +BuildRequires: %{python_module opentelemetry-api >= 1.12} +BuildRequires: %{python_module opentelemetry-instrumentation = 0.48b0} +BuildRequires: %{python_module hatchling} +BuildRequires: fdupes +Requires: python-opentelemetry-api >= 1.12 +Requires: python-opentelemetry-instrumentation-asgi = 0.48b0 +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 automatic and manual instrumentation of FastAPI web frameworks, +instrumenting http requests served by applications utilizing the framework. + +Auto-instrumentation using the opentelemetry-instrumentation package is also supported. + +%prep +%setup -q -n opentelemetry_instrumentation_fastapi-%{version} + +%if !%{with test} +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%endif + +%if %{with test} +%check +%pytest +%endif + +%if !%{with test} +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/opentelemetry/instrumentation/fastapi +%{python_sitelib}/opentelemetry_instrumentation_fastapi-%{version}.dist-info +%endif + +%changelog