1 |
commit: db2c2dfcf93d7e8b14a6746a755bfef7536fa43e |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Tue Mar 31 17:32:36 2020 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
5 |
CommitDate: Tue Mar 31 17:32:36 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=db2c2dfc |
7 |
|
8 |
dev-python/pytest-ordering: depend on self for 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-ordering/pytest-ordering-0.6.ebuild | 14 ++++++++++++-- |
14 |
1 file changed, 12 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/pytest-ordering/pytest-ordering-0.6.ebuild b/dev-python/pytest-ordering/pytest-ordering-0.6.ebuild |
17 |
index 6cb756e..a6fe80e 100644 |
18 |
--- a/dev-python/pytest-ordering/pytest-ordering-0.6.ebuild |
19 |
+++ b/dev-python/pytest-ordering/pytest-ordering-0.6.ebuild |
20 |
@@ -3,7 +3,9 @@ |
21 |
|
22 |
EAPI=7 |
23 |
|
24 |
-PYTHON_COMPAT=( python3_{6,7} ) |
25 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
26 |
+ |
27 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
28 |
|
29 |
inherit distutils-r1 |
30 |
|
31 |
@@ -18,7 +20,15 @@ LICENSE="MIT" |
32 |
SLOT="0" |
33 |
KEYWORDS="~amd64 ~x86" |
34 |
|
35 |
-RDEPEND="" |
36 |
+DEPEND="test? ( dev-python/pytest-ordering[${PYTHON_USEDEP}] )" |
37 |
|
38 |
distutils_enable_tests pytest |
39 |
distutils_enable_sphinx docs/source |
40 |
+ |
41 |
+python_prepare_all() { |
42 |
+ # TypeError: `args` parameter expected to be a list or tuple of strings, got: '--markers' (type: <class 'str'>) |
43 |
+ sed -i -e 's:test_run_marker_registered:_&:' \ |
44 |
+ tests/test_ordering.py || die |
45 |
+ |
46 |
+ distutils-r1_python_prepare_all |
47 |
+} |