From ab426ea367a4d3db6444629349ace8fc00c4074b5e604b2d9c76bb1507957efb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 2 Jun 2025 15:01:52 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opencensus-ext-azure?expand=0&rev=14 --- python-opencensus-ext-azure.changes | 5 +++++ python-opencensus-ext-azure.spec | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/python-opencensus-ext-azure.changes b/python-opencensus-ext-azure.changes index 3ca115b..fd015d3 100644 --- a/python-opencensus-ext-azure.changes +++ b/python-opencensus-ext-azure.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 2 15:01:34 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Thu Feb 6 12:38:45 UTC 2025 - Daniel Garcia diff --git a/python-opencensus-ext-azure.spec b/python-opencensus-ext-azure.spec index 56d1fba..a8dd097 100644 --- a/python-opencensus-ext-azure.spec +++ b/python-opencensus-ext-azure.spec @@ -17,7 +17,6 @@ %define repo_version 0.11.4-1.1.14 - %{?sle15_python_module_pythons} Name: python-opencensus-ext-azure Version: 1.1.14 @@ -33,17 +32,19 @@ Patch1: python313.patch BuildRequires: %{python_module azure-core >= 1.12.0} BuildRequires: %{python_module azure-identity >= 1.5.0} BuildRequires: %{python_module opencensus >= 0.11.0} +BuildRequires: %{python_module pip} BuildRequires: %{python_module psutil >= 5.6.3} BuildRequires: %{python_module requests >= 2.19.0} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildArch: noarch Requires: python-azure-core >= 1.12.0 Requires: python-azure-identity >= 1.5.0 Requires: python-opencensus >= 0.11.0 Requires: python-psutil >= 5.6.3 Requires: python-requests >= 2.19.0 +BuildArch: noarch %python_subpackages %description @@ -58,10 +59,10 @@ popd touch tests/__init__.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %{python_expand # delete common files rm -rf %{buildroot}%{$python_sitelib}/opencensus/__init__.* @@ -73,7 +74,7 @@ rm -rf %{buildroot}%{$python_sitelib}/opencensus/ext/__pycache__ } %check -%python_exec -m unittest discover -v +%pyunittest -v %files %{python_files} %doc CHANGELOG.md README.rst