diff --git a/python-tenacity.changes b/python-tenacity.changes index 9f9ee35..99d8ea6 100644 --- a/python-tenacity.changes +++ b/python-tenacity.changes @@ -1,3 +1,21 @@ +------------------------------------------------------------------- +Wed Jan 10 20:48:41 UTC 2018 - toddrme2178@gmail.com + +- update to 4.8.0 + * Allow waiters to introspect last result +- update to 4.7.1 + * Missed top level import of stop\_when\_event\_set + * Mention Tornado minimum version in README + * Fix unless\_exception test names and add no input test +- update to 4.7.0 + * Add Tornado support + * Fix pep8 +- update to 4.6.1 + * Simplify wrapping code +- update to 4.6.0 + * Implement \`retry\_with' on decorated functions +- Implement single-spec version + ------------------------------------------------------------------- Thu Nov 2 23:20:11 UTC 2017 - dmueller@suse.com diff --git a/python-tenacity.spec b/python-tenacity.spec index f522742..478032a 100644 --- a/python-tenacity.spec +++ b/python-tenacity.spec @@ -1,7 +1,7 @@ # # spec file for package python-tenacity # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -16,26 +16,38 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test Name: python-tenacity -Version: 4.5.0 +Version: 4.8.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-devel +Source: https://files.pythonhosted.org/packages/source/t/tenacity/tenacity-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module monotonic >= 0.6} +BuildRequires: %{python_module pbr} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six >= 1.7.0} +BuildRequires: fdupes 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 +BuildRequires: python-rpm-macros +%if %{with test} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module tornado} +%endif Requires: python-monotonic >= 0.6 Requires: python-six >= 1.9.0 -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Recommends: python-tornado +%ifpython2 +Requires: python-futures >= 3.0 +%endif BuildArch: noarch +%python_subpackages + %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. @@ -52,15 +64,18 @@ Features %setup -q -n tenacity-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} +%if %{with test} %check -python setup.py test +%python_exec setup.py nosetests --ignore-files '.*async.py' +%endif -%files +%files %{python_files} %defattr(-,root,root,-) %doc AUTHORS ChangeLog LICENSE README.rst %{python_sitelib}/* diff --git a/tenacity-4.5.0.tar.gz b/tenacity-4.5.0.tar.gz deleted file mode 100644 index 27d8d1b..0000000 --- a/tenacity-4.5.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e5eb0009d7fef345ffd27e43122ec288418b460952aeefde60df8e62c3953d4b -size 26567 diff --git a/tenacity-4.8.0.tar.gz b/tenacity-4.8.0.tar.gz new file mode 100644 index 0000000..0f4207c --- /dev/null +++ b/tenacity-4.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f144a1cdbef3ca2f8a08ead74864d4fc26ea31c64806ca8ae030acb652629d9d +size 28057