forked from pool/python-backoff
Accepting request 707395 from home:pgajdos
- 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 OBS-URL: https://build.opensuse.org/request/show/707395 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-backoff?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
b2a2e4814e
commit
a957e5e94b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user