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