From cb860379a896dc6c2c5ee3ddf631ab2751c19a21e3adb9c39c530ac574e1b607 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 6 Mar 2024 11:44:14 +0000 Subject: [PATCH] Accepting request 1155523 from home:glaubitz:branches:devel:languages:python - Switch package to modern Python Stack on SLE-15 + Add %{?sle15_python_module_pythons} + Drop %{?!python_module:%define python_module() python-%{**} python3-%{**}} + Drop build support for Python 2.x OBS-URL: https://build.opensuse.org/request/show/1155523 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opencensus-ext-azure?expand=0&rev=8 --- python-opencensus-ext-azure.changes | 8 ++++++++ python-opencensus-ext-azure.spec | 16 +++------------- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/python-opencensus-ext-azure.changes b/python-opencensus-ext-azure.changes index 257944f..b5f452a 100644 --- a/python-opencensus-ext-azure.changes +++ b/python-opencensus-ext-azure.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Mar 5 23:04:08 UTC 2024 - John Paul Adrian Glaubitz + +- Switch package to modern Python Stack on SLE-15 + + Add %{?sle15_python_module_pythons} + + Drop %{?!python_module:%define python_module() python-%{**} python3-%{**}} + + Drop build support for Python 2.x + ------------------------------------------------------------------- Tue Oct 18 11:45:21 UTC 2022 - John Paul Adrian Glaubitz diff --git a/python-opencensus-ext-azure.spec b/python-opencensus-ext-azure.spec index c519900..6198e9b 100644 --- a/python-opencensus-ext-azure.spec +++ b/python-opencensus-ext-azure.spec @@ -1,7 +1,7 @@ # # spec file for package python-opencensus-ext-azure # -# Copyright (c) 2022 SUSE LLC +# 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 @@ -17,14 +17,8 @@ %define repo_version 0.11.0 -%if 0%{?suse_version} >= 1500 -# mirror python-azure-core -%define skip_python2 1 -%bcond_with python2 -%else -%bcond_with python2 -%endif -%{?!python_module:%define python_module() python-%{**} python3-%{**}} + +%{?sle15_python_module_pythons} Name: python-opencensus-ext-azure Version: 1.1.6 Release: 0 @@ -42,10 +36,6 @@ BuildRequires: %{python_module requests >= 2.19.0} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -%if %{with python2} -BuildRequires: python-mock -BuildRequires: python-unittest2 -%endif BuildArch: noarch Requires: python-azure-core >= 1.12.0 Requires: python-azure-identity >= 1.5.0