From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3C904158090 for ; Mon, 23 May 2022 10:34:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 822ADE08EB; Mon, 23 May 2022 10:34:17 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5972AE08EB for ; Mon, 23 May 2022 10:34:17 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4A2BA341BEC for ; Mon, 23 May 2022 10:34:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B2761485 for ; Mon, 23 May 2022 10:34:12 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1653302049.bdda3ccc1062784551e18e4967c8730f6ff33d27.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/tenacity/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/tenacity/tenacity-8.0.1-r1.ebuild X-VCS-Directories: dev-python/tenacity/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: bdda3ccc1062784551e18e4967c8730f6ff33d27 X-VCS-Branch: master Date: Mon, 23 May 2022 10:34:12 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 26239d36-f5d2-4415-a695-6fb2a66552b5 X-Archives-Hash: 25bde2497288b4ad12a45cad6057c3a5 commit: bdda3ccc1062784551e18e4967c8730f6ff33d27 Author: Michał Górny gentoo org> AuthorDate: Mon May 23 10:14:57 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon May 23 10:34:09 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdda3ccc dev-python/tenacity: Use PEP517 build Signed-off-by: Michał Górny gentoo.org> dev-python/tenacity/tenacity-8.0.1-r1.ebuild | 41 ++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/dev-python/tenacity/tenacity-8.0.1-r1.ebuild b/dev-python/tenacity/tenacity-8.0.1-r1.ebuild new file mode 100644 index 000000000000..248a72c6338e --- /dev/null +++ b/dev-python/tenacity/tenacity-8.0.1-r1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 + +DESCRIPTION="General-purpose retrying library" +HOMEPAGE=" + https://github.com/jd/tenacity/ + https://pypi.org/project/tenacity/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv ~x86" + +BDEPEND=" + dev-python/setuptools_scm[${PYTHON_USEDEP}] + test? ( + www-servers/tornado[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=() + + if ! has_version "dev-python/typeguard[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + tests/test_tenacity.py::TestRetryTyping::test_retry_type_annotations + ) + fi + + epytest +}