commit 73eb1c1972655a666cb6c06fac886c8b2fdb3d5d647b292cee33c93057d470bd Author: Steve Kowalik Date: Wed Sep 4 02:27:00 2024 +0000 - Switch to pyproject macros. - No more greedy globs in %files. - Remove unneeded dependency on pylib. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-retry?expand=0&rev=7 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-retry.changes b/python-retry.changes new file mode 100644 index 0000000..2ea7c65 --- /dev/null +++ b/python-retry.changes @@ -0,0 +1,29 @@ +------------------------------------------------------------------- +Wed Sep 4 02:26:12 UTC 2024 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. +- Remove unneeded dependency on pylib. + +------------------------------------------------------------------- +Fri Apr 8 07:59:30 UTC 2022 - pgajdos@suse.com + +- python-mock is not required for build + +------------------------------------------------------------------- +Mon Jan 25 08:05:10 UTC 2021 - Dirk Müller + +- use pytest macro + +------------------------------------------------------------------- +Thu Mar 21 09:12:57 UTC 2019 - John Vandenberg + +- Remove unnecessary bcond test +- Add fdupes +- Remove build dependencies devel, tox and wheel +- Use %license + +------------------------------------------------------------------- +Fri Oct 20 16:18:12 UTC 2017 - toddrme2178@gmail.com + +- initial version diff --git a/python-retry.spec b/python-retry.spec new file mode 100644 index 0000000..65131ea --- /dev/null +++ b/python-retry.spec @@ -0,0 +1,65 @@ +# +# spec file for package python-retry +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-retry +Version: 0.9.2 +Release: 0 +Summary: Python retry decorator +License: Apache-2.0 +URL: https://github.com/invl/retry +Source: https://files.pythonhosted.org/packages/source/r/retry/retry-%{version}.tar.gz +BuildRequires: %{python_module pbr} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module decorator >= 3.4.2} +BuildRequires: %{python_module pytest} +# /SECTION +BuildRequires: fdupes +Requires: python-decorator >= 3.4.2 +BuildArch: noarch + +%python_subpackages + +%description +Easy to use retry decorator. + +%prep +%setup -q -n retry-%{version} +sed -i '/tox/d;/wheel/d' test-requirements.txt +sed -i '/py\>/d' requirements.txt + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc AUTHORS ChangeLog README.rst +%license LICENSE +%{python_sitelib}/retry +%{python_sitelib}/retry-%{version}.dist-info + +%changelog diff --git a/retry-0.9.2.tar.gz b/retry-0.9.2.tar.gz new file mode 100644 index 0000000..d95001c --- /dev/null +++ b/retry-0.9.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f8bfa8b99b69c4506d6f5bd3b0aabf77f98cdb17f3c9fc3f5ca820033336fba4 +size 6448