14
0

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:
2019-05-21 08:40:53 +00:00
committed by Git OBS Bridge
4 changed files with 32 additions and 20 deletions

View File

@@ -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 Fri Feb 14 11:54:46 UTC 2014 - rschweikert@suse.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-retry_decorator # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # 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 Name: python-retry_decorator
Version: 1.0.0 Version: 1.0.0
Release: 0 Release: 0
Summary: Retry on Exception Summary: Retry Decorator
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/pnpnpn/retry-decorator Url: https://github.com/pnpnpn/retry-decorator
Source0: https://pypi.python.org/packages/source/r/retry_decorator/retry_decorator-%{version}.tar.gz # https://github.com/pnpnpn/retry-decorator/issues/15
BuildRequires: python-setuptools Source: https://github.com/pnpnpn/retry-decorator/archive/v%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: %{python_module devel}
%if 0%{?suse_version} && 0%{?suse_version} <= 1110 BuildRequires: %{python_module setuptools}
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} BuildRequires: fdupes
%else BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
%endif
%python_subpackages
%description %description
Decorator to support retry when an exception occurs Decorator to support retry when an exception occurs.
%prep %prep
%setup -q -n retry_decorator-%{version} %setup -q -n retry-decorator-%{version}
%build %build
python setup.py build %python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %files %{python_files}
%defattr(-,root,root,-) %license LICENSE.txt
%doc README.rst LICENSE.txt CHANGES.txt %doc README.rst CHANGES.txt
%{python_sitelib}/* %{python_sitelib}/*
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python tests/test_retry.py
%changelog %changelog

View File

@@ -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
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:95b8861166e162e5259e798eb259217c59bdb8b21f055fd7f5bb4b7686fb5eae
size 2835