git: da2686525b75 - main - www/py-retry-requests: Add py-retry-requests 2.0.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 29 Sep 2026 19:27:30 UTC
The branch main has been updated by sunpoet:

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

commit da2686525b7587c0274d454905dad435d4cd7d03
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2026-09-29 18:55:04 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2026-09-29 19:17:29 +0000

    www/py-retry-requests: Add py-retry-requests 2.0.0
    
    Retry-requests configures the passed-in requests' Session to retry on failed
    requests due to connection errors, timeouts, specific HTTP response codes (5XX
    by default) and 30X redirections -- anything that could fail.
---
 www/Makefile                               |  1 +
 www/py-retry-requests/Makefile             | 24 ++++++++++++++++++++++++
 www/py-retry-requests/distinfo             |  3 +++
 www/py-retry-requests/files/patch-setup.py | 10 ++++++++++
 www/py-retry-requests/pkg-descr            |  3 +++
 5 files changed, 41 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index df4173de1940..548e2590a393 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1971,6 +1971,7 @@
     SUBDIR += py-requests_ntlm
     SUBDIR += py-respx
     SUBDIR += py-restclient
+    SUBDIR += py-retry-requests
     SUBDIR += py-rfc3986
     SUBDIR += py-rfc3987
     SUBDIR += py-rfc3987-syntax
diff --git a/www/py-retry-requests/Makefile b/www/py-retry-requests/Makefile
new file mode 100644
index 000000000000..7f7a6e8e9c19
--- /dev/null
+++ b/www/py-retry-requests/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	retry-requests
+PORTVERSION=	2.0.0
+CATEGORIES=	www python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Make requests's sessions auto-retry on failure
+WWW=		https://github.com/bustawin/retry-requests
+
+LICENSE=	GPLv3+
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}urllib3>=1.26,1:net/py-urllib3@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/py-retry-requests/distinfo b/www/py-retry-requests/distinfo
new file mode 100644
index 000000000000..90eeb88c7cbd
--- /dev/null
+++ b/www/py-retry-requests/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1790435634
+SHA256 (retry-requests-2.0.0.tar.gz) = 3d02135e5aafedf09240414182fc7389c5d2b4de0252daba0054c9d6a27e7639
+SIZE (retry-requests-2.0.0.tar.gz) = 16084
diff --git a/www/py-retry-requests/files/patch-setup.py b/www/py-retry-requests/files/patch-setup.py
new file mode 100644
index 000000000000..c100f1492722
--- /dev/null
+++ b/www/py-retry-requests/files/patch-setup.py
@@ -0,0 +1,10 @@
+--- setup.py.orig	2023-05-28 18:25:53 UTC
++++ setup.py
+@@ -23,7 +23,6 @@ setup(
+     install_requires=["requests", "urllib3>=1.26"],
+     extras_require={"test": test_requires},
+     tests_require=test_requires,
+-    setup_requires=["pytest-runner"],
+     classifiers=[
+         "Development Status :: 5 - Production/Stable",
+         "Intended Audience :: Developers",
diff --git a/www/py-retry-requests/pkg-descr b/www/py-retry-requests/pkg-descr
new file mode 100644
index 000000000000..a367f4923e74
--- /dev/null
+++ b/www/py-retry-requests/pkg-descr
@@ -0,0 +1,3 @@
+Retry-requests configures the passed-in requests' Session to retry on failed
+requests due to connection errors, timeouts, specific HTTP response codes (5XX
+by default) and 30X redirections -- anything that could fail.