Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/myst_parser/
Date: Fri, 24 Jun 2022 15:46:06
Message-Id: 1656085557.b6d260fdd302c24cb3b06149f4cc03715d77cfaa.mgorny@gentoo
1 commit: b6d260fdd302c24cb3b06149f4cc03715d77cfaa
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 24 15:21:47 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 24 15:45:57 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6d260fd
7
8 dev-python/myst_parser: Enable pypy3
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/myst_parser/myst_parser-0.18.0.ebuild | 23 ++++++++++++++++-------
13 1 file changed, 16 insertions(+), 7 deletions(-)
14
15 diff --git a/dev-python/myst_parser/myst_parser-0.18.0.ebuild b/dev-python/myst_parser/myst_parser-0.18.0.ebuild
16 index 607aca9eec4a..bc0af0f8d333 100644
17 --- a/dev-python/myst_parser/myst_parser-0.18.0.ebuild
18 +++ b/dev-python/myst_parser/myst_parser-0.18.0.ebuild
19 @@ -4,7 +4,7 @@
20 EAPI=8
21
22 DISTUTILS_USE_PEP517=flit
23 -PYTHON_COMPAT=( python3_{8..11} )
24 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
25
26 inherit distutils-r1
27
28 @@ -43,10 +43,19 @@ BDEPEND="
29 )
30 "
31
32 -EPYTEST_DESELECT=(
33 - # Unimportant tests needing a new dep linkify
34 - tests/test_renderers/test_myst_config.py::test_cmdline
35 - tests/test_sphinx/test_sphinx_builds.py::test_extended_syntaxes
36 -)
37 -
38 distutils_enable_tests pytest
39 +
40 +python_test() {
41 + local EPYTEST_DESELECT=(
42 + # Unimportant tests needing a new dep linkify
43 + tests/test_renderers/test_myst_config.py::test_cmdline
44 + tests/test_sphinx/test_sphinx_builds.py::test_extended_syntaxes
45 + )
46 +
47 + [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=(
48 + # bad test relying on exact exception messages
49 + "tests/test_renderers/test_include_directive.py::test_errors[9-Non-existent path:]"
50 + )
51 +
52 + epytest
53 +}