summaryrefslogtreecommitdiff
path: root/dev-python/pytest-timeout
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-08-17 03:04:37 -0500
committerroot <root@alpha.trunkmasters.com>2026-08-17 03:04:37 -0500
commit5e23801c678ccd5c0e28d009b46d8860e38779ce (patch)
tree3f70315272c1bd4384b4c71e877a013973c1b86e /dev-python/pytest-timeout
parent419e92606fe27d657dbe239bd6f440ec8a36d51d (diff)
downloadbaldeagleos-repo-5e23801c678ccd5c0e28d009b46d8860e38779ce.tar.gz
baldeagleos-repo-5e23801c678ccd5c0e28d009b46d8860e38779ce.tar.xz
baldeagleos-repo-5e23801c678ccd5c0e28d009b46d8860e38779ce.zip
Adding metadata
Diffstat (limited to 'dev-python/pytest-timeout')
-rw-r--r--dev-python/pytest-timeout/Manifest1
-rw-r--r--dev-python/pytest-timeout/pytest-timeout-2.5.0.ebuild47
2 files changed, 48 insertions, 0 deletions
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..6603931e2be2
--- /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_{13..14} )
+
+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
+}