diff --git a/python-tenacity.changes b/python-tenacity.changes index f610a10..aa4064c 100644 --- a/python-tenacity.changes +++ b/python-tenacity.changes @@ -1,3 +1,17 @@ +------------------------------------------------------------------- +Mon Jun 10 07:49:32 UTC 2024 - Dirk Müller + +- 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 diff --git a/python-tenacity.spec b/python-tenacity.spec index 0e449fd..4e8188c 100644 --- a/python-tenacity.spec +++ b/python-tenacity.spec @@ -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 diff --git a/tenacity-8.2.3.tar.gz b/tenacity-8.2.3.tar.gz deleted file mode 100644 index 0a141e2..0000000 --- a/tenacity-8.2.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5398ef0d78e63f40007c1fb4c0bff96e1911394d2fa8d194f77619c05ff6cc8a -size 40651 diff --git a/tenacity-8.3.0.tar.gz b/tenacity-8.3.0.tar.gz new file mode 100644 index 0000000..c4b47d5 --- /dev/null +++ b/tenacity-8.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:953d4e6ad24357bceffbc9707bc74349aca9d245f68eb65419cf0c249a1949a2 +size 43608