15
0

Accepting request 1156704 from home:glaubitz:branches:devel:languages:python

- Update to 0.11.4
  * Changed bit-mapping for `httpx` and `fastapi` integrations
- Refresh patches for new version
  * opencensus-pr1002-remove-mock.patch
- 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/1156704
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opencensus?expand=0&rev=15
This commit is contained in:
2024-03-10 11:20:58 +00:00
committed by Git OBS Bridge
parent e8d8d686bb
commit b60a4964b8
5 changed files with 272 additions and 335 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file
# spec file for package python-opencensus
#
# Copyright (c) 2023 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
@@ -16,7 +16,9 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define repo_version 0.11.4-1.1.13
%{?sle15_python_module_pythons}
%global flavor @BUILD_FLAVOR@%{nil}
%if "%{flavor}" == "test"
%define psuffix -test
@@ -26,12 +28,12 @@
%bcond_with test
%endif
Name: python-opencensus%{psuffix}
Version: 0.11.3
Version: 0.11.4
Release: 0
Summary: A stats collection and distributed tracing framework
License: Apache-2.0
URL: https://github.com/census-instrumentation/opencensus-python
Source: https://github.com/census-instrumentation/opencensus-python/archive/v%{version}.tar.gz#/opencensus-python-%{version}-gh.tar.gz
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 setuptools}
@@ -44,7 +46,7 @@ Requires: python-six >= 1.16
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module google-api-core >= 1.0.0}
BuildRequires: %{python_module opencensus >= %{version}}
BuildRequires: %{python_module opencensus >= %{repo_version}}
BuildRequires: %{python_module opencensus-context >= 0.1.1}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module retrying}
@@ -59,7 +61,7 @@ and collect performance stats. This repository contains Python related
utilities and supporting software needed by OpenCensus.
%prep
%autosetup -p1 -n opencensus-python-%{version}
%autosetup -p1 -n opencensus-python-%{repo_version}
# do not hardcode versions
sed -i -e 's:==:>=:g' setup.py