14
0

- update to 8.3.0:

* Added a new stop function: `stop_before_delay`, which will
    stop execution if the next sleep time would cause overall
    delay to exceed the specified delay. Useful for use cases
    where you have some upper bound on retry times that you must
    not exceed, so returning before that timeout is preferable
    than returning after that timeout.
  * Preserve __defaults__ and __kwdefaults__ through retry
    decorator
- use PEP517 build

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tenacity?expand=0&rev=49
This commit is contained in:
2024-06-10 07:51:05 +00:00
committed by Git OBS Bridge
parent 76e32f455e
commit 6a41dc338f
4 changed files with 24 additions and 8 deletions

View File

@@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Jun 10 07:49:32 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 8.3.0:
* Added a new stop function: `stop_before_delay`, which will
stop execution if the next sleep time would cause overall
delay to exceed the specified delay. Useful for use cases
where you have some upper bound on retry times that you must
not exceed, so returning before that timeout is preferable
than returning after that timeout.
* Preserve __defaults__ and __kwdefaults__ through retry
decorator
- use PEP517 build
-------------------------------------------------------------------
Mon Nov 27 16:09:05 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-tenacity
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,19 +18,21 @@
%{?sle15_python_module_pythons}
Name: python-tenacity
Version: 8.2.3
Version: 8.3.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 pip}
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: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Recommends: python-tornado
@@ -53,10 +55,10 @@ Features
%setup -q -n tenacity-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -66,6 +68,6 @@ Features
%license LICENSE
%doc README.rst
%{python_sitelib}/tenacity
%{python_sitelib}/tenacity-*egg-info
%{python_sitelib}/tenacity-%{version}.dist-info
%changelog

View File

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

3
tenacity-8.3.0.tar.gz Normal file
View File

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