From c1f42ee6eb7010654ec9246cb9817fca374e3851bac01af4b95629a32b5082ae Mon Sep 17 00:00:00 2001 From: Robert Schweikert Date: Tue, 26 Mar 2024 13:03:28 +0000 Subject: [PATCH] Accepting request 1162276 from home:glaubitz:branches:devel:languages:python - Switch build system from setuptools to pyproject.toml + Add python-pip and python-wheel to BuildRequires + Replace %python_build with %pyproject_wheel + Replace %python_install with %pyproject_install OBS-URL: https://build.opensuse.org/request/show/1162276 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opencensus?expand=0&rev=16 --- python-opencensus.changes | 8 ++++++++ python-opencensus.spec | 6 ++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/python-opencensus.changes b/python-opencensus.changes index d640910..2ff0279 100644 --- a/python-opencensus.changes +++ b/python-opencensus.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Mar 26 12:57:43 UTC 2024 - John Paul Adrian Glaubitz + +- Switch build system from setuptools to pyproject.toml + + Add python-pip and python-wheel to BuildRequires + + Replace %python_build with %pyproject_wheel + + Replace %python_install with %pyproject_install + ------------------------------------------------------------------- Tue Mar 5 23:00:18 UTC 2024 - John Paul Adrian Glaubitz diff --git a/python-opencensus.spec b/python-opencensus.spec index c6cacc4..0cb425a 100644 --- a/python-opencensus.spec +++ b/python-opencensus.spec @@ -36,7 +36,9 @@ URL: https://github.com/census-instrumentation/opencensus-python Source: https://github.com/census-instrumentation/opencensus-python/archive/v%{repo_version}.tar.gz#/opencensus-python-%{repo_version}-gh.tar.gz # PATCH-FIX-UPSTREAM opencensus-pr1002-remove-mock.patch -- gh#census-instrumentation/opencensus-python#1002 Patch0: opencensus-pr1002-remove-mock.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-google-api-core < 3.0.0 @@ -66,11 +68,11 @@ utilities and supporting software needed by OpenCensus. sed -i -e 's:==:>=:g' setup.py %build -%python_build +%pyproject_wheel %install %if !%{with test} -%python_install +%pyproject_install # add ext infrastructure %python_expand mkdir %{buildroot}%{$python_sitelib}/opencensus/ext/ %python_expand cp %{buildroot}%{$python_sitelib}/opencensus/__init__* %{buildroot}%{$python_sitelib}/opencensus/ext