2016-09-27 14:21:18 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-tenacity
|
|
|
|
#
|
2022-10-31 21:22:59 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2016-09-27 14:21:18 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-11 14:05:34 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-11-09 15:17:27 +01:00
|
|
|
#
|
2016-09-27 14:21:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
Name: python-tenacity
|
2022-11-11 14:38:39 +01:00
|
|
|
Version: 8.1.0
|
2016-09-27 14:21:18 +02:00
|
|
|
Release: 0
|
2018-10-19 09:15:04 +02:00
|
|
|
Summary: Python module for retrying code until it succeeeds
|
2016-11-09 15:17:27 +01:00
|
|
|
License: Apache-2.0
|
2016-09-27 14:21:18 +02:00
|
|
|
Group: Development/Languages/Python
|
2019-04-23 11:18:20 +02:00
|
|
|
URL: https://github.com/jd/tenacity
|
2018-01-10 21:54:07 +01:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/t/tenacity/tenacity-%{version}.tar.gz
|
2020-04-20 11:04:37 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-08-28 13:59:18 +02:00
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
2018-01-10 21:54:07 +01:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2020-04-20 11:04:37 +02:00
|
|
|
BuildRequires: %{python_module tornado}
|
2020-06-30 02:37:42 +02:00
|
|
|
BuildRequires: %{python_module typeguard}
|
2022-10-31 21:22:59 +01:00
|
|
|
BuildRequires: %{python_module typing-extensions}
|
2018-01-10 21:54:07 +01:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-04-20 11:04:37 +02:00
|
|
|
Recommends: python-tornado
|
|
|
|
BuildArch: noarch
|
2018-01-10 21:54:07 +01:00
|
|
|
%python_subpackages
|
|
|
|
|
2016-09-27 14:21:18 +02:00
|
|
|
%description
|
2018-01-11 10:11:24 +01:00
|
|
|
Tenacity is a general-purpose retrying library, written in Python, to simplify
|
|
|
|
the task of adding retry behavior to just about anything.
|
2016-09-27 14:21:18 +02:00
|
|
|
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
|
2018-01-10 21:54:07 +01:00
|
|
|
%python_build
|
2016-09-27 14:21:18 +02:00
|
|
|
|
|
|
|
%install
|
2018-01-10 21:54:07 +01:00
|
|
|
%python_install
|
2019-04-23 11:18:20 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2016-11-09 15:17:27 +01:00
|
|
|
|
2016-09-27 14:21:18 +02:00
|
|
|
%check
|
2019-08-28 13:59:18 +02:00
|
|
|
%pytest --ignore tenacity/tests/test_asyncio.py
|
2016-09-27 14:21:18 +02:00
|
|
|
|
2018-01-10 21:54:07 +01:00
|
|
|
%files %{python_files}
|
2018-10-11 14:05:34 +02:00
|
|
|
%license LICENSE
|
2019-08-28 13:59:18 +02:00
|
|
|
%doc README.rst
|
2022-11-11 17:21:09 +01:00
|
|
|
%{python_sitelib}/tenacity
|
|
|
|
%{python_sitelib}/tenacity-*egg-info
|
2016-09-27 14:21:18 +02:00
|
|
|
|
|
|
|
%changelog
|