From b590c8d7572b727d565cc0b8ff660d43569845de Mon Sep 17 00:00:00 2001 From: root Date: Fri, 12 Jun 2026 19:09:37 -0500 Subject: Adding metadata --- dev-python/pytest-shell-utilities/Manifest | 1 + .../files/pytest-shell-utilities-1.9.7-py314.patch | 22 +++++++++++ dev-python/pytest-shell-utilities/metadata.xml | 14 +++++++ .../pytest-shell-utilities-1.9.7-r1.ebuild | 44 ++++++++++++++++++++++ 4 files changed, 81 insertions(+) create mode 100644 dev-python/pytest-shell-utilities/Manifest create mode 100644 dev-python/pytest-shell-utilities/files/pytest-shell-utilities-1.9.7-py314.patch create mode 100644 dev-python/pytest-shell-utilities/metadata.xml create mode 100644 dev-python/pytest-shell-utilities/pytest-shell-utilities-1.9.7-r1.ebuild (limited to 'dev-python/pytest-shell-utilities') diff --git a/dev-python/pytest-shell-utilities/Manifest b/dev-python/pytest-shell-utilities/Manifest new file mode 100644 index 000000000000..5a1608f085c4 --- /dev/null +++ b/dev-python/pytest-shell-utilities/Manifest @@ -0,0 +1 @@ +DIST pytest-shell-utilities-1.9.7.gh.tar.gz 79847 BLAKE2B f74fdfc24acd521313b2cc98bfcaaf916ff649a88b10c642edb8af785f7c473fbc97d80badec5e7da5b27a6394c6c16e6c354e8261cdfa94cb48ef3eb7174940 SHA512 6e072bbf429abde82504c8c7c03e360d07c88a0239fec10e5d20f424a776fa170a90b0a8a7d809813413326c0915e06164eeeb619c7385a68992fd2bd662bcea diff --git a/dev-python/pytest-shell-utilities/files/pytest-shell-utilities-1.9.7-py314.patch b/dev-python/pytest-shell-utilities/files/pytest-shell-utilities-1.9.7-py314.patch new file mode 100644 index 000000000000..2f4e10363fd2 --- /dev/null +++ b/dev-python/pytest-shell-utilities/files/pytest-shell-utilities-1.9.7-py314.patch @@ -0,0 +1,22 @@ +From c8edc1e1060b48de2da5f6c5fa08789b5f1bc783 Mon Sep 17 00:00:00 2001 +From: Daniel Garcia Moreno +Date: Mon, 17 Nov 2025 10:48:36 +0100 +Subject: [PATCH] test: Set start method to "fork" in test_daemon + +Fix https://github.com/saltstack/pytest-shell-utilities/issues/56 +--- + tests/functional/shell/test_daemon.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/tests/functional/shell/test_daemon.py b/tests/functional/shell/test_daemon.py +index 8f2f32d..86c1f76 100644 +--- a/tests/functional/shell/test_daemon.py ++++ b/tests/functional/shell/test_daemon.py +@@ -48,6 +48,7 @@ def test_daemon_process_termination(request: FixtureRequest, tempfiles: Tempfile + + import time + import multiprocessing ++ multiprocessing.set_start_method('fork') + + def spin(): + while True: diff --git a/dev-python/pytest-shell-utilities/metadata.xml b/dev-python/pytest-shell-utilities/metadata.xml new file mode 100644 index 000000000000..947f0c1813de --- /dev/null +++ b/dev-python/pytest-shell-utilities/metadata.xml @@ -0,0 +1,14 @@ + + + + + Patrick McLean + chutzpah@gentoo.org + + + python@gentoo.org + Python + + + baldeagleos-repo + diff --git a/dev-python/pytest-shell-utilities/pytest-shell-utilities-1.9.7-r1.ebuild b/dev-python/pytest-shell-utilities/pytest-shell-utilities-1.9.7-r1.ebuild new file mode 100644 index 000000000000..ab49beb6cbc4 --- /dev/null +++ b/dev-python/pytest-shell-utilities/pytest-shell-utilities-1.9.7-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 2022-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 + +DESCRIPTION="pytest plugin: fixtures and code to help with running shell commands on tests" +HOMEPAGE=" + https://pypi.org/project/pytest-shell-utilities/ + https://github.com/saltstack/pytest-shell-utilities/ +" +SRC_URI=" + https://github.com/saltstack/pytest-shell-utilities/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 ~arm arm64 ~riscv x86" + +RDEPEND=" + >=dev-python/attrs-22.1.0[${PYTHON_USEDEP}] + >=dev-python/pytest-7.4.0[${PYTHON_USEDEP}] + >=dev-python/psutil-5.0.0[${PYTHON_USEDEP}] + dev-python/pytest-helpers-namespace[${PYTHON_USEDEP}] + dev-python/pytest-skip-markers[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] +" + +PATCHES=( + "${FILESDIR}/pytest-shell-utilities-1.9.7-py314.patch" +) + +EPYTEST_PLUGINS=( "${PN}" pytest-subtests ) +EPYTEST_PLUGIN_LOAD_VIA_ENV=1 +distutils_enable_tests pytest + +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} -- cgit v1.3