git: b010fdcc87e3 - main - devel/py-pytest-retry: New port: Pytest plugin to retry flaky tests

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 29 Jun 2026 05:55:50 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b010fdcc87e3d08c2ef38b292ad328314432c27d

commit b010fdcc87e3d08c2ef38b292ad328314432c27d
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2026-06-29 05:25:49 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2026-06-29 05:55:32 +0000

    devel/py-pytest-retry: New port: Pytest plugin to retry flaky tests
---
 devel/Makefile                  |  1 +
 devel/py-pytest-retry/Makefile  | 24 ++++++++++++++++++++++++
 devel/py-pytest-retry/distinfo  |  3 +++
 devel/py-pytest-retry/pkg-descr |  3 +++
 4 files changed, 31 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 6a129263dd6a..d169e2fd315f 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5932,6 +5932,7 @@
     SUBDIR += py-pytest-remotedata
     SUBDIR += py-pytest-repeat
     SUBDIR += py-pytest-rerunfailures
+    SUBDIR += py-pytest-retry
     SUBDIR += py-pytest-ruff
     SUBDIR += py-pytest-run-parallel
     SUBDIR += py-pytest-services
diff --git a/devel/py-pytest-retry/Makefile b/devel/py-pytest-retry/Makefile
new file mode 100644
index 000000000000..6ffb0fdad442
--- /dev/null
+++ b/devel/py-pytest-retry/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	pytest-retry
+DISTVERSION=	1.7.0
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/-/_/}-${PORTVERSION}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Pytest plugin to retry flaky tests
+WWW=		https://github.com/str0zzapreti/pytest-retry
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=61.0.0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>=7.0:devel/py-pytest@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	pep517 autoplist
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-pytest-retry/distinfo b/devel/py-pytest-retry/distinfo
new file mode 100644
index 000000000000..2713f5eac1e7
--- /dev/null
+++ b/devel/py-pytest-retry/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1782631923
+SHA256 (pytest_retry-1.7.0.tar.gz) = f8d52339f01e949df47c11ba9ee8d5b362f5824dff580d3870ec9ae0057df80f
+SIZE (pytest_retry-1.7.0.tar.gz) = 19977
diff --git a/devel/py-pytest-retry/pkg-descr b/devel/py-pytest-retry/pkg-descr
new file mode 100644
index 000000000000..edcf5e973e66
--- /dev/null
+++ b/devel/py-pytest-retry/pkg-descr
@@ -0,0 +1,3 @@
+pytest-retry is a Pytest plugin that helps stabilize test suites by re-running
+unreliable tests. It adds the ability to retry flaky tests via global config
+options or a @pytest.mark.flaky marker for individual tests.