1 |
commit: e0d5b38166015cc1c8eb29ee0799c642c1a915b2 |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Mar 31 16:43:22 2020 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Tue Mar 31 16:43:22 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e0d5b381 |
7 |
|
8 |
dev-python/pytest-trio: more deps, more drama |
9 |
|
10 |
Package-Manager: Portage-2.3.96, Repoman-2.3.22 |
11 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
12 |
|
13 |
dev-python/pytest-trio/pytest-trio-0.5.2.ebuild | 12 +++++++++++- |
14 |
1 file changed, 11 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 8232fa5..aba3ec7 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 |
@@ -34,14 +34,20 @@ DEPEND=" |
21 |
>=dev-python/hypothesis-3.64[${PYTHON_USEDEP}] |
22 |
!~dev-python/pytest-3.7.0[${PYTHON_USEDEP}] |
23 |
!~dev-python/pytest-3.7.1[${PYTHON_USEDEP}] |
24 |
+ >=dev-python/pytest-4.3[${PYTHON_USEDEP}] |
25 |
dev-python/trio-asyncio[${PYTHON_USEDEP}] |
26 |
) |
27 |
" |
28 |
|
29 |
distutils_enable_tests pytest |
30 |
-distutils_enable_sphinx docs/source |
31 |
+distutils_enable_sphinx docs/source \ |
32 |
+ ">=dev-python/attrs-17.4.0" \ |
33 |
+ ">=dev-python/sphinx-1.6.1" \ |
34 |
+ dev-python/sphinx_rtd_theme \ |
35 |
+ dev-python/sphinxcontrib-trio |
36 |
|
37 |
python_prepare_all() { |
38 |
+ #fix for https://github.com/python-trio/pytest-trio/issues/90 |
39 |
# AttributeError("module 'pytest' has no attribute 'RemovedInPytest4Warning'",) |
40 |
rm pytest_trio/_tests/conftest.py || die |
41 |
|
42 |
@@ -50,6 +56,10 @@ python_prepare_all() { |
43 |
|
44 |
python_test() { |
45 |
# has to be run in source dir |
46 |
+ #even upstream doesn't know how to run their tests |
47 |
+ #https://github.com/python-trio/pytest-trio/issues/84 |
48 |
+ #"Our CI is still passing AFAIK" |
49 |
+ |
50 |
PYTHONPATH="${S}" |
51 |
cd "${S}" || die |
52 |
pytest -vv || die "Tests fail with ${EPYTHON}" |