commit:     a4cf4a7f9d1a9ea0eb425d663e4894687f7093c3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Apr  8 11:09:34 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Apr  8 11:09:55 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4cf4a7f

dev-python/hatchling: Enable tests on pypy3

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

 dev-python/hatchling/hatchling-0.22.0.ebuild | 23 ++++++++---------------
 1 file changed, 8 insertions(+), 15 deletions(-)

diff --git a/dev-python/hatchling/hatchling-0.22.0.ebuild 
b/dev-python/hatchling/hatchling-0.22.0.ebuild
index be8f4b765bce..ccb3b007747a 100644
--- a/dev-python/hatchling/hatchling-0.22.0.ebuild
+++ b/dev-python/hatchling/hatchling-0.22.0.ebuild
@@ -35,15 +35,13 @@ RDEPEND="
 BDEPEND="
        ${RDEPEND}
        test? (
-               $(python_gen_cond_dep '
-                       dev-python/atomicwrites[${PYTHON_USEDEP}]
-                       dev-python/click[${PYTHON_USEDEP}]
-                       dev-python/httpx[${PYTHON_USEDEP}]
-                       dev-python/platformdirs[${PYTHON_USEDEP}]
-                       dev-python/rich[${PYTHON_USEDEP}]
-                       dev-python/tomli-w[${PYTHON_USEDEP}]
-                       dev-python/virtualenv[${PYTHON_USEDEP}]
-               ' 'python*')
+               dev-python/atomicwrites[${PYTHON_USEDEP}]
+               dev-python/click[${PYTHON_USEDEP}]
+               dev-python/httpx[${PYTHON_USEDEP}]
+               dev-python/platformdirs[${PYTHON_USEDEP}]
+               dev-python/rich[${PYTHON_USEDEP}]
+               dev-python/tomli-w[${PYTHON_USEDEP}]
+               dev-python/virtualenv[${PYTHON_USEDEP}]
        )
 "
 
@@ -56,11 +54,6 @@ python_compile() {
 }
 
 python_test() {
-       if [[ ${EPYTHON} != python* ]]; then
-               einfo "Skipping tests on ${EPYTHON}"
-               return
-       fi
-
        local -x EPYTEST_DESELECT=(
                # these run pip to install stuff
                tests/backend/dep/test_core.py::test_dependency_found
@@ -75,5 +68,5 @@ python_test() {
        # and hatchling
        cd "${WORKDIR}/${MY_P}" || die
        local -x PYTHONPATH="src:${PYTHONPATH}"
-       epytest -x tests/backend
+       epytest tests/backend
 }

Reply via email to