1 |
commit: 5d5007c0dcb27d2070f63c4995dea93ccd0aaaa3 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Sun May 24 08:33:50 2020 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Sun May 24 08:34:54 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5d5007c0 |
7 |
|
8 |
dev-python/pytest-trio: version bump |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
12 |
|
13 |
dev-python/pytest-trio/Manifest | 1 + |
14 |
dev-python/pytest-trio/pytest-trio-0.6.0.ebuild | 67 +++++++++++++++++++++++++ |
15 |
2 files changed, 68 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/pytest-trio/Manifest b/dev-python/pytest-trio/Manifest |
18 |
index f6eebcc..d17b502 100644 |
19 |
--- a/dev-python/pytest-trio/Manifest |
20 |
+++ b/dev-python/pytest-trio/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST pytest-trio-0.5.2.tar.gz 35372 BLAKE2B 158e59d81fab6b56e37e92e28f8fdabb5d330dfc57b7774dcde4156165e3f5336647c9382268b50a5f70806449107ab2c7ec6d1a34f6bc773825b4fbb50b03a1 SHA512 0ab0bcfd3b1ef4859a49fa9d5dacbc698882f4f95ee113f241b49d8a7f000dbae1d982a13a87e18f96d51af1278b20298dd1af8d2ab1f563e91e74f7232f46a5 |
23 |
+DIST pytest-trio-0.6.0.tar.gz 37835 BLAKE2B 4158cfc81fc6db3aa9f049127f6550de4ac55fd881c4e35b67bdcfe0492470dce6ee5df9077962b46b6233f942fcc944b41cd185897ddb83824ad1a31abb846e SHA512 662719e67f5d71f73b2e5389592812b79b296b7fdd8ff6f491961bd5444958e829c46a3bd79f08e9b8b8638125c48edd459f599acc2e071fc0cf8013525a3739 |
24 |
|
25 |
diff --git a/dev-python/pytest-trio/pytest-trio-0.6.0.ebuild b/dev-python/pytest-trio/pytest-trio-0.6.0.ebuild |
26 |
new file mode 100644 |
27 |
index 0000000..9376d18 |
28 |
--- /dev/null |
29 |
+++ b/dev-python/pytest-trio/pytest-trio-0.6.0.ebuild |
30 |
@@ -0,0 +1,67 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI="7" |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{6,7} ) |
37 |
+ |
38 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
39 |
+ |
40 |
+inherit distutils-r1 |
41 |
+ |
42 |
+DESCRIPTION="This is a pytest plugin to help you test projects that use Trio" |
43 |
+HOMEPAGE=" |
44 |
+ https://github.com/python-trio/pytest-trio |
45 |
+ https://pypi.org/project/pytest-trio |
46 |
+" |
47 |
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" |
48 |
+ |
49 |
+LICENSE="|| ( MIT Apache-2.0 )" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~x86" |
52 |
+ |
53 |
+# lots of different errors |
54 |
+RESTRICT="test" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ >=dev-python/async_generator-1.9[${PYTHON_USEDEP}] |
58 |
+ dev-python/outcome[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/trio-0.15[${PYTHON_USEDEP}] |
60 |
+" |
61 |
+DEPEND=" |
62 |
+ ${RDEPEND} |
63 |
+ test? ( |
64 |
+ >=dev-python/hypothesis-3.64[${PYTHON_USEDEP}] |
65 |
+ dev-python/pytest-trio[${PYTHON_USEDEP}] |
66 |
+ !~dev-python/pytest-3.7.0[${PYTHON_USEDEP}] |
67 |
+ !~dev-python/pytest-3.7.1[${PYTHON_USEDEP}] |
68 |
+ >=dev-python/pytest-4.3[${PYTHON_USEDEP}] |
69 |
+ dev-python/trio-asyncio[${PYTHON_USEDEP}] |
70 |
+ ) |
71 |
+" |
72 |
+ |
73 |
+distutils_enable_tests pytest |
74 |
+distutils_enable_sphinx docs/source \ |
75 |
+ ">=dev-python/attrs-17.4.0" \ |
76 |
+ ">=dev-python/sphinx-1.6.1" \ |
77 |
+ dev-python/sphinx_rtd_theme \ |
78 |
+ dev-python/sphinxcontrib-trio |
79 |
+ |
80 |
+python_prepare_all() { |
81 |
+ #fix for https://github.com/python-trio/pytest-trio/issues/90 |
82 |
+ # AttributeError("module 'pytest' has no attribute 'RemovedInPytest4Warning'",) |
83 |
+ rm pytest_trio/_tests/conftest.py || die |
84 |
+ |
85 |
+ distutils-r1_python_prepare_all |
86 |
+} |
87 |
+ |
88 |
+python_test() { |
89 |
+ # has to be run in source dir |
90 |
+ #even upstream doesn't know how to run their tests |
91 |
+ #https://github.com/python-trio/pytest-trio/issues/84 |
92 |
+ #"Our CI is still passing AFAIK" |
93 |
+ |
94 |
+ PYTHONPATH="${S}" |
95 |
+ cd "${S}" || die |
96 |
+ pytest -vv || die "Tests fail with ${EPYTHON}" |
97 |
+} |