From 11d4b65b23f412187ca9d5c17dc20df942fb7389 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 11:09:43 +0100 Subject: [PATCH] package created using the webbuild interface [release 3.7.0-1mamba;Tue Aug 15 2023] --- README.md | 2 ++ python-flaky.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 python-flaky.spec diff --git a/README.md b/README.md index 9e3f69a..8a7ea11 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # python-flaky +Plugin for nose or pytest that automatically reruns flaky tests. + diff --git a/python-flaky.spec b/python-flaky.spec new file mode 100644 index 0000000..85bc590 --- /dev/null +++ b/python-flaky.spec @@ -0,0 +1,51 @@ +%define pkgname %(echo %name | cut -d- -f2- | tr - _) +Name: python-flaky +Version: 3.7.0 +Release: 1mamba +Summary: Plugin for nose or pytest that automatically reruns flaky tests +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/box/flaky +Source: https://pypi.debian.net/flaky/flaky-%{version}.tar.gz +License: Apache License 2.0 +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython3-devel +## AUTOBUILDREQ-END + +%description +%{summary}. + +%if 0%{?with_pyver} +%pyver_package +%endif + +%prep +%setup -q -n flaky-%{version} + +%build +CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python} -m installer --destdir=%{buildroot} dist/*.whl + +#%if "%{?with_pyver}" != "3" +## Rename any conflicting file outside of python site packages tree +#for f in %{_bindir}/pdm; do +# mv %{buildroot}${f}{,-%{?pyappend}} +#done +#%endif + +%files %{?pyappend} +%defattr(-,root,root) +%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info +%{python_sitelib}/%{pkgname}-%{version}.dist-info/* +%dir %{python_sitelib}/%{pkgname} +%{python_sitelib}/%{pkgname}/* +%doc LICENSE + +%changelog +* Tue Aug 15 2023 Silvan Calarco 3.7.0-1mamba +- package created using the webbuild interface