Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: profiles/features/wd40/, dev-python/pytest-trio/
Date: Wed, 02 Nov 2022 07:37:43
Message-Id: 1667374645.61c2308ded897597ecb6946282453b7d63bd7553.mgorny@gentoo
1 commit: 61c2308ded897597ecb6946282453b7d63bd7553
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 2 07:13:17 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 2 07:37:25 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61c2308d
7
8 dev-python/pytest-trio: Bump to 0.8.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pytest-trio/Manifest | 1 +
13 dev-python/pytest-trio/pytest-trio-0.8.0.ebuild | 51 +++++++++++++++++++++++++
14 profiles/features/wd40/package.mask | 1 +
15 3 files changed, 53 insertions(+)
16
17 diff --git a/dev-python/pytest-trio/Manifest b/dev-python/pytest-trio/Manifest
18 index e39be86a7c57..0670ecdc7a53 100644
19 --- a/dev-python/pytest-trio/Manifest
20 +++ b/dev-python/pytest-trio/Manifest
21 @@ -1 +1,2 @@
22 DIST pytest-trio-0.7.0.tar.gz 47784 BLAKE2B 59b28df45e87804e0b6eb557a0cf259fdc3636cc7a03d78248fb814d55904ed01d00a530b194b2bfe93ccfb9de528d70a372faf1f6db24531c230319122db2e5 SHA512 547036c94f33cf8e755c88d608c5fddfa5c583fdaa7e604598d470e250a006c571702a81bac4f273b74450a8c10e4be404bad74d4104403fe1c9c70e872dff53
23 +DIST pytest-trio-0.8.0.tar.gz 46525 BLAKE2B 54660dc9b021af0ec18eace72f053223d16e89635c74d71329a005e5fee3bf6e2055cc29412d9de7443b2594ee53d68890d1e30ed7c94560c355d4342bb3d035 SHA512 79141021633b7b2d8a840d7eaf6a3447bccd59d1bd4909e7feba88a9ae8244376f281b64fde4333b5a575957e3f73028e389a9abf0d19a35417f15c47eeccd05
24
25 diff --git a/dev-python/pytest-trio/pytest-trio-0.8.0.ebuild b/dev-python/pytest-trio/pytest-trio-0.8.0.ebuild
26 new file mode 100644
27 index 000000000000..b45ef14decb2
28 --- /dev/null
29 +++ b/dev-python/pytest-trio/pytest-trio-0.8.0.ebuild
30 @@ -0,0 +1,51 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +DISTUTILS_USE_PEP517=setuptools
37 +PYTHON_COMPAT=( pypy3 python3_{8..11} )
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="This is a pytest plugin to help you test projects that use Trio"
42 +HOMEPAGE="
43 + https://github.com/python-trio/pytest-trio
44 + https://pypi.org/project/pytest-trio/
45 +"
46 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
47 +
48 +LICENSE="|| ( MIT Apache-2.0 )"
49 +SLOT="0"
50 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
51 +
52 +RDEPEND="
53 + >=dev-python/outcome-1.1.0[${PYTHON_USEDEP}]
54 + >=dev-python/pytest-7.2.0[${PYTHON_USEDEP}]
55 + >=dev-python/trio-0.22.0[${PYTHON_USEDEP}]
56 +"
57 +BDEPEND="
58 + test? (
59 + >=dev-python/hypothesis-3.64[${PYTHON_USEDEP}]
60 + )
61 +"
62 +
63 +distutils_enable_tests pytest
64 +distutils_enable_sphinx docs/source \
65 + dev-python/attrs \
66 + dev-python/sphinx_rtd_theme \
67 + dev-python/sphinxcontrib-trio
68 +
69 +python_prepare_all() {
70 + # Defining 'pytest_plugins' in a non-top-level conftest is no longer supported:
71 + mv pytest_trio/_tests/conftest.py conftest.py || die
72 + distutils-r1_python_prepare_all
73 +}
74 +
75 +python_test() {
76 + # disable autoloading pytest-asyncio in nested pytest calls
77 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
78 + # since we disabled autoloading, force loading pytest-trio
79 + local -x PYTEST_PLUGINS=pytest_trio.plugin
80 + epytest
81 +}
82
83 diff --git a/profiles/features/wd40/package.mask b/profiles/features/wd40/package.mask
84 index 55b305242c18..314a96313cfb 100644
85 --- a/profiles/features/wd40/package.mask
86 +++ b/profiles/features/wd40/package.mask
87 @@ -34,6 +34,7 @@ dev-python/osc-lib
88 dev-python/paramiko
89 >=dev-python/pyopenssl-22
90 dev-python/pyspnego
91 +>=dev-python/pytest-trio-0.8.0
92 dev-python/python-daemon
93 dev-python/python-glanceclient
94 dev-python/python-ironicclient