From 42c96a264e208ac16ef72ad7b462538b81e11f1f988dea80a92f8531d0b0134c Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 6 Mar 2024 13:31:08 +0000 Subject: [PATCH 1/3] Accepting request 1155522 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-%{**}} OBS-URL: https://build.opensuse.org/request/show/1155522 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opencensus-context?expand=0&rev=9 --- python-opencensus-context.changes | 7 +++++++ python-opencensus-context.spec | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/python-opencensus-context.changes b/python-opencensus-context.changes index 2b22273..a6e931f 100644 --- a/python-opencensus-context.changes +++ b/python-opencensus-context.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Mar 5 23:02:35 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-%{**}} + ------------------------------------------------------------------- Tue Oct 18 10:32:45 UTC 2022 - John Paul Adrian Glaubitz diff --git a/python-opencensus-context.spec b/python-opencensus-context.spec index 5016627..faec54b 100644 --- a/python-opencensus-context.spec +++ b/python-opencensus-context.spec @@ -1,7 +1,7 @@ # # spec file for package python-opencensus-context # -# 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,7 +17,8 @@ %define repo_version 0.11.0 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} + +%{?sle15_python_module_pythons} Name: python-opencensus-context Version: 0.1.3 Release: 0 From d9a204137602122ff97d0b19edaa67e73787836a11a2e80fc1da8f8aa6a16d46 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 6 Mar 2024 13:35:24 +0000 Subject: [PATCH 2/3] - Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opencensus-context?expand=0&rev=10 --- python-opencensus-context.changes | 5 +++++ python-opencensus-context.spec | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/python-opencensus-context.changes b/python-opencensus-context.changes index a6e931f..7ecf942 100644 --- a/python-opencensus-context.changes +++ b/python-opencensus-context.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 6 13:32:29 UTC 2024 - Matej Cepl + +- Clean up the SPEC file + ------------------------------------------------------------------- Tue Mar 5 23:02:35 UTC 2024 - John Paul Adrian Glaubitz diff --git a/python-opencensus-context.spec b/python-opencensus-context.spec index faec54b..440f16f 100644 --- a/python-opencensus-context.spec +++ b/python-opencensus-context.spec @@ -17,7 +17,6 @@ %define repo_version 0.11.0 - %{?sle15_python_module_pythons} Name: python-opencensus-context Version: 0.1.3 @@ -26,14 +25,16 @@ Summary: Python in-process context propogation License: Apache-2.0 URL: https://github.com/census-instrumentation/opencensus-python Source: https://github.com/census-instrumentation/opencensus-python/archive/v%{repo_version}.tar.gz#/opencensus-%{repo_version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: %{python_module contextvars if (%python-base >= 3.6 and %python-base < 3.7)} +BuildRequires: %{python_module contextvars if (%{python}-base >= 3.6 and %{python}-base < 3.7)} +BuildArch: noarch %if 0%{python_version_nodots} == 36 Requires: python-contextvars %endif -BuildArch: noarch %python_subpackages %description @@ -42,7 +43,7 @@ By default, thread local storage is used for Python 2.7, 3.4 and 3.5; contextvars is used for Python >= 3.6, which provides asyncio support. %prep -%setup -q -n opencensus-python-%{repo_version}/context/opencensus-context +%autosetup -p1 -n opencensus-python-%{repo_version}/context/opencensus-context # for discovery to work touch tests/__init__.py From 9efe9052180e77ba3115f94c23f8e34c72d2e603498e6c7a99f2edcc297ed188 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 6 Mar 2024 13:36:56 +0000 Subject: [PATCH 3/3] Remove braces OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opencensus-context?expand=0&rev=11 --- python-opencensus-context.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-opencensus-context.spec b/python-opencensus-context.spec index 440f16f..0dd9381 100644 --- a/python-opencensus-context.spec +++ b/python-opencensus-context.spec @@ -30,7 +30,7 @@ BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: %{python_module contextvars if (%{python}-base >= 3.6 and %{python}-base < 3.7)} +BuildRequires: %{python_module contextvars if (%python-base >= 3.6 and %python-base < 3.7)} BuildArch: noarch %if 0%{python_version_nodots} == 36 Requires: python-contextvars