commit:     fa47c28a0d540c1f0865d1f32405a132ca9eff76
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 29 11:21:20 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Oct 29 11:38:50 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa47c28a

dev-python/sphinxcontrib-trio: Remove optional dep on async_generator

Remove the optional test dependency on dev-python/async_generator.
It is used only to test compatibility, async_generator is discontinued
and it has no (other) revdeps in ::gentoo.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../sphinxcontrib-trio-1.1.2-r1.ebuild              | 21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)

diff --git a/dev-python/sphinxcontrib-trio/sphinxcontrib-trio-1.1.2-r1.ebuild 
b/dev-python/sphinxcontrib-trio/sphinxcontrib-trio-1.1.2-r1.ebuild
index be14180a3062..61a57d7caa1a 100644
--- a/dev-python/sphinxcontrib-trio/sphinxcontrib-trio-1.1.2-r1.ebuild
+++ b/dev-python/sphinxcontrib-trio/sphinxcontrib-trio-1.1.2-r1.ebuild
@@ -3,9 +3,10 @@
 
 EAPI=8
 
+DISTUTILS_USE_PEP517=setuptools
 PYPI_NO_NORMALIZE=1
 PYTHON_COMPAT=( python3_{10..11} )
-DISTUTILS_USE_PEP517=setuptools
+
 inherit distutils-r1 pypi
 
 DESCRIPTION="Make Sphinx better at documenting Python functions and methods"
@@ -18,21 +19,27 @@ LICENSE="|| ( Apache-2.0 MIT )"
 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ppc ppc64 ~riscv ~s390 sparc x86"
 SLOT="0"
 
-RDEPEND="dev-python/sphinx[${PYTHON_USEDEP}]"
+RDEPEND="
+       dev-python/sphinx[${PYTHON_USEDEP}]
+"
 
 BDEPEND="
        test? (
-               dev-python/async_generator[${PYTHON_USEDEP}]
                dev-python/cssselect[${PYTHON_USEDEP}]
                dev-python/lxml[${PYTHON_USEDEP}]
-)"
+       )
+"
 
 # AttributeError: 'Sphinx' object has no attribute 'add_stylesheet'
 #distutils_enable_sphinx docs/source
 distutils_enable_tests pytest
 
 python_test() {
-       # https://github.com/python-trio/sphinxcontrib-trio/issues/260
-       local -x 
PYTHONPATH="${BUILD_DIR}/install/usr/lib/${EPYTHON}/site-packages"
-       epytest --deselect tests/test_sphinxcontrib_trio.py::test_end_to_end
+       local EPYTEST_DESELECT=(
+               # https://github.com/python-trio/sphinxcontrib-trio/issues/260
+               tests/test_sphinxcontrib_trio.py::test_end_to_end
+       )
+
+       local -x PYTHONPATH="${BUILD_DIR}/install$(python_get_sitedir)"
+       epytest
 }

Reply via email to