diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2026-01-23 19:32:36 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2026-01-23 19:32:36 +0000 |
| commit | 732d28367ef9f54453150abb06e573c9393ec178 (patch) | |
| tree | 0c61b8048cb423efc17a8938da1275b400f3aecc /dev-python/pytest-shell-utilities | |
| parent | a5fee082e20c2d66fb0992a0f453766e0fd23277 (diff) | |
| download | baldeagleos-repo-732d28367ef9f54453150abb06e573c9393ec178.tar.gz baldeagleos-repo-732d28367ef9f54453150abb06e573c9393ec178.tar.xz baldeagleos-repo-732d28367ef9f54453150abb06e573c9393ec178.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pytest-shell-utilities')
3 files changed, 68 insertions, 1 deletions
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 <daniel.garcia@suse.com> +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/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..e510ef08d066 --- /dev/null +++ b/dev-python/pytest-shell-utilities/pytest-shell-utilities-1.9.7-r1.ebuild @@ -0,0 +1,45 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{10..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}] + test? ( + dev-python/pytest-subtests[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/pytest-shell-utilities-1.9.7-py314.patch" +) + +distutils_enable_tests pytest + +export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} diff --git a/dev-python/pytest-shell-utilities/pytest-shell-utilities-1.9.7.ebuild b/dev-python/pytest-shell-utilities/pytest-shell-utilities-1.9.7.ebuild index 85bc1e7828f4..b46bf4acc7bf 100644 --- a/dev-python/pytest-shell-utilities/pytest-shell-utilities-1.9.7.ebuild +++ b/dev-python/pytest-shell-utilities/pytest-shell-utilities-1.9.7.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022-2024 Gentoo Authors +# Copyright 2022-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 |
