1
0

Accepting request 927112 from home:bnavigator:branches:devel:languages:python

- Update to 0.8.0
  * Added integration tracking functionality, includes django,
    flask, http-lib, logging, mysql, postgresql, pymongo, pymysql,
    pyramid, requests, sqlalchemy modules (#1065)
  * Support Python 3.8, 3.9 (#1048)
- Releases 0.7.8 to 0.7.13
  * Updated azure, django, flask, requests, grpc, httplib, pyramid
    stackdriver modules
  * Hotfix for breaking change (#915)
- Remove test mock requirement for python3
  * opencensus-pr1002-remove-mock.patch
  * gh#census-instrumentation/opencensus-python#1002

OBS-URL: https://build.opensuse.org/request/show/927112
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opencensus?expand=0&rev=6
This commit is contained in:
2021-10-24 21:42:47 +00:00
committed by Git OBS Bridge
parent 6465eead26
commit 2c2cc9e70c
5 changed files with 1318 additions and 14 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5242f3e64e41f514a2afaac8fa6b6be3225f7145758c753368a2932bf5eaad83
size 307635

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Sat Oct 23 10:47:21 UTC 2021 - Ben Greiner <code@bnavigator.de>
- Update to 0.8.0
* Added integration tracking functionality, includes django,
flask, http-lib, logging, mysql, postgresql, pymongo, pymysql,
pyramid, requests, sqlalchemy modules (#1065)
* Support Python 3.8, 3.9 (#1048)
- Releases 0.7.8 to 0.7.13
* Updated azure, django, flask, requests, grpc, httplib, pyramid
stackdriver modules
* Hotfix for breaking change (#915)
- Remove test mock requirement for python3
* opencensus-pr1002-remove-mock.patch
* gh#census-instrumentation/opencensus-python#1002
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Mar 10 12:56:01 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com> Tue Mar 10 12:56:01 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-opencensus # spec file
# #
# Copyright (c) 2020 SUSE LLC # Copyright (c) 2021 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -27,30 +27,32 @@
%endif %endif
%bcond_without python2 %bcond_without python2
Name: python-opencensus%{psuffix} Name: python-opencensus%{psuffix}
Version: 0.7.7 Version: 0.8.0
Release: 0 Release: 0
Summary: A stats collection and distributed tracing framework Summary: A stats collection and distributed tracing framework
License: Apache-2.0 License: Apache-2.0
URL: https://github.com/census-instrumentation/opencensus-python URL: https://github.com/census-instrumentation/opencensus-python
Source: https://github.com/census-instrumentation/opencensus-python/archive/v%{version}.tar.gz Source: https://github.com/census-instrumentation/opencensus-python/archive/v%{version}.tar.gz#/opencensus-python-%{version}-gh.tar.gz
# PATCH-FIX-UPSTREAM opencensus-pr1002-remove-mock.patch -- gh#census-instrumentation/opencensus-python#1002
Patch0: https://github.com/census-instrumentation/opencensus-python/pull/1002.patch#/opencensus-pr1002-remove-mock.patch
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-google-api-core < 2.0.0 Requires: python-google-api-core < 3.0.0
Requires: python-google-api-core >= 1.0.0 Requires: python-google-api-core >= 1.0.0
Requires: python-opencensus-context >= 0.1.1 Requires: python-opencensus-context >= 0.1.2
BuildArch: noarch BuildArch: noarch
%if %{with test} %if %{with test}
BuildRequires: %{python_module google-api-core >= 1.0.0} BuildRequires: %{python_module google-api-core >= 1.0.0}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module opencensus >= %{version}} BuildRequires: %{python_module opencensus >= %{version}}
BuildRequires: %{python_module opencensus-context >= 0.1.1} BuildRequires: %{python_module opencensus-context >= 0.1.1}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module retrying} BuildRequires: %{python_module retrying}
%endif
%if %{with python2} %if %{with python2}
BuildRequires: python-mock
BuildRequires: python-unittest2 BuildRequires: python-unittest2
%endif %endif
%endif
%python_subpackages %python_subpackages
%description %description
@@ -61,7 +63,7 @@ and collect performance stats. This repository contains Python related
utilities and supporting software needed by OpenCensus. utilities and supporting software needed by OpenCensus.
%prep %prep
%setup -q -n opencensus-python-%{version} %autosetup -p1 -n opencensus-python-%{version}
# do not hardcode versions # do not hardcode versions
sed -i -e 's:==:>=:g' setup.py sed -i -e 's:==:>=:g' setup.py
@@ -81,14 +83,17 @@ sed -i -e 's:==:>=:g' setup.py
%check %check
%if %{with test} %if %{with test}
%pytest tests/unit # recursion error in mock != 3; gh#census-instrumentation/opencensus-python#868
donttest="TestGetExporterThreadPeriodic and (test_multiple_producers or test_threaded_export)"
%pytest tests/unit -k "not ($donttest)"
%endif %endif
%if !%{with test} %if !%{with test}
%files %{python_files} %files %{python_files}
%doc CHANGELOG.md README.rst %doc CHANGELOG.md README.rst
%license LICENSE %license LICENSE
%{python_sitelib}/* %{python_sitelib}/opencensus
%{python_sitelib}/opencensus-%{version}*-info
%endif %endif
%changelog %changelog

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7783dcf1ade1b062482817c0ce816b50f96c6cc9a36bf4f1df550e2f22ed0109
size 291336