1 |
commit: be0208ec654fa3530ae5a848feaf10fe33125c39 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Sun Mar 29 12:35:39 2020 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Sun Mar 29 12:35:39 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=be0208ec |
7 |
|
8 |
dev-python/pytest-trio: made some progress with the tests |
9 |
|
10 |
Package-Manager: Portage-2.3.96, Repoman-2.3.22 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
12 |
|
13 |
dev-python/pytest-trio/pytest-trio-0.5.2.ebuild | 21 ++++++++++++++++++++- |
14 |
1 file changed, 20 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/dev-python/pytest-trio/pytest-trio-0.5.2.ebuild b/dev-python/pytest-trio/pytest-trio-0.5.2.ebuild |
17 |
index b35afa2..8232fa5 100644 |
18 |
--- a/dev-python/pytest-trio/pytest-trio-0.5.2.ebuild |
19 |
+++ b/dev-python/pytest-trio/pytest-trio-0.5.2.ebuild |
20 |
@@ -3,7 +3,9 @@ |
21 |
|
22 |
EAPI="7" |
23 |
|
24 |
-PYTHON_COMPAT=( python3_6 ) |
25 |
+PYTHON_COMPAT=( python3_{6,7} ) |
26 |
+ |
27 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
28 |
|
29 |
inherit distutils-r1 |
30 |
|
31 |
@@ -18,6 +20,9 @@ LICENSE="|| ( MIT Apache-2.0 )" |
32 |
SLOT="0" |
33 |
KEYWORDS="~amd64 ~x86" |
34 |
|
35 |
+# lots of different errors |
36 |
+RESTRICT="test" |
37 |
+ |
38 |
RDEPEND=" |
39 |
>=dev-python/async_generator-1.9[${PYTHON_USEDEP}] |
40 |
dev-python/outcome[${PYTHON_USEDEP}] |
41 |
@@ -35,3 +40,17 @@ DEPEND=" |
42 |
|
43 |
distutils_enable_tests pytest |
44 |
distutils_enable_sphinx docs/source |
45 |
+ |
46 |
+python_prepare_all() { |
47 |
+ # AttributeError("module 'pytest' has no attribute 'RemovedInPytest4Warning'",) |
48 |
+ rm pytest_trio/_tests/conftest.py || die |
49 |
+ |
50 |
+ distutils-r1_python_prepare_all |
51 |
+} |
52 |
+ |
53 |
+python_test() { |
54 |
+ # has to be run in source dir |
55 |
+ PYTHONPATH="${S}" |
56 |
+ cd "${S}" || die |
57 |
+ pytest -vv || die "Tests fail with ${EPYTHON}" |
58 |
+} |