pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-backoff: Import py-backoff-2.2.1



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Sat Nov 19 00:43:58 2022 +0100
Changeset:	679690f88a1ba97879e4e30116ce791ff61731ea

Added Files:
	py-backoff/DESCR
	py-backoff/Makefile
	py-backoff/PLIST
	py-backoff/distinfo

Log Message:
py-backoff: Import py-backoff-2.2.1

This 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.

Decorators support both regular functions for synchronous code and
asyncio's coroutines for asynchronous code.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=679690f88a1ba97879e4e30116ce791ff61731ea

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-backoff/DESCR    |  9 +++++++++
 py-backoff/Makefile | 18 ++++++++++++++++++
 py-backoff/PLIST    | 33 +++++++++++++++++++++++++++++++++
 py-backoff/distinfo |  5 +++++
 4 files changed, 65 insertions(+)

diffs:
diff --git a/py-backoff/DESCR b/py-backoff/DESCR
new file mode 100644
index 0000000000..73102c6c29
--- /dev/null
+++ b/py-backoff/DESCR
@@ -0,0 +1,9 @@
+This 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.
+
+Decorators support both regular functions for synchronous code and
+asyncio's coroutines for asynchronous code.
diff --git a/py-backoff/Makefile b/py-backoff/Makefile
new file mode 100644
index 0000000000..5479d9b852
--- /dev/null
+++ b/py-backoff/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD$
+
+DISTNAME=	backoff-2.2.1
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=	time python
+MASTER_SITES=	${MASTER_SITE_PYPI:=b/backoff/}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/litl/backoff
+COMMENT=	Function decoration for backoff and retry
+LICENSE=	mit
+
+USE_LANGUAGES=	# none
+
+PYTHON_VERSIONS_INCOMPATIBLE=	27	# only for Python 3
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-backoff/PLIST b/py-backoff/PLIST
new file mode 100644
index 0000000000..cf89566a31
--- /dev/null
+++ b/py-backoff/PLIST
@@ -0,0 +1,33 @@
+@comment $NetBSD$
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/backoff/__init__.py
+${PYSITELIB}/backoff/__init__.pyc
+${PYSITELIB}/backoff/__init__.pyo
+${PYSITELIB}/backoff/_async.py
+${PYSITELIB}/backoff/_async.pyc
+${PYSITELIB}/backoff/_async.pyo
+${PYSITELIB}/backoff/_common.py
+${PYSITELIB}/backoff/_common.pyc
+${PYSITELIB}/backoff/_common.pyo
+${PYSITELIB}/backoff/_decorator.py
+${PYSITELIB}/backoff/_decorator.pyc
+${PYSITELIB}/backoff/_decorator.pyo
+${PYSITELIB}/backoff/_jitter.py
+${PYSITELIB}/backoff/_jitter.pyc
+${PYSITELIB}/backoff/_jitter.pyo
+${PYSITELIB}/backoff/_sync.py
+${PYSITELIB}/backoff/_sync.pyc
+${PYSITELIB}/backoff/_sync.pyo
+${PYSITELIB}/backoff/_typing.py
+${PYSITELIB}/backoff/_typing.pyc
+${PYSITELIB}/backoff/_typing.pyo
+${PYSITELIB}/backoff/_wait_gen.py
+${PYSITELIB}/backoff/_wait_gen.pyc
+${PYSITELIB}/backoff/_wait_gen.pyo
+${PYSITELIB}/backoff/py.typed
+${PYSITELIB}/backoff/types.py
+${PYSITELIB}/backoff/types.pyc
+${PYSITELIB}/backoff/types.pyo
diff --git a/py-backoff/distinfo b/py-backoff/distinfo
new file mode 100644
index 0000000000..e40e92b727
--- /dev/null
+++ b/py-backoff/distinfo
@@ -0,0 +1,5 @@
+$NetBSD$
+
+BLAKE2s (backoff-2.2.1.tar.gz) = 31f2ad86d038046111336b6e4a5c1dba2a68034acc67489500d6c7347f14cbf5
+SHA512 (backoff-2.2.1.tar.gz) = 051baabb07714a8a2248899546a5eb6322157d7c61ff4cd94037fa497081ac01927e49713319cb78be504171c06e920462e1ed740e8bbe086bfba952cb74145b
+Size (backoff-2.2.1.tar.gz) = 17001 bytes


Home | Main Index | Thread Index | Old Index