[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2024-02-03 Thread Michał Górny
commit: 81f5cb997b58807ea605f03b6e428dec898d102b
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Feb  3 15:08:41 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Feb  3 15:08:41 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81f5cb99

dev-python/pytest-trio: Add python@ as co-maintainer

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pytest-trio/metadata.xml | 4 
 1 file changed, 4 insertions(+)

diff --git a/dev-python/pytest-trio/metadata.xml 
b/dev-python/pytest-trio/metadata.xml
index 485f7038656c..a0206c25c87f 100644
--- a/dev-python/pytest-trio/metadata.xml
+++ b/dev-python/pytest-trio/metadata.xml
@@ -5,6 +5,10 @@
andrewammerl...@gentoo.org
Andrew Ammerlaan

+   
+   pyt...@gentoo.org
+   Python
+   


python-trio/pytest-trio



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/, dev-python/pytest-trio/files/

2024-02-03 Thread Michał Górny
commit: 4cb1caac74009d583c93c638bd3f61dc6cb25a3f
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Feb  3 15:09:13 2024 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Feb  3 15:09:49 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cb1caac

dev-python/pytest-trio: Backport a test fix for newer trio

Closes: https://bugs.gentoo.org/923163
Signed-off-by: Michał Górny  gentoo.org>

 .../pytest-trio/files/pytest-trio-0.8.0-test.patch | 52 ++
 ...io-0.8.0.ebuild => pytest-trio-0.8.0-r1.ebuild} |  7 ++-
 2 files changed, 58 insertions(+), 1 deletion(-)

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
new file mode 100644
index ..a65fd2aee071
--- /dev/null
+++ b/dev-python/pytest-trio/files/pytest-trio-0.8.0-test.patch
@@ -0,0 +1,52 @@
+From 9cda20bbb966fe1e4ae51921d566c668654ee5e1 Mon Sep 17 00:00:00 2001
+From: Vincent Vanlaer 
+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/pytest-trio-0.8.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.8.0-r1.ebuild
similarity index 89%
rename from dev-python/pytest-trio/pytest-trio-0.8.0.ebuild
rename to dev-python/pytest-trio/pytest-trio-0.8.0-r1.ebuild
index 4159233367eb..a73c87ac4e00 100644
--- a/dev-python/pytest-trio/pytest-trio-0.8.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.8.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -37,6 +37,11 @@ distutils_enable_sphinx docs/source \
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



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2023-05-30 Thread Michał Górny
commit: 7a4b8c34f340db8522266df85e0f20055e39d55a
Author: Michał Górny  gentoo  org>
AuthorDate: Tue May 30 16:13:00 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue May 30 16:18:47 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a4b8c34

dev-python/pytest-trio: Enable py3.12

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.8.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.8.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.8.0.ebuild
index a1053abd0ff8..4159233367eb 100644
--- a/dev-python/pytest-trio/pytest-trio-0.8.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.8.0.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
 PYPI_NO_NORMALIZE=1
-PYTHON_COMPAT=( pypy3 python3_{9..11} )
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
 
 inherit distutils-r1 pypi
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2023-03-17 Thread Michał Górny
commit: e83de5cdb1e58300e2256459f0f4611a2f33ef3a
Author: Michał Górny  gentoo  org>
AuthorDate: Fri Mar 17 11:59:31 2023 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Mar 17 15:22:43 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e83de5cd

dev-python/pytest-trio: Use pypi.eclass

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.8.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.8.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.8.0.ebuild
index 66698a701e21..a1053abd0ff8 100644
--- a/dev-python/pytest-trio/pytest-trio-0.8.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.8.0.ebuild
@@ -4,16 +4,16 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
+PYPI_NO_NORMALIZE=1
 PYTHON_COMPAT=( pypy3 python3_{9..11} )
 
-inherit distutils-r1
+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/
 "
-SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="|| ( MIT Apache-2.0 )"
 SLOT="0"



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2022-12-10 Thread Michał Górny
commit: 76bac496e5afbedc0549b4d614ad283ca6282901
Author: Michał Górny  gentoo  org>
AuthorDate: Sat Dec 10 08:56:00 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sat Dec 10 08:57:49 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76bac496

dev-python/pytest-trio: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pytest-trio/Manifest|  1 -
 dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild | 52 --
 2 files changed, 53 deletions(-)

diff --git a/dev-python/pytest-trio/Manifest b/dev-python/pytest-trio/Manifest
index 0670ecdc7a53..1254cd58eb31 100644
--- a/dev-python/pytest-trio/Manifest
+++ b/dev-python/pytest-trio/Manifest
@@ -1,2 +1 @@
-DIST pytest-trio-0.7.0.tar.gz 47784 BLAKE2B 
59b28df45e87804e0b6eb557a0cf259fdc3636cc7a03d78248fb814d55904ed01d00a530b194b2bfe93ccfb9de528d70a372faf1f6db24531c230319122db2e5
 SHA512 
547036c94f33cf8e755c88d608c5fddfa5c583fdaa7e604598d470e250a006c571702a81bac4f273b74450a8c10e4be404bad74d4104403fe1c9c70e872dff53
 DIST pytest-trio-0.8.0.tar.gz 46525 BLAKE2B 
54660dc9b021af0ec18eace72f053223d16e89635c74d71329a005e5fee3bf6e2055cc29412d9de7443b2594ee53d68890d1e30ed7c94560c355d4342bb3d035
 SHA512 
79141021633b7b2d8a840d7eaf6a3447bccd59d1bd4909e7feba88a9ae8244376f281b64fde4333b5a575957e3f73028e389a9abf0d19a35417f15c47eeccd05

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild
deleted file mode 100644
index af426052c90a..
--- a/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild
+++ /dev/null
@@ -1,52 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( pypy3 python3_{8..11} )
-
-inherit distutils-r1
-
-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/
-"
-SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="|| ( MIT Apache-2.0 )"
-SLOT="0"
-KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86"
-
-RDEPEND="
-   >=dev-python/async_generator-1.9[${PYTHON_USEDEP}]
-   dev-python/outcome[${PYTHON_USEDEP}]
-   >=dev-python/pytest-6.0.0[${PYTHON_USEDEP}]
-   >=dev-python/trio-0.15[${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() {
-   # 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
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2022-12-10 Thread Arthur Zamarin
commit: 446f7823f0ca63905fb4164e4e34b8d0b8043d54
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Sat Dec 10 08:50:06 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Sat Dec 10 08:50:06 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=446f7823

dev-python/pytest-trio: Stabilize 0.8.0 ALLARCHES, #885239

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.8.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.8.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.8.0.ebuild
index bcd93cd9dedf..2fa2ee710418 100644
--- a/dev-python/pytest-trio/pytest-trio-0.8.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.8.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="|| ( MIT Apache-2.0 )"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86"
 
 RDEPEND="
>=dev-python/outcome-1.1.0[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2022-11-04 Thread Michał Górny
commit: 9c705b5e927cd79608f287005258394e608cf082
Author: Michał Górny  gentoo  org>
AuthorDate: Fri Nov  4 06:12:51 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Nov  4 06:12:51 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c705b5e

dev-python/pytest-trio: Clear keywords to match new trio

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild | 2 +-
 dev-python/pytest-trio/pytest-trio-0.8.0.ebuild| 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild
index e81f730b78a4..af426052c90a 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild
@@ -17,7 +17,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="|| ( MIT Apache-2.0 )"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv 
~s390 sparc x86"
+KEYWORDS="amd64 arm arm64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86"
 
 RDEPEND="
>=dev-python/async_generator-1.9[${PYTHON_USEDEP}]

diff --git a/dev-python/pytest-trio/pytest-trio-0.8.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.8.0.ebuild
index b45ef14decb2..bcd93cd9dedf 100644
--- a/dev-python/pytest-trio/pytest-trio-0.8.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.8.0.ebuild
@@ -17,7 +17,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="|| ( MIT Apache-2.0 )"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
 
 RDEPEND="
>=dev-python/outcome-1.1.0[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2022-05-27 Thread Michał Górny
commit: 3596ac8b269fcd47a42a3f7c858a8dae9df5e10d
Author: Michał Górny  gentoo  org>
AuthorDate: Fri May 27 19:46:55 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri May 27 19:46:55 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3596ac8b

dev-python/pytest-trio: Remove old

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0.ebuild | 51 -
 1 file changed, 51 deletions(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
deleted file mode 100644
index d5f1cdacce4a..
--- a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
+++ /dev/null
@@ -1,51 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( pypy3 python3_{8..10} )
-
-inherit distutils-r1
-
-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/
-"
-SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
-
-LICENSE="|| ( MIT Apache-2.0 )"
-SLOT="0"
-KEYWORDS="amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv sparc x86"
-
-RDEPEND="
-   >=dev-python/async_generator-1.9[${PYTHON_USEDEP}]
-   dev-python/outcome[${PYTHON_USEDEP}]
-   >=dev-python/pytest-6.0.0[${PYTHON_USEDEP}]
-   >=dev-python/trio-0.15[${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() {
-   # 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
-}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2022-05-27 Thread Jakov Smolić
commit: 4ee43f4b25b0d7144f6dd50a13642d706d650569
Author: Jakov Smolić  gentoo  org>
AuthorDate: Fri May 27 09:07:43 2022 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Fri May 27 09:07:43 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ee43f4b

dev-python/pytest-trio: Stabilize 0.7.0-r1 ALLARCHES, #847757

Signed-off-by: Jakov Smolić  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild
index 06726afa9ef3..e81f730b78a4 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild
@@ -17,7 +17,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="|| ( MIT Apache-2.0 )"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv 
~s390 sparc x86"
 
 RDEPEND="
>=dev-python/async_generator-1.9[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2022-05-15 Thread Michał Górny
commit: 19feebc1cde596f3a14726f8ecf5f5383b340d84
Author: Michał Górny  gentoo  org>
AuthorDate: Sun May 15 05:55:47 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Sun May 15 06:07:42 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19feebc1

dev-python/pytest-trio: Enable py3.11

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild
index 8b853daa24b0..06726afa9ef3 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( pypy3 python3_{8..10} )
+PYTHON_COMPAT=( pypy3 python3_{8..11} )
 
 inherit distutils-r1
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2022-05-06 Thread Michał Górny
commit: da91666751fa4e3c406bf3506ea28ea6cfe50708
Author: Michał Górny  gentoo  org>
AuthorDate: Fri May  6 13:22:00 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri May  6 13:22:26 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da916667

dev-python/pytest-trio: Keyword 0.7.0-r1 alpha, #808273

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild
index a4b50b2d3a5e..d75d960b3909 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild
@@ -17,7 +17,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="|| ( MIT Apache-2.0 )"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 
~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86"
 
 RDEPEND="
>=dev-python/async_generator-1.9[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2022-04-25 Thread Sam James
commit: e40335c130635b177fedf9fc41a502a89b5965c9
Author: Sam James  gentoo  org>
AuthorDate: Mon Apr 25 18:41:13 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Apr 25 18:41:41 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e40335c1

dev-python/pytest-trio: Keyword 0.7.0-r1 s390, #840824

Signed-off-by: Sam James  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild
index ac9b1f5bd507..82179b729302 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild
@@ -17,7 +17,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="|| ( MIT Apache-2.0 )"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
 
 RDEPEND="
>=dev-python/async_generator-1.9[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2022-04-07 Thread Michał Górny
commit: a267473d44bca6f8ea23e713e439c8d1ac7cbcdb
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Apr  7 08:52:51 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Apr  7 09:12:50 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a267473d

dev-python/pytest-trio: Enable pypy3

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
index 612dde1c4124..d5f1cdacce4a 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{8..10} )
+PYTHON_COMPAT=( pypy3 python3_{8..10} )
 
 inherit distutils-r1
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2022-04-07 Thread Michał Górny
commit: 2833368b7dc517c1ad4b518389c99be96ca3457b
Author: Michał Górny  gentoo  org>
AuthorDate: Thu Apr  7 08:53:15 2022 +
Commit: Michał Górny  gentoo  org>
CommitDate: Thu Apr  7 09:12:51 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2833368b

dev-python/pytest-trio: EAPI 8, PEP517

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild | 52 ++
 1 file changed, 52 insertions(+)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild
new file mode 100644
index ..ac9b1f5bd507
--- /dev/null
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3 python3_{8..10} )
+
+inherit distutils-r1
+
+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/
+"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="|| ( MIT Apache-2.0 )"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+
+RDEPEND="
+   >=dev-python/async_generator-1.9[${PYTHON_USEDEP}]
+   dev-python/outcome[${PYTHON_USEDEP}]
+   >=dev-python/pytest-6.0.0[${PYTHON_USEDEP}]
+   >=dev-python/trio-0.15[${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() {
+   # 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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2021-11-18 Thread Sam James
commit: ddea68dac0e7ab26865d0f20f5f44ae116c893e3
Author: Sam James  gentoo  org>
AuthorDate: Fri Nov 19 06:40:52 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Nov 19 06:40:52 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddea68da

dev-python/pytest-trio: Stabilize 0.7.0 arm, #811000

Signed-off-by: Sam James  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
index 6fb97be974cd..612dde1c4124 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
@@ -16,7 +16,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="|| ( MIT Apache-2.0 )"
 SLOT="0"
-KEYWORDS="amd64 ~arm arm64 hppa ~ia64 ppc ppc64 ~riscv sparc x86"
+KEYWORDS="amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv sparc x86"
 
 RDEPEND="
>=dev-python/async_generator-1.9[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2021-11-18 Thread Sam James
commit: 3d1a63c970a94d723ccd4eb2e906b8ff1b665ffc
Author: Sam James  gentoo  org>
AuthorDate: Thu Nov 18 09:08:38 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Nov 18 09:08:38 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d1a63c9

dev-python/pytest-trio: Stabilize 0.7.0 ppc, #811000

Signed-off-by: Sam James  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
index 74a19bdf420f..6fb97be974cd 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
@@ -16,7 +16,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="|| ( MIT Apache-2.0 )"
 SLOT="0"
-KEYWORDS="amd64 ~arm arm64 hppa ~ia64 ~ppc ppc64 ~riscv sparc x86"
+KEYWORDS="amd64 ~arm arm64 hppa ~ia64 ppc ppc64 ~riscv sparc x86"
 
 RDEPEND="
>=dev-python/async_generator-1.9[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2021-11-17 Thread Sam James
commit: 59756536d751addb1e2efaeb62b798b41ef6d55e
Author: Sam James  gentoo  org>
AuthorDate: Thu Nov 18 04:05:02 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Nov 18 04:05:02 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59756536

dev-python/pytest-trio: enable py3.10

Signed-off-by: Sam James  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
index e28d2a17b3bd..5a2b7b1ad2a8 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{8..9} )
+PYTHON_COMPAT=( python3_{8..10} )
 
 inherit distutils-r1
 



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2021-09-25 Thread Sam James
commit: 0ab7116c63d76c4ce296752ca3cbc44583dfef6b
Author: Rolf Eike Beer  sf-mail  de>
AuthorDate: Sat Sep 25 16:22:48 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Sep 25 16:37:13 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ab7116c

dev-python/pytest-trio: stable 0.7.0 for sparc, bug #811000

Package-Manager: Portage-3.0.20, Repoman-3.0.3
RepoMan-Options: --include-arches="sparc"
Signed-off-by: Rolf Eike Beer  sf-mail.de>
Signed-off-by: Sam James  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
index e9f29025613..b50d103696c 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
@@ -16,7 +16,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="|| ( MIT Apache-2.0 )"
 SLOT="0"
-KEYWORDS="amd64 ~arm arm64 ~ppc ppc64 ~riscv ~sparc x86"
+KEYWORDS="amd64 ~arm arm64 ~ppc ppc64 ~riscv sparc x86"
 
 RDEPEND="
>=dev-python/async_generator-1.9[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2021-09-04 Thread Sam James
commit: 7259a4fb973a64894ea67aad906e0983d2e9ba17
Author: Sam James  gentoo  org>
AuthorDate: Sat Sep  4 21:34:37 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Sep  4 21:39:12 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7259a4fb

dev-python/pytest-trio: Stabilize 0.7.0 arm64, #811000

Signed-off-by: Sam James  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
index 1841646cadb..e9f29025613 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
@@ -16,7 +16,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="|| ( MIT Apache-2.0 )"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~ppc ppc64 ~riscv ~sparc x86"
+KEYWORDS="amd64 ~arm arm64 ~ppc ppc64 ~riscv ~sparc x86"
 
 RDEPEND="
>=dev-python/async_generator-1.9[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2021-08-31 Thread Sam James
commit: 8ebc29fae67ae2a0af6de283105b57759ce55d17
Author: Sam James  gentoo  org>
AuthorDate: Tue Aug 31 17:38:14 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Tue Aug 31 17:38:14 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ebc29fa

dev-python/pytest-trio: Stabilize 0.7.0 x86, #811000

Signed-off-by: Sam James  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
index 1c57049688d..1841646cadb 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
@@ -16,7 +16,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="|| ( MIT Apache-2.0 )"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~ppc ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc ppc64 ~riscv ~sparc x86"
 
 RDEPEND="
>=dev-python/async_generator-1.9[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2021-08-30 Thread Agostino Sarubbo
commit: 48cdf5a25e0ee48d9c0ff219330e63987ce3e27d
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Mon Aug 30 07:25:22 2021 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Mon Aug 30 07:25:22 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48cdf5a2

dev-python/pytest-trio: amd64 stable wrt bug #811000

Package-Manager: Portage-3.0.20, Repoman-3.0.2
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
index 095e8dce805..1c57049688d 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
@@ -16,7 +16,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="|| ( MIT Apache-2.0 )"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc ppc64 ~riscv ~sparc ~x86"
 
 RDEPEND="
>=dev-python/async_generator-1.9[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2021-08-29 Thread Sam James
commit: 6215b59ce8f91a101947e62f7317ba53e1d75159
Author: Sam James  gentoo  org>
AuthorDate: Mon Aug 30 01:26:26 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Aug 30 01:26:26 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6215b59c

dev-python/pytest-trio: Stabilize 0.7.0 ppc64, #811000

Signed-off-by: Sam James  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
index f18e11dd838..095e8dce805 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
@@ -16,7 +16,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="|| ( MIT Apache-2.0 )"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ppc64 ~riscv ~sparc ~x86"
 
 RDEPEND="
>=dev-python/async_generator-1.9[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2021-08-17 Thread Michał Górny
commit: 61759a73c2197d1cc3745a318f4f1804e0b99d59
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Aug 17 19:37:33 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Aug 17 19:37:33 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61759a73

dev-python/pytest-trio: Remove obsolete epytest --install arg

The --install arg became irrelevant after overriding python_test().
It is no longer necessary anyway since we are loading the plugin
via PYTEST_PLUGINS rather than entry points.

Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
index 371f976c7b9..f18e11dd838 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
@@ -30,7 +30,7 @@ BDEPEND="
)
 "
 
-distutils_enable_tests --install pytest
+distutils_enable_tests pytest
 distutils_enable_sphinx docs/source \
dev-python/attrs \
dev-python/sphinx_rtd_theme \



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2021-08-17 Thread Michał Górny
commit: 53a44c14536cabb49b1d28a5761174798ff42ed8
Author: Michał Górny  gentoo  org>
AuthorDate: Tue Aug 17 19:24:21 2021 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Aug 17 19:25:29 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53a44c14

dev-python/pytest-trio: Fix tests w/ pytest-asyncio installed

Closes: https://bugs.gentoo.org/801631
Signed-off-by: Michał Górny  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0.ebuild | 8 
 1 file changed, 8 insertions(+)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
index d4e3ebf6eb2..371f976c7b9 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
@@ -41,3 +41,11 @@ python_prepare_all() {
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
+}



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2021-08-17 Thread Marek Szuba
commit: bc1693b2b3910fe612049d8a008b5f4cd2bc3f17
Author: Marek Szuba  gentoo  org>
AuthorDate: Tue Aug 17 16:57:40 2021 +
Commit: Marek Szuba  gentoo  org>
CommitDate: Tue Aug 17 17:15:44 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc1693b2

dev-python/pytest-trio: keyword 0.7.0 for ~riscv

Signed-off-by: Marek Szuba  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
index 7b70309d75c..d4e3ebf6eb2 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
@@ -16,7 +16,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="|| ( MIT Apache-2.0 )"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
 
 RDEPEND="
>=dev-python/async_generator-1.9[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2021-07-24 Thread Sam James
commit: 4335a6dd61ba8ea46470a8ff7d24a5301393d69f
Author: Sam James  gentoo  org>
AuthorDate: Sat Jul 24 15:21:15 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jul 24 15:21:15 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4335a6dd

dev-python/pytest-trio: Keyword 0.7.0 ppc64, #801520

Signed-off-by: Sam James  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
index 11892c34425..7b70309d75c 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
@@ -16,7 +16,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="|| ( MIT Apache-2.0 )"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~sparc ~x86"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
 
 RDEPEND="
>=dev-python/async_generator-1.9[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2021-07-16 Thread Sam James
commit: 8d2a9fbfe0625433365075fa0ab6075517deddc4
Author: Sam James  gentoo  org>
AuthorDate: Sat Jul 17 04:39:18 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jul 17 04:39:27 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8d2a9fbf

dev-python/pytest-trio: Keyword 0.7.0 sparc, #801520

Signed-off-by: Sam James  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
index b22d2aa9649..11892c34425 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
@@ -16,7 +16,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="|| ( MIT Apache-2.0 )"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~sparc ~x86"
 
 RDEPEND="
>=dev-python/async_generator-1.9[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2021-07-12 Thread Sam James
commit: 6c5ba8a58f12c6c4c0aac60eabaf11a2fe0778f2
Author: Sam James  gentoo  org>
AuthorDate: Mon Jul 12 22:08:01 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jul 12 22:08:01 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c5ba8a5

dev-python/pytest-trio: Keyword 0.7.0 x86, #801520

Signed-off-by: Sam James  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
index dd525c4a2d3..b22d2aa9649 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
@@ -16,7 +16,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="|| ( MIT Apache-2.0 )"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
 
 RDEPEND="
>=dev-python/async_generator-1.9[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2021-07-12 Thread Sam James
commit: 53b38b7387e1a5ec37e4f9741a5f1cfd6b248124
Author: Sam James  gentoo  org>
AuthorDate: Mon Jul 12 21:55:05 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Jul 12 21:55:05 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53b38b73

dev-python/pytest-trio: Keyword 0.7.0 ppc, #801520

Signed-off-by: Sam James  gentoo.org>

 dev-python/pytest-trio/pytest-trio-0.7.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
index 7f687059bbc..dd525c4a2d3 100644
--- a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
@@ -16,7 +16,7 @@ SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
 
 LICENSE="|| ( MIT Apache-2.0 )"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc"
 
 RDEPEND="
>=dev-python/async_generator-1.9[${PYTHON_USEDEP}]



[gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/

2021-06-27 Thread Andrew Ammerlaan
commit: 2700e1734d73a0b33db09c2e8e7a4509a60becf2
Author: Andrew Ammerlaan  gentoo  org>
AuthorDate: Sun Jun 27 15:30:37 2021 +
Commit: Andrew Ammerlaan  gentoo  org>
CommitDate: Sun Jun 27 15:52:47 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2700e173

dev-python/pytest-trio: import from ::guru

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan  gentoo.org>

 dev-python/pytest-trio/Manifest |  1 +
 dev-python/pytest-trio/metadata.xml | 13 
 dev-python/pytest-trio/pytest-trio-0.7.0.ebuild | 43 +
 3 files changed, 57 insertions(+)

diff --git a/dev-python/pytest-trio/Manifest b/dev-python/pytest-trio/Manifest
new file mode 100644
index 000..e39be86a7c5
--- /dev/null
+++ b/dev-python/pytest-trio/Manifest
@@ -0,0 +1 @@
+DIST pytest-trio-0.7.0.tar.gz 47784 BLAKE2B 
59b28df45e87804e0b6eb557a0cf259fdc3636cc7a03d78248fb814d55904ed01d00a530b194b2bfe93ccfb9de528d70a372faf1f6db24531c230319122db2e5
 SHA512 
547036c94f33cf8e755c88d608c5fddfa5c583fdaa7e604598d470e250a006c571702a81bac4f273b74450a8c10e4be404bad74d4104403fe1c9c70e872dff53

diff --git a/dev-python/pytest-trio/metadata.xml 
b/dev-python/pytest-trio/metadata.xml
new file mode 100644
index 000..e724d1bb849
--- /dev/null
+++ b/dev-python/pytest-trio/metadata.xml
@@ -0,0 +1,13 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+   
+   andrewammerl...@gentoo.org
+   Andrew Ammerlaan
+   
+   
+   
+   python-trio/pytest-trio
+   pytest-trio
+   
+

diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild 
b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
new file mode 100644
index 000..5f6946b22be
--- /dev/null
+++ b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{8..9} )
+
+inherit distutils-r1
+
+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/
+"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="|| ( MIT Apache-2.0 )"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+   >=dev-python/async_generator-1.9[${PYTHON_USEDEP}]
+   dev-python/outcome[${PYTHON_USEDEP}]
+   >=dev-python/pytest-6.0.0[${PYTHON_USEDEP}]
+   >=dev-python/trio-0.15[${PYTHON_USEDEP}]
+"
+BDEPEND="
+   test? (
+   >=dev-python/hypothesis-3.64[${PYTHON_USEDEP}]
+   )
+"
+
+distutils_enable_tests --install pytest
+distutils_enable_sphinx docs/source \
+   dev-python/attrs \
+   dev-python/sphinx_rtd_theme \
+   dev-python/sphinxcontrib-trio
+
+python_prepare_all() {
+   # 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
+}