summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-04-21 17:30:30 +0200
committerMichał Górny <mgorny@gentoo.org>2024-04-21 17:46:24 +0200
commit6f7bdf4004bcd5135ec34cc0c0e67bb86694de74 (patch)
treeede8229fd06d06b88ef43fb6aecd0371ba1d1b49
parentprofiles/arch/amd64: un-unmask USE=oci8-instant-client on amd64 (diff)
downloadgentoo-6f7bdf4004bcd5135ec34cc0c0e67bb86694de74.tar.gz
gentoo-6f7bdf4004bcd5135ec34cc0c0e67bb86694de74.tar.bz2
gentoo-6f7bdf4004bcd5135ec34cc0c0e67bb86694de74.zip
dev-python/myst-parser: Backport test fixes for Sphinx 7.2.6
Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--dev-python/myst-parser/Manifest1
-rw-r--r--dev-python/myst-parser/myst-parser-2.0.0.ebuild19
2 files changed, 9 insertions, 11 deletions
diff --git a/dev-python/myst-parser/Manifest b/dev-python/myst-parser/Manifest
index f62ab3c5d2ac..850540c12b8c 100644
--- a/dev-python/myst-parser/Manifest
+++ b/dev-python/myst-parser/Manifest
@@ -1 +1,2 @@
DIST MyST-Parser-2.0.0.gh.tar.gz 815453 BLAKE2B 8f5dd823c3c79d843b45a7a4819d5677b51a12f78db2c1ce9700eb6faa8c4f0bc167fb1d8cd947e89ffab85aec947ab527b67dc73ef4db97a393f700a4331738 SHA512 c47bdd773565e93c4714d318a70f9a8adab1be6e2a63c23175667fc4afb5da4d66b84e11176782c8202e9fd68883e74d444911ddfb0b91356c2ba07fa65f7ea4
+DIST myst-parser-2.0.0-sphinx-7.2.patch 22443 BLAKE2B 994f0b2c419832e61cb006b1b45c01274970900bdcfcef3422d5331e88962a46884afbf5b27b5cb98ed349a426444ca4ff21810526cc34eae4cf074102f7b3de SHA512 707b2a69c81352d2900c91088ca137f6455e0006b0e7c798b6f03b9f0cac85489c27db662f5e6ab6e2cd52e10f1594aa54d5c6821c07c110ad138d0cf129ac65
diff --git a/dev-python/myst-parser/myst-parser-2.0.0.ebuild b/dev-python/myst-parser/myst-parser-2.0.0.ebuild
index ce6cf989a97c..215f63999fe7 100644
--- a/dev-python/myst-parser/myst-parser-2.0.0.ebuild
+++ b/dev-python/myst-parser/myst-parser-2.0.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022-2023 Gentoo Authors
+# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -17,6 +17,8 @@ HOMEPAGE="
SRC_URI="
https://github.com/executablebooks/MyST-Parser/archive/v${PV}.tar.gz
-> ${MY_P}.gh.tar.gz
+ https://github.com/executablebooks/MyST-Parser/pull/811.patch
+ -> ${P}-sphinx-7.2.patch
"
S=${WORKDIR}/${MY_P}
@@ -42,19 +44,14 @@ BDEPEND="
>=dev-python/linkify-it-py-2.0.0[${PYTHON_USEDEP}]
dev-python/pytest-regressions[${PYTHON_USEDEP}]
dev-python/pytest-param-files[${PYTHON_USEDEP}]
+ >=dev-python/sphinx-7.2.6[${PYTHON_USEDEP}]
dev-python/sphinx-pytest[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
-python_test() {
- local EPYTEST_DESELECT=()
-
- false && [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=(
- # bad test relying on exact exception messages
- "tests/test_renderers/test_include_directive.py::test_errors[9-Non-existent path:]"
- )
-
- epytest
-}
+PATCHES=(
+ # https://github.com/executablebooks/MyST-Parser/pull/811
+ "${DISTDIR}/${P}-sphinx-7.2.patch"
+)