[packages/python3-pytest-retry] - new

qboosh qboosh at pld-linux.org
Tue Nov 18 18:27:37 CET 2025


commit 1c0439e5af88aa059e805281526910d8ab67ba94
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Nov 18 18:27:28 2025 +0100

    - new

 python3-pytest-retry.spec | 66 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 66 insertions(+)
---
diff --git a/python3-pytest-retry.spec b/python3-pytest-retry.spec
new file mode 100644
index 0000000..fd0a38d
--- /dev/null
+++ b/python3-pytest-retry.spec
@@ -0,0 +1,66 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+Summary:	pytest plugin that adds the ability to retry flaky tests in CI environments
+Summary(pl.UTF-8):	Wtyczka pytesta dodająca możliwość powtarzania niepewnych testów w środowiskach CI
+Name:		python3-pytest-retry
+Version:	1.7.0
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/pytest-retry/
+Source0:	https://files.pythonhosted.org/packages/source/p/pytest-retry/pytest_retry-%{version}.tar.gz
+# Source0-md5:	e4f5bbef95132070b883cb86dd409d68
+URL:		https://pypi.org/project/pytest-retry/
+BuildRequires:	python3-build
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.9
+BuildRequires:	python3-setuptools >= 1:61.0.0
+%if %{with tests}
+BuildRequires:	python3-pytest >= 7.0.0
+#BuildRequires:	python3-pytest-xdist
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+Requires:	python3-modules >= 1:3.9
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+pytest plugin that adds the ability to retry flaky tests in CI
+environments.
+
+%description -l pl.UTF-8
+Wtyczka pytesta dodająca możliwość powtarzania niepewnych testów w
+środowiskach CI.
+
+%prep
+%setup -q -n pytest_retry-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+# top-level pytest cannot have pytest-retry loaded (thus -p no: option),
+# but that plugin must be enabled for sub-invocations;
+# test_xdist_reporting_compatibility requires "xdist.plugin", but fails anyway in retry_plugin code
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_retry.retry_plugin \
+PYTHONPATH=$(pwd) \
+%{__python3} -m pytest -p no:pytest_retry.retry_plugin tests -k 'not test_xdist_reporting_compatibility'
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%{py3_sitescriptdir}/pytest_retry
+%{py3_sitescriptdir}/pytest_retry-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-retry.git/commitdiff/1c0439e5af88aa059e805281526910d8ab67ba94




More information about the pld-cvs-commit mailing list