diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/pytest-xdist | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pytest-xdist')
| -rw-r--r-- | dev-python/pytest-xdist/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/pytest-xdist/files/pytest-xdist-3.8.0-pytest-9.patch | 64 | ||||
| -rw-r--r-- | dev-python/pytest-xdist/metadata.xml | 10 | ||||
| -rw-r--r-- | dev-python/pytest-xdist/pytest-xdist-3.8.0.ebuild | 47 |
4 files changed, 123 insertions, 0 deletions
diff --git a/dev-python/pytest-xdist/Manifest b/dev-python/pytest-xdist/Manifest new file mode 100644 index 000000000000..69ba09aa248b --- /dev/null +++ b/dev-python/pytest-xdist/Manifest @@ -0,0 +1,2 @@ +DIST pytest_xdist-3.8.0.tar.gz 88069 BLAKE2B fe1c06b937c7c08535949c026e15af046e41d46601c6fc79a56f586b8c88737b9e13af692ff270f0019c17fd47283e50f34f5567e0c2a71603729e2503e61fec SHA512 fedea555be872afe09409cb1a2a3e5c183efefacc2f0eb6edeb306b855ac0ebd1d0b0063186c8c434410c0c35a178f5a80133d7f4b48ad71a4e4e0110315396b +DIST pytest_xdist-3.8.0.tar.gz.provenance 9492 BLAKE2B bc66519ffce6812f93b5770ba9dfddef8f230c8683e150d956e359ea7ce722db528b135f06e37f62d9613cc2e3c535e0f498d34c3971a2bdc200eef2d54542d0 SHA512 449bc03d3db3d57e3b13dc8609bb2a56ff6409aa65f697713418d0451323907eeb6030d3b287805129a11825ef84b3ccc5d2ad02799b4fdc85f75b2b9cd74a92 diff --git a/dev-python/pytest-xdist/files/pytest-xdist-3.8.0-pytest-9.patch b/dev-python/pytest-xdist/files/pytest-xdist-3.8.0-pytest-9.patch new file mode 100644 index 000000000000..c39a004664bb --- /dev/null +++ b/dev-python/pytest-xdist/files/pytest-xdist-3.8.0-pytest-9.patch @@ -0,0 +1,64 @@ +From 0c984478f39d7a01aa24c061f2581bdfd071cb6a Mon Sep 17 00:00:00 2001 +From: Bruno Oliveira <bruno@soliv.dev> +Date: Sun, 2 Nov 2025 10:18:21 -0300 +Subject: [PATCH] Adapt test to also worth with pytest-main + +--- + testing/test_newhooks.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/testing/test_newhooks.py b/testing/test_newhooks.py +index e3a8ac6f..9091ed31 100644 +--- a/testing/test_newhooks.py ++++ b/testing/test_newhooks.py +@@ -115,7 +115,7 @@ def pytest_handlecrashitem(crashitem, report, sched): + res.stdout.fnmatch_lines_random(["*HOOK: pytest_handlecrashitem"]) + res.stdout.fnmatch_lines( + [ +- "FAILED test_handlecrashitem_one.py::test_b", +- "FAILED test_handlecrashitem_one.py::test_b", ++ "FAILED test_handlecrashitem_one.py::test_b*", ++ "FAILED test_handlecrashitem_one.py::test_b*", + ] + ) +From 44f4bea2652e06e7cd5d4a063aa2673b5ef701ee Mon Sep 17 00:00:00 2001 +From: Bruno Oliveira <nicoddemus@gmail.com> +Date: Tue, 11 Nov 2025 08:00:23 -0300 +Subject: [PATCH] Fix CI for pytest 9.0+ (#1272) + +--- + testing/test_remote.py | 11 ++++++++--- + 1 file changed, 8 insertions(+), 3 deletions(-) + +diff --git a/testing/test_remote.py b/testing/test_remote.py +index 909f7ca2..ae82e2b7 100644 +--- a/testing/test_remote.py ++++ b/testing/test_remote.py +@@ -378,6 +378,11 @@ def test_mainargv(request): + + + def test_remote_usage_prog(pytester: pytest.Pytester) -> None: ++ if pytest.version_tuple[:2] >= (9, 0): ++ get_optparser_expr = "get_config_parser.optparser" ++ else: ++ get_optparser_expr = "get_config_parser._getparser()" ++ + pytester.makeconftest( + """ + import pytest +@@ -394,12 +399,12 @@ def pytest_configure(config): + """ + ) + pytester.makepyfile( +- """ ++ f""" + import sys + + def test(get_config_parser, request): +- get_config_parser._getparser().error("my_usage_error") +- """ ++ {get_optparser_expr}.error("my_usage_error") ++ """ + ) + + result = pytester.runpytest_subprocess("-n1") diff --git a/dev-python/pytest-xdist/metadata.xml b/dev-python/pytest-xdist/metadata.xml new file mode 100644 index 000000000000..5e95859f915a --- /dev/null +++ b/dev-python/pytest-xdist/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <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-xdist/pytest-xdist-3.8.0.ebuild b/dev-python/pytest-xdist/pytest-xdist-3.8.0.ebuild new file mode 100644 index 000000000000..21ca738fa0fa --- /dev/null +++ b/dev-python/pytest-xdist/pytest-xdist-3.8.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 +PYPI_VERIFY_REPO=https://github.com/pytest-dev/pytest-xdist +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Distributed testing and loop-on-failing modes" +HOMEPAGE=" + https://pypi.org/project/pytest-xdist/ + https://github.com/pytest-dev/pytest-xdist/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos" + +RDEPEND=" + >=dev-python/execnet-2.1[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + >=dev-python/pytest-7.0.0[${PYTHON_USEDEP}] +" + +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + dev-python/filelock[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGIN_LOAD_VIA_ENV=1 +EPYTEST_PLUGINS=( "${PN}" ) +distutils_enable_tests pytest + +PATCHES=( + # https://github.com/pytest-dev/pytest-xdist/commit/0c984478f39d7a01aa24c061f2581bdfd071cb6a + # https://github.com/pytest-dev/pytest-xdist/commit/44f4bea2652e06e7cd5d4a063aa2673b5ef701ee + "${FILESDIR}/${P}-pytest-9.patch" +) + +python_test() { + epytest -o tmp_path_retention_count=1 +} |
