forked from pool/python-retry_decorator
Accepting request 704264 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/704264 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-retry_decorator?expand=0&rev=6
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon May 20 11:29:32 UTC 2019 - pgajdos@suse.com
|
||||
|
||||
- single spec
|
||||
- run test
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 14 11:54:46 UTC 2014 - rschweikert@suse.com
|
||||
|
||||
|
@@ -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
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:084d6abbba6b21c10225c98418c4f872c0920b4b20a1c2ee7bc77ab33c54df20
|
||||
size 2779
|
3
v1.0.0.tar.gz
Normal file
3
v1.0.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:95b8861166e162e5259e798eb259217c59bdb8b21f055fd7f5bb4b7686fb5eae
|
||||
size 2835
|
Reference in New Issue
Block a user