1
0
python-tenacity/python-tenacity.spec

71 lines
2.2 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-tenacity
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: python-tenacity
Accepting request 1034932 from home:yarunachalam:branches:devel:languages:python - Update to version 8.1.0, 8.0.1, 8.0.0, 7.0.0 * feat: Add retry_if_exception_cause_type (#362) * Support `datetime.timedelta` as a valid wait unit type (#342) * Show All Exception Predicates in Docs (#332) * Implement a wait.wait_exponential_jitter per Google's storage guide (#351) * Define a ClientError to fix Sphinx build errors (#352) * Merge pull request #340 from jd/fix-mergify * ci: fix Mergify config * Merge pull request #337 from william-silversmith/master * docs: show how to use retry_if_not_exception_type * Rickroll a function name in one of the examples (#331) * Fix after_log logger format (#317) * Drop `py2` tag from the wheel name (#320) * Add a __repr__ method to RetryCallState objects (#302) * Add type annotations to cover all code. (#315) * Fix #307 : Drop deprecated APIs (#314) * Fix DeprecationWarnings in tests (#313) * Do not package tests with tenacity (#308) * Fix issue #288 : __name__ and other attributes for async functions (#312) * Use f-strings instead of `str.format` as faster and easier to read (#311) * Replace abc.ABCMeta with abc.ABC (#310) * Remove encoding declarations (#309) * Merge pull request #306 from penguinolog/black_full_ci * Use black instead of "flake8-black" on CI. * Fix #291: drop python < 3.6 (#304) * Merge pull request #293 from and-semakin/drop_deprecated_pythons * Drop support for deprecated Python versions (2.7 and 3.5) * Add retry_if_not_exception_type() (#300) * Make logger more compatible (#294) * ci: fix pep8 error (#297) OBS-URL: https://build.opensuse.org/request/show/1034932 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tenacity?expand=0&rev=37
2022-11-11 14:38:39 +01:00
Version: 8.1.0
Release: 0
Summary: Python module for retrying code until it succeeeds
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/jd/tenacity
Source: https://files.pythonhosted.org/packages/source/t/tenacity/tenacity-%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tornado}
BuildRequires: %{python_module typeguard}
BuildRequires: %{python_module typing-extensions}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Recommends: python-tornado
BuildArch: noarch
%python_subpackages
%description
Tenacity is a 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_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest --ignore tenacity/tests/test_asyncio.py
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/tenacity
%{python_sitelib}/tenacity-*egg-info
%changelog