commit: a0071ed9b4607c23ef216ca159b842fa5bb047a1 Author: Marco Sirabella <marco <AT> sirabella <DOT> org> AuthorDate: Fri Feb 10 09:25:46 2023 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Wed Mar 1 13:46:09 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0071ed9
dev-python/sphinx-autoapi: Ignore tests conditionally Closes: https://bugs.gentoo.org/892607 See-also: https://github.com/readthedocs/sphinx-autoapi/issues/368 Signed-off-by: Marco Sirabella <marco <AT> sirabella.org> Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> dev-python/sphinx-autoapi/sphinx-autoapi-2.0.0.ebuild | 11 +++++++++++ dev-python/sphinx-autoapi/sphinx-autoapi-2.0.1.ebuild | 13 +++++++++++++ 2 files changed, 24 insertions(+) diff --git a/dev-python/sphinx-autoapi/sphinx-autoapi-2.0.0.ebuild b/dev-python/sphinx-autoapi/sphinx-autoapi-2.0.0.ebuild index ccd674abfc2c..1e05cb3afb91 100644 --- a/dev-python/sphinx-autoapi/sphinx-autoapi-2.0.0.ebuild +++ b/dev-python/sphinx-autoapi/sphinx-autoapi-2.0.0.ebuild @@ -39,3 +39,14 @@ EPYTEST_DESELECT=( distutils_enable_tests pytest distutils_enable_sphinx docs --no-autodoc + +python_test() { + # https://github.com/readthedocs/sphinx-autoapi/issues/368 + if has_version ">=dev-python/sphinx-6.0"; then + EPYTEST_DESELECT+=( + tests/python/test_pyintegration.py::TestPositionalOnlyArgumentsModule::test_integration + ) + fi + + distutils-r1_python_test +} diff --git a/dev-python/sphinx-autoapi/sphinx-autoapi-2.0.1.ebuild b/dev-python/sphinx-autoapi/sphinx-autoapi-2.0.1.ebuild index d640adbe32b5..06e4095ca49a 100644 --- a/dev-python/sphinx-autoapi/sphinx-autoapi-2.0.1.ebuild +++ b/dev-python/sphinx-autoapi/sphinx-autoapi-2.0.1.ebuild @@ -39,3 +39,16 @@ EPYTEST_DESELECT=( distutils_enable_tests pytest distutils_enable_sphinx docs --no-autodoc + +python_test() { + # https://github.com/readthedocs/sphinx-autoapi/issues/368 + if has_version "<dev-python/sphinx-6.0"; then + EPYTEST_DESELECT+=( + tests/python/test_pyintegration.py::TestPositionalOnlyArgumentsModule::test_integration + tests/python/test_pyintegration.py::TestPy3Module::test_annotations + tests/python/test_pyintegration.py::TestAnnotationCommentsModule::test_integration + ) + fi + + distutils-r1_python_test +}
