commit:     bdda3ccc1062784551e18e4967c8730f6ff33d27
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon May 23 10:14:57 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> 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 <mgorny <AT> 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
+}

Reply via email to