From 106cbdd7c9272c252e80dd457d25cb665264785a0662f5899becad67cfb63ab5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 18 Feb 2020 08:47:38 +0000 Subject: [PATCH] - 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 --- python-opencensus.changes | 8 ++++++++ python-opencensus.spec | 19 ++++++++++++++++--- v0.7.6.tar.gz | 3 --- v0.7.7.tar.gz | 3 +++ 4 files changed, 27 insertions(+), 6 deletions(-) delete mode 100644 v0.7.6.tar.gz create mode 100644 v0.7.7.tar.gz diff --git a/python-opencensus.changes b/python-opencensus.changes index 7258fc9..7ca1f7b 100644 --- a/python-opencensus.changes +++ b/python-opencensus.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Feb 18 08:47:16 UTC 2020 - Tomáš Chvátal + +- Update to 0.7.7: + * Minor fixes +- Fix dependencies +- Enable testsuite + ------------------------------------------------------------------- Wed Jan 29 12:57:16 UTC 2020 - John Paul Adrian Glaubitz diff --git a/python-opencensus.spec b/python-opencensus.spec index 0c5ff6b..2bd4978 100644 --- a/python-opencensus.spec +++ b/python-opencensus.spec @@ -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 diff --git a/v0.7.6.tar.gz b/v0.7.6.tar.gz deleted file mode 100644 index 39ac54d..0000000 --- a/v0.7.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ea8b7911b1092bb13be37642dfa18cf8fdd49b0f16a986b52acda8ae6545f7a1 -size 289731 diff --git a/v0.7.7.tar.gz b/v0.7.7.tar.gz new file mode 100644 index 0000000..5d3aef0 --- /dev/null +++ b/v0.7.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7783dcf1ade1b062482817c0ce816b50f96c6cc9a36bf4f1df550e2f22ed0109 +size 291336