diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 16:24:49 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 16:24:49 -0500 |
| commit | a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (patch) | |
| tree | 0c52bbae1c242fbc296bd650fcd1167685f81492 /dev-python/pytest-trio | |
| parent | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (diff) | |
| download | baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.gz baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.xz baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pytest-trio')
| -rw-r--r-- | dev-python/pytest-trio/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/pytest-trio/files/pytest-trio-0.8.0-test.patch | 52 | ||||
| -rw-r--r-- | dev-python/pytest-trio/metadata.xml | 17 | ||||
| -rw-r--r-- | dev-python/pytest-trio/pytest-trio-0.8.0-r1.ebuild | 56 |
4 files changed, 0 insertions, 126 deletions
diff --git a/dev-python/pytest-trio/Manifest b/dev-python/pytest-trio/Manifest deleted file mode 100644 index 1254cd58eb31..000000000000 --- a/dev-python/pytest-trio/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST pytest-trio-0.8.0.tar.gz 46525 BLAKE2B 54660dc9b021af0ec18eace72f053223d16e89635c74d71329a005e5fee3bf6e2055cc29412d9de7443b2594ee53d68890d1e30ed7c94560c355d4342bb3d035 SHA512 79141021633b7b2d8a840d7eaf6a3447bccd59d1bd4909e7feba88a9ae8244376f281b64fde4333b5a575957e3f73028e389a9abf0d19a35417f15c47eeccd05 diff --git a/dev-python/pytest-trio/files/pytest-trio-0.8.0-test.patch b/dev-python/pytest-trio/files/pytest-trio-0.8.0-test.patch deleted file mode 100644 index a65fd2aee071..000000000000 --- a/dev-python/pytest-trio/files/pytest-trio-0.8.0-test.patch +++ /dev/null @@ -1,52 +0,0 @@ -From 9cda20bbb966fe1e4ae51921d566c668654ee5e1 Mon Sep 17 00:00:00 2001 -From: Vincent Vanlaer <vincent.vanlaer@skynet.be> -Date: Sun, 3 Sep 2023 00:00:54 +0200 -Subject: [PATCH 1/2] Remove trio.tests import causing warnings - -It is deprecated and the replacement is made private as trio._tests. -While we could be using that, this commit copies over the one relevant -function that is actually necessary. The other two imports just repeat -tests that are already in trio and do not need repeating here. ---- - .../_tests/test_hypothesis_interaction.py | 21 ++++++++++++++----- - 1 file changed, 16 insertions(+), 5 deletions(-) - -diff --git a/pytest_trio/_tests/test_hypothesis_interaction.py b/pytest_trio/_tests/test_hypothesis_interaction.py -index 75aa9f7..cb95a96 100644 ---- a/pytest_trio/_tests/test_hypothesis_interaction.py -+++ b/pytest_trio/_tests/test_hypothesis_interaction.py -@@ -1,10 +1,5 @@ - import pytest - import trio --from trio.tests.test_scheduler_determinism import ( -- scheduler_trace, -- test_the_trio_scheduler_is_not_deterministic, -- test_the_trio_scheduler_is_deterministic_if_seeded, --) - from hypothesis import given, settings, strategies as st - - from pytest_trio.plugin import _trio_test_runner_factory -@@ -38,6 +33,22 @@ async def test_mark_and_parametrize(x, y): - assert y in (1, 2) - - -+async def scheduler_trace(): -+ """Returns a scheduler-dependent value we can use to check determinism.""" -+ trace = [] -+ -+ async def tracer(name): -+ for i in range(10): -+ trace.append((name, i)) -+ await trio.sleep(0) -+ -+ async with trio.open_nursery() as nursery: -+ for i in range(5): -+ nursery.start_soon(tracer, i) -+ -+ return tuple(trace) -+ -+ - def test_the_trio_scheduler_is_deterministic_under_hypothesis(): - traces = [] - - diff --git a/dev-python/pytest-trio/metadata.xml b/dev-python/pytest-trio/metadata.xml deleted file mode 100644 index 8ea97b263b78..000000000000 --- a/dev-python/pytest-trio/metadata.xml +++ /dev/null @@ -1,17 +0,0 @@ -<?xml version='1.0' encoding='UTF-8'?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>nowa@gentoo.org</email> - <name>Nowa Ammerlaan</name> - </maintainer> - <maintainer type="project"> - <email>python@gentoo.org</email> - <name>Python</name> - </maintainer> - <stabilize-allarches/> - <upstream> - <remote-id type="github">python-trio/pytest-trio</remote-id> - <remote-id type="pypi">pytest-trio</remote-id> - </upstream> -</pkgmetadata> diff --git a/dev-python/pytest-trio/pytest-trio-0.8.0-r1.ebuild b/dev-python/pytest-trio/pytest-trio-0.8.0-r1.ebuild deleted file mode 100644 index 8e8da622afda..000000000000 --- a/dev-python/pytest-trio/pytest-trio-0.8.0-r1.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYPI_NO_NORMALIZE=1 -PYTHON_COMPAT=( python3_{13..14} ) - -inherit distutils-r1 pypi - -DESCRIPTION="This is a pytest plugin to help you test projects that use Trio" -HOMEPAGE=" - https://github.com/python-trio/pytest-trio - https://pypi.org/project/pytest-trio/ -" - -LICENSE="|| ( MIT Apache-2.0 )" -SLOT="0" -KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~s390 ~sparc x86" - -RDEPEND=" - >=dev-python/outcome-1.1.0[${PYTHON_USEDEP}] - >=dev-python/pytest-7.2.0[${PYTHON_USEDEP}] - >=dev-python/trio-0.22.0[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - >=dev-python/hypothesis-3.64[${PYTHON_USEDEP}] - ) -" - -distutils_enable_tests pytest -distutils_enable_sphinx docs/source \ - dev-python/attrs \ - dev-python/sphinx-rtd-theme \ - dev-python/sphinxcontrib-trio - -python_prepare_all() { - local PATCHES=( - # https://github.com/python-trio/pytest-trio/pull/135 - "${FILESDIR}/${P}-test.patch" - ) - - # Defining 'pytest_plugins' in a non-top-level conftest is no longer supported: - mv pytest_trio/_tests/conftest.py conftest.py || die - distutils-r1_python_prepare_all -} - -python_test() { - # disable autoloading pytest-asyncio in nested pytest calls - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - # since we disabled autoloading, force loading pytest-trio - local -x PYTEST_PLUGINS=pytest_trio.plugin - epytest -} |
