repo/gentoo:master commit in: dev-python/pytest-timeout/
MichaŠGórny <[email protected]>
| Newsgroups | gmane.linux.gentoo.cvs |
|---|---|
| Message-ID | <1786944484.c75331d8bea3d36fd9798d33f8884e77a288ce94.mgorny@gentoo> |
commit: c75331d8bea3d36fd9798d33f8884e77a288ce94
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 17 04:52:07 2026 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Aug 17 05:28:04 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c75331d8
dev-python/pytest-timeout: Bump to 2.5.0
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pytest-timeout/Manifest | 1 +
.../pytest-timeout/pytest-timeout-2.5.0.ebuild | 47 ++++++++++++++++++++++
2 files changed, 48 insertions(+)
diff --git a/dev-python/pytest-timeout/Manifest b/dev-python/pytest-timeout/Manifest
index 495b55566e5b..f3b1a69179b5 100644
--- a/dev-python/pytest-timeout/Manifest
+++ b/dev-python/pytest-timeout/Manifest
@@ -1 +1,2 @@
DIST pytest_timeout-2.4.0.tar.gz 17973 BLAKE2B 97408cf5c9b49d809ef7a5d057afd22dfd856b64043879fa8e7d9f3996f76f5554bfed62bc8f40f4e5f28f058067b29b582953bf977fd1f6de95dfc7184ce41c SHA512 ca37754c20517024cb88e88e9c4d8497ff5c235d1bae4bc082d21b5807b43aac8294757900f9bc29e3e34a4b8c671136468793f47baadebf086f924b59b0bd0c
+DIST pytest_timeout-2.5.0.tar.gz 18248 BLAKE2B 240fe2f0c0786bd2469ef21d69583f4b3d7f939f1cbf8e51f98bdb96b11bc502bb51917a868ac1de069bb1ccc333e68cf205b6e3e7735e8c6c07ecabbe8001df SHA512 a0ad31bf1bac853c523ffbfed206814a839fbf71658db2cfcdba8b0a50821c7aa3176eab1afc2f91bfb4d644a16b79d97f107136cfb634d0cd31a8c0d8ec2759
diff --git a/dev-python/pytest-timeout/pytest-timeout-2.5.0.ebuild b/dev-python/pytest-timeout/pytest-timeout-2.5.0.ebuild
new file mode 100644
index 000000000000..64565e7a3aa5
--- /dev/null
+++ b/dev-python/pytest-timeout/pytest-timeout-2.5.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{12..15} python3_{14..15}t )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="pytest plugin to abort hanging tests"
+HOMEPAGE="
+ https://github.com/pytest-dev/pytest-timeout/
+ https://pypi.org/project/pytest-timeout/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+# do not rdepend on pytest, it won't be used without it anyway
+# pytest-cov used to test compatibility
+BDEPEND="
+ test? (
+ dev-python/pexpect[${PYTHON_USEDEP}]
+ !hppa? (
+ dev-python/pytest-cov[${PYTHON_USEDEP}]
+ )
+ )
+"
+
+EPYTEST_PLUGIN_LOAD_VIA_ENV=1
+EPYTEST_PLUGINS=( "${PN}" )
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+python_test() {
+ if has_version "dev-python/pytest-cov[${PYTHON_USEDEP}]"; then
+ local EPYTEST_PLUGINS=( "${EPYTEST_PLUGINS[@]}" pytest-cov )
+ else
+ EPYTEST_DESELECT+=(
+ test_pytest_timeout.py::test_cov
+ )
+ fi
+
+ epytest
+}