From 48e9f71cde92ef5ffe574ea08c0eb37f95f39975 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Fri, 9 Jan 2026 14:06:47 -0800 Subject: [PATCH] add: retrying (#8988) (#9015) (cherry picked from commit a9da60791ecd09cae767ce2c4274cad4e51a146c) Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --- anda/langs/python/retrying/anda.hcl | 6 +++ anda/langs/python/retrying/retrying.spec | 47 ++++++++++++++++++++++++ anda/langs/python/retrying/update.rhai | 1 + 3 files changed, 54 insertions(+) create mode 100644 anda/langs/python/retrying/anda.hcl create mode 100644 anda/langs/python/retrying/retrying.spec create mode 100644 anda/langs/python/retrying/update.rhai diff --git a/anda/langs/python/retrying/anda.hcl b/anda/langs/python/retrying/anda.hcl new file mode 100644 index 0000000000..ff081034b6 --- /dev/null +++ b/anda/langs/python/retrying/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "retrying.spec" + } +} diff --git a/anda/langs/python/retrying/retrying.spec b/anda/langs/python/retrying/retrying.spec new file mode 100644 index 0000000000..3a999c1c69 --- /dev/null +++ b/anda/langs/python/retrying/retrying.spec @@ -0,0 +1,47 @@ +%global pypi_name retrying +%global _desc General-purpose retrying library. + +%define debug_package %{nil} + +Name: python-%{pypi_name} +Version: 1.4.2 +Release: 1%?dist +Summary: General-purpose retrying library +License: Apache-2.0 +URL: https://github.com/groodt/retrying +Source0: %{pypi_source} + +BuildRequires: python3-devel +BuildRequires: python3-pip +BuildRequires: python3-setuptools + +Packager: Owen Zimmerman + +%description +%_desc + +%package -n python3-%{pypi_name} +Summary: %{summary} +Provides: %{pypi_name} +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%_desc + +%prep +%autosetup -n %{pypi_name}-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files retrying + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md +%license LICENSE.txt + +%changelog +* Thu Jan 08 2026 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/retrying/update.rhai b/anda/langs/python/retrying/update.rhai new file mode 100644 index 0000000000..7b0d8b3031 --- /dev/null +++ b/anda/langs/python/retrying/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("retrying"));