diff --git a/backoff-1.5.0.tar.gz b/backoff-1.5.0.tar.gz deleted file mode 100644 index 2c2bd6a..0000000 --- a/backoff-1.5.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c1402291d7faca70ac3f2f7241e8942eb527f94945c7b2293030cfb6ce5a7805 -size 10452 diff --git a/backoff-1.8.0.tar.gz b/backoff-1.8.0.tar.gz new file mode 100644 index 0000000..58c7902 --- /dev/null +++ b/backoff-1.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c7187f15339e775aec926dc6e5e42f8a3ad7d3c2b9a6ecae7b535000f70cd838 +size 13984 diff --git a/python-backoff.changes b/python-backoff.changes index d147f4f..80d40c1 100644 --- a/python-backoff.changes +++ b/python-backoff.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Tue Jun 4 06:33:28 UTC 2019 - pgajdos@suse.com + +- version update to 1.8.0 + - Change default log level from ERROR to INFO + - Log retries on exception as INFO + - Support Python 3.7 + - Give up on StopIteration raised in wait generators + - Iterable intervals for constant wait_gen for predefined wait sequences + - Nullary jitter signature deprecation warning + - Custom loggers + ------------------------------------------------------------------- Tue Dec 4 12:45:56 UTC 2018 - Matej Cepl diff --git a/python-backoff.spec b/python-backoff.spec index 9443a63..ce06adf 100644 --- a/python-backoff.spec +++ b/python-backoff.spec @@ -1,7 +1,7 @@ # # spec file for package python-backoff # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,16 +17,21 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without test Name: python-backoff -Version: 1.5.0 +Version: 1.8.0 Release: 0 Summary: Function decoration for backoff and retry License: MIT Group: Development/Languages/Python Url: https://github.com/litl/backoff -Source: https://files.pythonhosted.org/packages/source/b/backoff/backoff-%{version}.tar.gz +Source0: https://files.pythonhosted.org/packages/source/b/backoff/backoff-%{version}.tar.gz +# https://github.com/litl/backoff/issues/75 +# github repo does not have setup.py +Source1: tests.tar.bz2 BuildRequires: %{python_module setuptools} +# SECTION test requirements +BuildRequires: %{python_module pytest} +# /SECTION BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -46,7 +51,7 @@ Decorators support both regular functions for synchronous code and for asynchronous code. %prep -%setup -q -n backoff-%{version} +%setup -q -n backoff-%{version} -a1 %build %python_build @@ -55,6 +60,11 @@ for asynchronous code. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%check +# will not work with python 2.7 +rm -r tests/python35 +%pytest + %files %{python_files} %defattr(-,root,root,-) %doc README.rst diff --git a/tests.tar.bz2 b/tests.tar.bz2 new file mode 100644 index 0000000..ec56c31 --- /dev/null +++ b/tests.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fdfc2863dc193ecf68ba0b1bdec0690f59bcff0734ec692436e62688fd3bd11c +size 4703