summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2024-02-11 16:13:27 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2024-02-11 16:13:27 +0000
commitdbb8987d0d3f98826469227b38e89c6c988aca45 (patch)
treeb935fb8bbe9ca9e3bb885ea2bb412ca91555a881
parent0b951fbdf734418fb67f2bbac02e4ef789b04baa (diff)
automatic import of python-opentelemetry-sdk-extension-awsHEADmasterf39f38
-rw-r--r--.gitignore1
-rw-r--r--python-opentelemetry-sdk-extension-aws.spec77
-rw-r--r--sources1
3 files changed, 79 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9bcbd1a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/opentelemetry-python-contrib-opentelemetry-sdk-extension-aws-2.0.1.tar.gz
diff --git a/python-opentelemetry-sdk-extension-aws.spec b/python-opentelemetry-sdk-extension-aws.spec
new file mode 100644
index 0000000..147af57
--- /dev/null
+++ b/python-opentelemetry-sdk-extension-aws.spec
@@ -0,0 +1,77 @@
+Name: python-opentelemetry-sdk-extension-aws
+Version: 2.0.1
+Release: %autorelease -b 52
+Summary: AWS SDK extension for OpenTelemetry
+
+# PyPI source distributions lacks tests; use the GitHub archive even though it
+# includes many other packages maintained in the same repository
+%global forgeurl https://github.com/open-telemetry/opentelemetry-python-contrib
+# Having the equals character appear in the source filename breaks everything,
+# and the build breaks because a source named %%{version}.tar.gz is not
+# present. Using the url-escaped version of the tag is a workaround.
+%global tag opentelemetry-sdk-extension-aws%%3D%%3D%{version}
+# As a peculiarity of GitHub when the tag contains the equals character, the
+# archive name (and the name of the directory containing the extracted sources)
+# does not exactly match the tag.
+%global extractdir opentelemetry-python-contrib-%(echo '%{tag}' | sed -r 's/(%%3D)+/-/')
+
+License: Apache-2.0
+URL: https://pypi.org/project/opentelemetry-sdk-extension-aws
+Source: %{forgeurl}/archive/%{tag}/%{extractdir}.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: python3-devel
+# Maintaining manual test dependencies is easier than trying to generate them
+# from the top-level tox.ini.
+BuildRequires: %{py3_dist pytest}
+BuildRequires: %{py3_dist pytest-benchmark}
+
+%global common_description %{expand:
+This library provides components necessary to configure the OpenTelemetry SDK
+for tracing with AWS X-Ray.}
+
+%description %{common_description}
+
+
+%package -n python3-opentelemetry-sdk-extension-aws
+Summary: %{summary}
+
+%description -n python3-opentelemetry-sdk-extension-aws %{common_description}
+
+
+%prep
+%autosetup -n %{extractdir}
+
+
+%generate_buildrequires
+cd sdk-extension/opentelemetry-sdk-extension-aws
+%pyproject_buildrequires -x test
+
+
+%build
+cd sdk-extension/opentelemetry-sdk-extension-aws
+%pyproject_wheel
+
+
+%install
+cd sdk-extension/opentelemetry-sdk-extension-aws
+%pyproject_install
+# The opentelemetry and opentelemetry/sdk directies are shared
+# namespace package directories; they are co-owned with other opentelemetry
+# packages, including subpackages of python-opentelemetry and/or
+# python-opentelemetry-contrib. See RHBZ#1935266.
+%pyproject_save_files -l opentelemetry
+
+
+%check
+cd sdk-extension/opentelemetry-sdk-extension-aws
+%pytest -v
+
+
+%files -n python3-opentelemetry-sdk-extension-aws -f %{pyproject_files}
+%doc sdk-extension/opentelemetry-sdk-extension-aws/README.rst
+
+
+%changelog
+%autochangelog
diff --git a/sources b/sources
new file mode 100644
index 0000000..02a7684
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+6bd4bdff6973489423035945ae9dae62 opentelemetry-python-contrib-opentelemetry-sdk-extension-aws-2.0.1.tar.gz