forked from pool/python-opencensus-ext-threading
Accepting request 865387 from home:bnavigator:branches:devel:languages:python
- Update base archive to opencensus-0.7.12 (no code change for ext-threading) - require futures only for python2 - Use pyunittest macro - Add remove-mock.patch gh#census-instrumentation/opencensus-python#1002 OBS-URL: https://build.opensuse.org/request/show/865387 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opencensus-ext-threading?expand=0&rev=4
This commit is contained in:
BIN
opencensus-0.7.12.tar.gz
LFS
Normal file
BIN
opencensus-0.7.12.tar.gz
LFS
Normal file
Binary file not shown.
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7783dcf1ade1b062482817c0ce816b50f96c6cc9a36bf4f1df550e2f22ed0109
|
||||
size 291336
|
||||
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 21 11:57:26 UTC 2021 - Benjamin Greiner <code@bnavigator.de>
|
||||
|
||||
- Update base archive to opencensus-0.7.12 (no code change for
|
||||
ext-threading)
|
||||
- require futures only for python2
|
||||
- Use pyunittest macro
|
||||
- Add remove-mock.patch
|
||||
gh#census-instrumentation/opencensus-python#1002
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 10 12:55:13 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-opencensus-ext-threading
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,8 +16,9 @@
|
||||
#
|
||||
|
||||
|
||||
%define repo_version 0.7.7
|
||||
%define repo_version 0.7.12
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without python2
|
||||
Name: python-opencensus-ext-threading
|
||||
Version: 0.1.2
|
||||
Release: 0
|
||||
@@ -25,11 +26,15 @@ Summary: OpenCensus threading Integration
|
||||
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 mock}
|
||||
# PATCH-FIX-UPSTREAM remove-mock.patch gh#census-instrumentation/opencensus-python#1002
|
||||
Patch0: remove-mock.patch
|
||||
BuildRequires: %{python_module opencensus}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
%if %{with python2}
|
||||
BuildRequires: python-futures
|
||||
BuildRequires: python-mock
|
||||
%endif
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-opencensus
|
||||
BuildArch: noarch
|
||||
@@ -43,6 +48,9 @@ OpenCensus threading Integration
|
||||
|
||||
%prep
|
||||
%setup -q -n opencensus-python-%{repo_version}/contrib/opencensus-ext-threading
|
||||
pushd ../..
|
||||
%patch0 -p1
|
||||
popd
|
||||
# for discovery to work
|
||||
touch tests/__init__.py
|
||||
|
||||
@@ -62,7 +70,7 @@ rm -rf %{buildroot}%{$python_sitelib}/opencensus/ext/__pycache__
|
||||
}
|
||||
|
||||
%check
|
||||
%python_exec -m unittest discover -v
|
||||
%pyunittest discover -v
|
||||
|
||||
%files %{python_files}
|
||||
%doc CHANGELOG.md README.rst
|
||||
|
||||
1230
remove-mock.patch
Normal file
1230
remove-mock.patch
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user