From nobody Mon Dec 26 21:50:08 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ngs0042mhz1J4sq; Mon, 26 Dec 2022 21:50:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ngs003C7Lz4Cxc; Mon, 26 Dec 2022 21:50:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672091408; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6b6WCylB8Zq5V2gMSvIAD9RWDr11WPEUsEBx2EOJcCU=; b=MyQCUOM1sOSaHI+cf/TgT1fJ0TdJCjv3j/sWvxBKToBo0jRXebDMotN/7opa1ONC2BAJ1P P+/ZJErakFSJeU1YLj6V4sVSSbM1zs3fKoblpAfljIiJM+hstGGXcW+jQWuJ8Oh/hzStKV MWq32OLNfywMOHwepZHTWVTVcZI70Z8Zq31JqkjRshlLxgFuHQpKEExC+qR1RXX+Aczu01 WGm2n0sJjIegYOosUGvOcZpdB8HJU/JU9Ahp44cEQQe9eD3YuMAql2i+J9NSfCWO6gsQZ+ DZhIoh3sXe+wD0aIU2ZADQ3AQoJwyAVfhAJbIX4rTHHvGgVx9k+awAFa4o9HOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1672091408; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=6b6WCylB8Zq5V2gMSvIAD9RWDr11WPEUsEBx2EOJcCU=; b=foN+gh+xcFxjaJ/JcQXb4uVjXI6/eY8/Kx1Q5Ftu+GOCh89ceLPmVfOSUWAyakyKt69v/s CMffJjroWsV1vtlKyjfwN3Zx++drQDLr5HQgkEvXn7/XRyCh/JjgVcFjOTwBkbFUWLgQmN Vh3+5ppFVh65RXoaeeggL0/RfE9QeJQU+tEl4QPGrz4yv0f5Bg++S0Jz0Klq4H+7/1vTjI wAcrxnC8xgK/LTjiEl7iwRe9pL19ZuVr4JLwD0EoSIzC5vjHyE7BOMNKIqpOBQl5COKhNg 6TU1Kzdjk6UtobFB9rGz3LwP//auu/H5R52Cox8Vu/VqH5vp/4W0m8krUToIGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1672091408; a=rsa-sha256; cv=none; b=MWeBajoPSi2eSuA2Sqt16uytsv/vRGDmCJGlNNhMV76oA6/0iyDNilJVeItHjwahnFD8ie sD9Pq+FaJ138dBem6TP3VE2JSxKyccm3rmyMis0bbuOqD/qQpyS6TPrE8hP000bAmjtvt9 36VC0ce1ece+KU/iD1zaBv2ZdSSw+xlVd6lyByIe/o3tjEKAS7Id7cAOjtCIAbCYDzU3ir 6sys3mdOU/GrJvKH8gh/Ptg3WzHO3d1IOVvh21CFUSpRGt0jpG8dtk+A3lsvkBxcMF/j+f WL/HP9BYB07zaxfHfaIbLkpGg1dnlfWSA3CiQ5geBCxsbrhAsE2H0TsYq+TOkQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Ngs0021DZzmV0; Mon, 26 Dec 2022 21:50:08 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BQLo8N2028764; Mon, 26 Dec 2022 21:50:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BQLo8Le028760; Mon, 26 Dec 2022 21:50:08 GMT (envelope-from git) Date: Mon, 26 Dec 2022 21:50:08 GMT Message-Id: <202212262150.2BQLo8Le028760@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 37e929030527 - main - devel/py-backoff: New port: Function decoration for backoff and retry List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 37e929030527aa0334c0245469a84f86217a4f7a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=37e929030527aa0334c0245469a84f86217a4f7a commit 37e929030527aa0334c0245469a84f86217a4f7a Author: Yuri Victorovich AuthorDate: 2022-12-26 21:36:20 +0000 Commit: Yuri Victorovich 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 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.