git: 37e929030527 - main - devel/py-backoff: New port: Function decoration for backoff and retry
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Dec 2022 21:50:08 UTC
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=37e929030527aa0334c0245469a84f86217a4f7a
commit 37e929030527aa0334c0245469a84f86217a4f7a
Author: Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-12-26 21:36:20 +0000
Commit: Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-12-26 21:50:04 +0000
devel/py-backoff: New port: Function decoration for backoff and retry
---
devel/Makefile | 1 +
devel/py-backoff/Makefile | 19 +++++++++++++++++++
devel/py-backoff/distinfo | 3 +++
devel/py-backoff/pkg-descr | 6 ++++++
4 files changed, 29 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index f4644e63f951..46958c5670c9 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4281,6 +4281,7 @@
SUBDIR += py-babelfish
SUBDIR += py-babi_grammars
SUBDIR += py-backcall
+ SUBDIR += py-backoff
SUBDIR += py-backports
SUBDIR += py-backports.cached-property
SUBDIR += py-backports.csv
diff --git a/devel/py-backoff/Makefile b/devel/py-backoff/Makefile
new file mode 100644
index 000000000000..f852e6cfe189
--- /dev/null
+++ b/devel/py-backoff/Makefile
@@ -0,0 +1,19 @@
+PORTNAME= backoff
+DISTVERSION= 2.2.1
+CATEGORIES= devel python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Function decoration for backoff and retry
+WWW= https://github.com/litl/backoff
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= python:3.7+
+USE_PYTHON= distutils autoplist
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-backoff/distinfo b/devel/py-backoff/distinfo
new file mode 100644
index 000000000000..9136bc55ea62
--- /dev/null
+++ b/devel/py-backoff/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1672089452
+SHA256 (backoff-2.2.1.tar.gz) = 03f829f5bb1923180821643f8753b0502c3b682293992485b0eef2807afa5cba
+SIZE (backoff-2.2.1.tar.gz) = 17001
diff --git a/devel/py-backoff/pkg-descr b/devel/py-backoff/pkg-descr
new file mode 100644
index 000000000000..1ec2f1bea0a5
--- /dev/null
+++ b/devel/py-backoff/pkg-descr
@@ -0,0 +1,6 @@
+The backoff Python module provides function decorators which can be used to wrap
+a function such that it will be retried until some condition is met. It is meant
+to be of use when accessing unreliable resources with the potential for
+intermittent failures i.e. network resources and external APIs. Somewhat more
+generally, it may also be of use for dynamically polling resources for
+externally generated content.