Files
python-tenacity/python-tenacity.spec
Thomas Bechtold 8869c7013d Accepting request 518052 from home:tbechtold:branches:devel:languages:python
- update to 4.4.0:
  * Document wait\_random\_exponential strategy
  * Rename wait\_full\_jitter to wait\_random\_exponential
  * Add retry\_unless\_exception\_type
  * Add missing ')' to README.rst
  * Do not duplicate statistics fields in instance
  * Do not start trial\_start\_time as an attribute
  * Add an example on how to combine stop conditions
  * Put a link to the GitHub issue of retrying about the fork
  * feat: added wait\_full\_jitter
  * Add new event based sleep and stop
  * Add \`wraps' method directly on Retrying object
  * wait: handle OverflowError
  * doc: raise Exception in example so they actually work
  * Remove weird example with retry\_if\_io\_error
  * Bump version for new feature
  * Add Python 3.6 support
  * Add retry\_if\_not\_result class to compliment the existing retry\_if\_result class
  * Fix six minimum version
  * doc: rewrite the before explanation
  * Add \_\_call\_\_ on BaseRetrying class
  * Document before and after keywords
  * Remove useless MANIFEST
  * Remove non-working PyPI download image
  * Bump hacking to 0.13
  * Use Python 3 for pep8 tox target
  * Remove deprecated wait\_jitter

OBS-URL: https://build.opensuse.org/request/show/518052
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tenacity?expand=0&rev=7
2017-08-22 06:37:48 +00:00

70 lines
2.2 KiB
RPMSpec

#
# spec file for package python-tenacity
#
# Copyright (c) 2017 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-tenacity
Version: 4.4.0
Release: 0
Summary: Retry code until it succeeeds
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/jd/tenacity
Source: https://pypi.io/packages/source/t/tenacity/tenacity-%{version}.tar.gz
BuildRequires: python-debtcollector
BuildRequires: python-devel
BuildRequires: python-futures >= 3.0
BuildRequires: python-monotonic >= 0.6
BuildRequires: python-pbr
BuildRequires: python-setuptools
BuildRequires: python-six >= 1.7.0
Requires: python-futures >= 3.0
Requires: python-monotonic >= 0.6
Requires: python-six >= 1.9.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
Tenacity is an Apache 2.0 licensed general-purpose retrying library, written in
Python, to simplify the task of adding retry behavior to just about anything.
It originates from a fork of `Retrying`_
Features
--------
- Generic Decorator API
- Specify stop condition (i.e. limit by number of attempts)
- Specify wait condition (i.e. exponential backoff sleeping between attempts)
- Customize retrying on Exceptions
- Customize retrying on expected returned result
%prep
%setup -q -n tenacity-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
python setup.py test
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog LICENSE README.rst
%{python_sitelib}/*
%changelog