From nobody Tue May 31 03:18:09 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 0F86D1B444AF; Tue, 31 May 2022 03:18:10 +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 4LByCP5TPJz3kcX; Tue, 31 May 2022 03:18:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653967089; 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=wRaIr/Un1rkIFIfAhZxrjK40iun6d+IZBPJcYhRuCR4=; b=CmuLKa8KKU4kD7cIfdjG/8jphMg7ppjmdG4lqm2eDX4wW7azakRTPite+OZsYvucSvpPOR zmCnqL8Vc4C343+F1B0V+36aq69LEaWmq/hB9n9hL+/0EjMpEAzr1sHAc8zV47eUDjoIC/ x6RONxv+9RMXwxuCv215SwnAYJwh49KdjFxdRTwWrg+n+2ckkn1x70huX3v5gMnziUZ9T+ 0n+tgKJ2SRPIMTwOTYXWBfFYDiit+IWVLEqwghVMQbgKCX8b+RTvbBlpNm9p2klsCP3Iho Ql/4ihYamgug9VL4HgkYmGvnBZQoj3OIV9RykRNBgYSIB8AJxpFDNGWFwWBXYQ== 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 82BB8238B7; Tue, 31 May 2022 03:18:09 +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 24V3I9eX090775; Tue, 31 May 2022 03:18:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24V3I9dm090774; Tue, 31 May 2022 03:18:09 GMT (envelope-from git) Date: Tue, 31 May 2022 03:18:09 GMT Message-Id: <202205310318.24V3I9dm090774@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: c08853f49ac7 - main - devel/py-retry2: New port: Easy to use retry decorator in python 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: c08853f49ac748908004d2cfa81022fd59b76b9d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653967089; 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=wRaIr/Un1rkIFIfAhZxrjK40iun6d+IZBPJcYhRuCR4=; b=jxqiSKVAN8Ea0UUNn/CLCsnzXCbPH/6aCZlg0Igkz7thjieaTSy93bbfHIf5+N84eDJHo7 F2HKGgnI3BiikkwxZIly7ItoXhkFXaH9SFfOncn7wSL6zGXX34oHASpq3gkJuGFR9wt1BR EfAvDsLLB7Mg238ARsF7IG/5R23qgM9SY9HIUPCzAN2Mszt92PYA+ap9s4TXJcHXf0D9RR QW7dcU4OE76t8riNza5hyiBFYWY5Nmoopay0rCz4ZG7n9kLC4q4/E2KG8Nxd6GtMV1b/Wk i/zCOdHlNuKlVAwwNUMC/zwZPvA1OW/al4eIL7QXMKY6X44MRJGqsiR46bLRog== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653967089; a=rsa-sha256; cv=none; b=IDXhUEop07/Wnt6EvMu9+GW5ReYDS6DST8zrkabhyHAgtEamhyium2nZxJVkPw3qRZyYRT ygihOFs6yXkl9yeNM5IhFZb0tYImbMjxYG9VA4vPwDhk56JLf1uJkUi6iSZKz/WGyilTD7 pxImN+dPu1dUfBWsU2c4Depg+el8lrNE0p1qucEoH+kNFidYJGBp31wVpzG/AIvef0+gic ApTeBxR8gVeHMKQeF3N2L3riW91f7DuA/41rmrKOWqFDhgRksts+PTtaEyAXoKwVxfQJ82 vDaHomnbeyL5on0xfssvn84weJU9alM/gdmmkePo0zxYdH0mgDPZiWuflCOXvw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=c08853f49ac748908004d2cfa81022fd59b76b9d commit c08853f49ac748908004d2cfa81022fd59b76b9d Author: Yuri Victorovich AuthorDate: 2022-05-31 02:37:09 +0000 Commit: Yuri Victorovich CommitDate: 2022-05-31 03:18:02 +0000 devel/py-retry2: New port: Easy to use retry decorator in python --- devel/Makefile | 1 + devel/py-retry2/Makefile | 28 ++++++++++++++++++++++++++++ devel/py-retry2/distinfo | 3 +++ devel/py-retry2/files/patch-setup.py | 13 +++++++++++++ devel/py-retry2/pkg-descr | 8 ++++++++ 5 files changed, 53 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index b55986f47874..b97ff1004f7c 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5241,6 +5241,7 @@ SUBDIR += py-resolver SUBDIR += py-resource SUBDIR += py-responses + SUBDIR += py-retry2 SUBDIR += py-retrying SUBDIR += py-retype SUBDIR += py-rfc3339 diff --git a/devel/py-retry2/Makefile b/devel/py-retry2/Makefile new file mode 100644 index 000000000000..dfb2c8b1cfcc --- /dev/null +++ b/devel/py-retry2/Makefile @@ -0,0 +1,28 @@ +PORTNAME= retry2 +DISTVERSION= 0.9.3 +CATEGORIES= devel python +#MASTER_SITES= CHEESESHOP # no tarball +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Easy to use retry decorator in python + +LICENSE= APACHE20 + +RUN_DEPENDS= ${PYNUMPY} \ + ${PYTHON_PKGNAMEPREFIX}py>=1.4.26:devel/py-py@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}decorator>=3.4.2:devel/py-decorator@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= distutils autoplist + +USE_GITHUB= yes +GH_ACCOUNT= eSAMTrade +GH_PROJECT= retry + +NO_ARCH= yes + +do-test: install + @cd ${WRKSRC} && ${PYTHON_CMD} tests/test_retry.py && ${ECHO} "Tests succeeded" + +.include diff --git a/devel/py-retry2/distinfo b/devel/py-retry2/distinfo new file mode 100644 index 000000000000..bb71921d78cd --- /dev/null +++ b/devel/py-retry2/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1653963869 +SHA256 (eSAMTrade-retry-0.9.3_GH0.tar.gz) = 4e5faaf2c944275336d1e81e3c1100eb62a325cb5ba019af33e50b3384e155a1 +SIZE (eSAMTrade-retry-0.9.3_GH0.tar.gz) = 6004 diff --git a/devel/py-retry2/files/patch-setup.py b/devel/py-retry2/files/patch-setup.py new file mode 100644 index 000000000000..51cdf0675c00 --- /dev/null +++ b/devel/py-retry2/files/patch-setup.py @@ -0,0 +1,13 @@ +- prevent versioning via git + +--- setup.py.orig 2022-05-31 02:31:10 UTC ++++ setup.py +@@ -3,6 +3,6 @@ from setuptools import find_packages, setup + + setup( + packages=find_packages(), +- pbr=True, +- setup_requires=['pbr'], ++ #pbr=True, ++ #setup_requires=['pbr'], + ) diff --git a/devel/py-retry2/pkg-descr b/devel/py-retry2/pkg-descr new file mode 100644 index 000000000000..8619a08602f4 --- /dev/null +++ b/devel/py-retry2/pkg-descr @@ -0,0 +1,8 @@ +Easy to use retry decorator. +Features + +* No external dependency (stdlib only). +* (Optionally) Preserve function signatures (pip install decorator). +* Original traceback, easy to debug. + +WWW: https://github.com/eSAMTrade/retry