diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 16:47:34 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 16:47:34 -0500 |
| commit | dda948891d3731927b821ce31f9d9a2d03ba20c5 (patch) | |
| tree | 99cd40be4cbb0606260da212cd81b8ab2db9da9b /dev-python/pytest-shell-utilities | |
| parent | a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (diff) | |
| download | baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.gz baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.xz baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pytest-shell-utilities')
4 files changed, 81 insertions, 0 deletions
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 <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/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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <name>Patrick McLean</name> + <email>chutzpah@gentoo.org</email> + </maintainer> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> 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} |
