15
0

Accepting request 707407 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/707407
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-backoff?expand=0&rev=3
This commit is contained in:
2019-06-06 16:16:46 +00:00
committed by Git OBS Bridge
5 changed files with 33 additions and 8 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c1402291d7faca70ac3f2f7241e8942eb527f94945c7b2293030cfb6ce5a7805
size 10452

3
backoff-1.8.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c7187f15339e775aec926dc6e5e42f8a3ad7d3c2b9a6ecae7b535000f70cd838
size 13984

View File

@@ -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 <mcepl@suse.com>

View File

@@ -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

3
tests.tar.bz2 Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fdfc2863dc193ecf68ba0b1bdec0690f59bcff0734ec692436e62688fd3bd11c
size 4703