1 |
commit: bcdf5efb36ded9c51bb4eeff457c7bd70f0877cd |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Wed Nov 2 21:34:27 2022 +0000 |
4 |
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
5 |
CommitDate: Thu Nov 3 01:12:51 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bcdf5efb |
7 |
|
8 |
dev-python/praw: oh no, broken tests |
9 |
|
10 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
11 |
|
12 |
dev-python/praw/praw-7.6.0.ebuild | 16 ++++++++++++++-- |
13 |
1 file changed, 14 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/dev-python/praw/praw-7.6.0.ebuild b/dev-python/praw/praw-7.6.0.ebuild |
16 |
index ee5eca1a9..5f75c851c 100644 |
17 |
--- a/dev-python/praw/praw-7.6.0.ebuild |
18 |
+++ b/dev-python/praw/praw-7.6.0.ebuild |
19 |
@@ -4,6 +4,7 @@ |
20 |
EAPI=8 |
21 |
|
22 |
PYTHON_COMPAT=( python3_{8..10} ) |
23 |
+DISTUTILS_USE_PEP517=setuptools |
24 |
inherit distutils-r1 |
25 |
|
26 |
DESCRIPTION="Python Reddit API Wrapper" |
27 |
@@ -25,6 +26,14 @@ BDEPEND="test? ( |
28 |
dev-python/betamax-matchers[${PYTHON_USEDEP}] |
29 |
)" |
30 |
|
31 |
+# TODO: remove in next release |
32 |
+EPYTEST_DESELECT=( |
33 |
+ tests/unit/test_deprecations.py |
34 |
+ tests/unit/util/test_deprecate_args.py |
35 |
+ tests/unit/models/reddit/test_submission.py::TestSubmission::test_comment_sort_warning |
36 |
+ tests/unit/models/reddit/test_submission.py::TestSubmission::test_comment_sort_warning__disabled |
37 |
+) |
38 |
+ |
39 |
distutils_enable_sphinx docs dev-python/sphinx_rtd_theme |
40 |
|
41 |
distutils_enable_tests pytest |
42 |
@@ -37,6 +46,9 @@ python_prepare_all() { |
43 |
} |
44 |
|
45 |
python_test() { |
46 |
- # spams deprecation warnings |
47 |
- epytest -p no:asyncio |
48 |
+ local epytestargs=( |
49 |
+ # spams deprecation warnings |
50 |
+ -p no:asyncio |
51 |
+ ) |
52 |
+ epytest "${epytestargs[@]}" |
53 |
} |