Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-trio/
Date: Sun, 27 Jun 2021 15:52:58
Message-Id: 1624809167.2700e1734d73a0b33db09c2e8e7a4509a60becf2.andrewammerlaan@gentoo
1 commit: 2700e1734d73a0b33db09c2e8e7a4509a60becf2
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 27 15:30:37 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 27 15:52:47 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2700e173
7
8 dev-python/pytest-trio: import from ::guru
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
12
13 dev-python/pytest-trio/Manifest | 1 +
14 dev-python/pytest-trio/metadata.xml | 13 ++++++++
15 dev-python/pytest-trio/pytest-trio-0.7.0.ebuild | 43 +++++++++++++++++++++++++
16 3 files changed, 57 insertions(+)
17
18 diff --git a/dev-python/pytest-trio/Manifest b/dev-python/pytest-trio/Manifest
19 new file mode 100644
20 index 00000000000..e39be86a7c5
21 --- /dev/null
22 +++ b/dev-python/pytest-trio/Manifest
23 @@ -0,0 +1 @@
24 +DIST pytest-trio-0.7.0.tar.gz 47784 BLAKE2B 59b28df45e87804e0b6eb557a0cf259fdc3636cc7a03d78248fb814d55904ed01d00a530b194b2bfe93ccfb9de528d70a372faf1f6db24531c230319122db2e5 SHA512 547036c94f33cf8e755c88d608c5fddfa5c583fdaa7e604598d470e250a006c571702a81bac4f273b74450a8c10e4be404bad74d4104403fe1c9c70e872dff53
25
26 diff --git a/dev-python/pytest-trio/metadata.xml b/dev-python/pytest-trio/metadata.xml
27 new file mode 100644
28 index 00000000000..e724d1bb849
29 --- /dev/null
30 +++ b/dev-python/pytest-trio/metadata.xml
31 @@ -0,0 +1,13 @@
32 +<?xml version='1.0' encoding='UTF-8'?>
33 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 +<pkgmetadata>
35 + <maintainer type="person">
36 + <email>andrewammerlaan@g.o</email>
37 + <name>Andrew Ammerlaan</name>
38 + </maintainer>
39 + <stabilize-allarches/>
40 + <upstream>
41 + <remote-id type="github">python-trio/pytest-trio</remote-id>
42 + <remote-id type="pypi">pytest-trio</remote-id>
43 + </upstream>
44 +</pkgmetadata>
45
46 diff --git a/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
47 new file mode 100644
48 index 00000000000..5f6946b22be
49 --- /dev/null
50 +++ b/dev-python/pytest-trio/pytest-trio-0.7.0.ebuild
51 @@ -0,0 +1,43 @@
52 +# Copyright 1999-2021 Gentoo Authors
53 +# Distributed under the terms of the GNU General Public License v2
54 +
55 +EAPI=7
56 +
57 +PYTHON_COMPAT=( python3_{8..9} )
58 +
59 +inherit distutils-r1
60 +
61 +DESCRIPTION="This is a pytest plugin to help you test projects that use Trio"
62 +HOMEPAGE="
63 + https://github.com/python-trio/pytest-trio
64 + https://pypi.org/project/pytest-trio/
65 +"
66 +SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
67 +
68 +LICENSE="|| ( MIT Apache-2.0 )"
69 +SLOT="0"
70 +KEYWORDS="~amd64"
71 +
72 +RDEPEND="
73 + >=dev-python/async_generator-1.9[${PYTHON_USEDEP}]
74 + dev-python/outcome[${PYTHON_USEDEP}]
75 + >=dev-python/pytest-6.0.0[${PYTHON_USEDEP}]
76 + >=dev-python/trio-0.15[${PYTHON_USEDEP}]
77 +"
78 +BDEPEND="
79 + test? (
80 + >=dev-python/hypothesis-3.64[${PYTHON_USEDEP}]
81 + )
82 +"
83 +
84 +distutils_enable_tests --install pytest
85 +distutils_enable_sphinx docs/source \
86 + dev-python/attrs \
87 + dev-python/sphinx_rtd_theme \
88 + dev-python/sphinxcontrib-trio
89 +
90 +python_prepare_all() {
91 + # Defining 'pytest_plugins' in a non-top-level conftest is no longer supported:
92 + mv pytest_trio/_tests/conftest.py conftest.py || die
93 + distutils-r1_python_prepare_all
94 +}