15
0

Accepting request 1155573 from devel:languages:python

- Clean up the SPEC file
- 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/1155573
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-opencensus-context?expand=0&rev=4
This commit is contained in:
2024-03-06 22:06:07 +00:00
committed by Git OBS Bridge
2 changed files with 18 additions and 4 deletions

View File

@@ -1,3 +1,15 @@
-------------------------------------------------------------------
Wed Mar 6 13:32:29 UTC 2024 - Matej Cepl <mcepl@cepl.eu>
- Clean up the SPEC file
-------------------------------------------------------------------
Tue Mar 5 23:02:35 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- 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 <adrian.glaubitz@suse.com>

View File

@@ -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,7 @@
%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
@@ -25,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)}
BuildArch: noarch
%if 0%{python_version_nodots} == 36
Requires: python-contextvars
%endif
BuildArch: noarch
%python_subpackages
%description
@@ -41,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