Hello community,
here is the log from the commit of package python-retry_decorator for
openSUSE:Factory checked in at 2019-05-21 10:40:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-retry_decorator (Old)
and /work/SRC/openSUSE:Factory/.python-retry_decorator.new.5148 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-retry_decorator"
Tue May 21 10:40:53 2019 rev:6 rq:704264 version:1.0.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-retry_decorator/python-retry_decorator.changes
2014-02-22 18:16:43.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.python-retry_decorator.new.5148/python-retry_decorator.changes
2019-05-21 10:41:07.523058228 +0200
@@ -1,0 +2,6 @@
+Mon May 20 11:29:32 UTC 2019 - [email protected]
+
+- single spec
+- run test
+
+-------------------------------------------------------------------
Old:
----
retry_decorator-1.0.0.tar.gz
New:
----
v1.0.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-retry_decorator.spec ++++++
--- /var/tmp/diff_new_pack.Nb1CXX/_old 2019-05-21 10:41:10.243056461 +0200
+++ /var/tmp/diff_new_pack.Nb1CXX/_new 2019-05-21 10:41:10.243056461 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-retry_decorator
#
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -12,41 +12,47 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-retry_decorator
Version: 1.0.0
Release: 0
-Summary: Retry on Exception
+Summary: Retry Decorator
License: MIT
Group: Development/Languages/Python
Url: https://github.com/pnpnpn/retry-decorator
-Source0:
https://pypi.python.org/packages/source/r/retry_decorator/retry_decorator-%{version}.tar.gz
-BuildRequires: python-setuptools
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
+# https://github.com/pnpnpn/retry-decorator/issues/15
+Source:
https://github.com/pnpnpn/retry-decorator/archive/v%{version}.tar.gz
+BuildRequires: %{python_module devel}
+BuildRequires: %{python_module setuptools}
+BuildRequires: fdupes
+BuildRequires: python-rpm-macros
BuildArch: noarch
-%endif
+
+%python_subpackages
%description
-Decorator to support retry when an exception occurs
+Decorator to support retry when an exception occurs.
%prep
-%setup -q -n retry_decorator-%{version}
+%setup -q -n retry-decorator-%{version}
%build
-python setup.py build
+%python_build
%install
-python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
-%files
-%defattr(-,root,root,-)
-%doc README.rst LICENSE.txt CHANGES.txt
+%files %{python_files}
+%license LICENSE.txt
+%doc README.rst CHANGES.txt
%{python_sitelib}/*
+%check
+%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python
tests/test_retry.py
+
%changelog