Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sphinx-autoapi/
Date: Wed, 01 Mar 2023 13:46:22
Message-Id: 1677678369.a0071ed9b4607c23ef216ca159b842fa5bb047a1.juippis@gentoo
1 commit: a0071ed9b4607c23ef216ca159b842fa5bb047a1
2 Author: Marco Sirabella <marco <AT> sirabella <DOT> org>
3 AuthorDate: Fri Feb 10 09:25:46 2023 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 1 13:46:09 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0071ed9
7
8 dev-python/sphinx-autoapi: Ignore tests conditionally
9
10 Closes: https://bugs.gentoo.org/892607
11 See-also: https://github.com/readthedocs/sphinx-autoapi/issues/368
12 Signed-off-by: Marco Sirabella <marco <AT> sirabella.org>
13 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
14
15 dev-python/sphinx-autoapi/sphinx-autoapi-2.0.0.ebuild | 11 +++++++++++
16 dev-python/sphinx-autoapi/sphinx-autoapi-2.0.1.ebuild | 13 +++++++++++++
17 2 files changed, 24 insertions(+)
18
19 diff --git a/dev-python/sphinx-autoapi/sphinx-autoapi-2.0.0.ebuild b/dev-python/sphinx-autoapi/sphinx-autoapi-2.0.0.ebuild
20 index ccd674abfc2c..1e05cb3afb91 100644
21 --- a/dev-python/sphinx-autoapi/sphinx-autoapi-2.0.0.ebuild
22 +++ b/dev-python/sphinx-autoapi/sphinx-autoapi-2.0.0.ebuild
23 @@ -39,3 +39,14 @@ EPYTEST_DESELECT=(
24
25 distutils_enable_tests pytest
26 distutils_enable_sphinx docs --no-autodoc
27 +
28 +python_test() {
29 + # https://github.com/readthedocs/sphinx-autoapi/issues/368
30 + if has_version ">=dev-python/sphinx-6.0"; then
31 + EPYTEST_DESELECT+=(
32 + tests/python/test_pyintegration.py::TestPositionalOnlyArgumentsModule::test_integration
33 + )
34 + fi
35 +
36 + distutils-r1_python_test
37 +}
38
39 diff --git a/dev-python/sphinx-autoapi/sphinx-autoapi-2.0.1.ebuild b/dev-python/sphinx-autoapi/sphinx-autoapi-2.0.1.ebuild
40 index d640adbe32b5..06e4095ca49a 100644
41 --- a/dev-python/sphinx-autoapi/sphinx-autoapi-2.0.1.ebuild
42 +++ b/dev-python/sphinx-autoapi/sphinx-autoapi-2.0.1.ebuild
43 @@ -39,3 +39,16 @@ EPYTEST_DESELECT=(
44
45 distutils_enable_tests pytest
46 distutils_enable_sphinx docs --no-autodoc
47 +
48 +python_test() {
49 + # https://github.com/readthedocs/sphinx-autoapi/issues/368
50 + if has_version "<dev-python/sphinx-6.0"; then
51 + EPYTEST_DESELECT+=(
52 + tests/python/test_pyintegration.py::TestPositionalOnlyArgumentsModule::test_integration
53 + tests/python/test_pyintegration.py::TestPy3Module::test_annotations
54 + tests/python/test_pyintegration.py::TestAnnotationCommentsModule::test_integration
55 + )
56 + fi
57 +
58 + distutils-r1_python_test
59 +}