15
0

- Update to 0.7.7:

* Minor fixes
- Fix dependencies
- Enable testsuite

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-opencensus?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal
2020-02-18 08:47:38 +00:00
committed by Git OBS Bridge
parent 7e8e162608
commit 106cbdd7c9
4 changed files with 27 additions and 6 deletions

View File

@@ -17,21 +17,29 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-opencensus
Version: 0.7.6
Version: 0.7.7
Release: 0
Summary: A stats collection and distributed tracing framework
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/census-instrumentation/opencensus-python
Source: https://github.com/census-instrumentation/opencensus-python/archive/v%{version}.tar.gz
BuildRequires: %{python_module google-api-core >= 1.0.0}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module opencensus-context >= 0.1.1}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module retrying}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-google-api-core < 2.0.0
Requires: python-google-api-core >= 1.0.0
Requires: python-opencensus-context >= 0.2
Requires: python-opencensus-context >= 0.1.1
BuildArch: noarch
%if %{with python2}
BuildRequires: python-unittest2
%endif
%python_subpackages
%description
@@ -43,6 +51,8 @@ utilities and supporting software needed by OpenCensus.
%prep
%setup -q -n opencensus-python-%{version}
# do not hardcode versions
sed -i -e 's:==:>=:g' setup.py
%build
%python_build
@@ -51,6 +61,9 @@ utilities and supporting software needed by OpenCensus.
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest tests/unit
%files %{python_files}
%doc CHANGELOG.md README.rst
%license LICENSE