Hello community,
here is the log from the commit of package python-retry_decorator for
openSUSE:Leap:15.2 checked in at 2020-03-02 13:22:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-retry_decorator (Old)
and /work/SRC/openSUSE:Leap:15.2/.python-retry_decorator.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-retry_decorator"
Mon Mar 2 13:22:18 2020 rev:11 rq:777097 version:1.0.0
Changes:
--------
---
/work/SRC/openSUSE:Leap:15.2/python-retry_decorator/python-retry_decorator.changes
2020-01-15 15:52:41.771572208 +0100
+++
/work/SRC/openSUSE:Leap:15.2/.python-retry_decorator.new.26092/python-retry_decorator.changes
2020-03-02 13:22:18.238272696 +0100
@@ -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.3B9767/_old 2020-03-02 13:22:19.130274470 +0100
+++ /var/tmp/diff_new_pack.3B9767/_new 2020-03-02 13:22:19.170274549 +0100
@@ -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