commit:     90eb35f2f68667293289a875f5191766091cbc43
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Mar  1 19:11:52 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Mar  1 20:35:11 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90eb35f2

dev-python/pymdown-extensions: Enable pypy3

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

 .../pymdown-extensions/pymdown-extensions-10.7.ebuild    | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/dev-python/pymdown-extensions/pymdown-extensions-10.7.ebuild 
b/dev-python/pymdown-extensions/pymdown-extensions-10.7.ebuild
index e511be06d01e..b625aeccdfcc 100644
--- a/dev-python/pymdown-extensions/pymdown-extensions-10.7.ebuild
+++ b/dev-python/pymdown-extensions/pymdown-extensions-10.7.ebuild
@@ -4,7 +4,7 @@
 EAPI=8
 
 DISTUTILS_USE_PEP517=hatchling
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( pypy3 python3_{10..12} )
 
 inherit distutils-r1 pypi
 
@@ -30,3 +30,17 @@ BDEPEND="
 "
 
 distutils_enable_tests pytest
+
+python_test() {
+       local EPYTEST_DESELECT=()
+       case ${EPYTHON} in
+               pypy3)
+                       EPYTEST_DESELECT+=(
+                               
'tests/test_syntax.py::test_extensions[compare54]'
+                       )
+                       ;;
+       esac
+
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       epytest
+}

Reply via email to