From 08691e7fb1b8d64f4b5b681acc287bbe2e65ce63 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sun, 21 Apr 2024 17:35:08 +0200 Subject: dev-python/myst-parser: Unpin docutils MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/myst-parser/myst-parser-2.0.0-r1.ebuild | 64 ++++++++++++++++++++++ dev-python/myst-parser/myst-parser-2.0.0.ebuild | 57 ------------------- 2 files changed, 64 insertions(+), 57 deletions(-) create mode 100644 dev-python/myst-parser/myst-parser-2.0.0-r1.ebuild delete mode 100644 dev-python/myst-parser/myst-parser-2.0.0.ebuild (limited to 'dev-python/myst-parser') diff --git a/dev-python/myst-parser/myst-parser-2.0.0-r1.ebuild b/dev-python/myst-parser/myst-parser-2.0.0-r1.ebuild new file mode 100644 index 000000000000..2d897d5f9417 --- /dev/null +++ b/dev-python/myst-parser/myst-parser-2.0.0-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{10..12} pypy3 ) + +inherit distutils-r1 + +MY_P=MyST-Parser-${PV} +DESCRIPTION="Extended commonmark compliant parser, with bridges to Sphinx" +HOMEPAGE=" + https://github.com/executablebooks/MyST-Parser/ + https://pypi.org/project/myst-parser/ +" +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} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" + +RDEPEND=" + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + =dev-python/markdown-it-py-3.0[${PYTHON_USEDEP}] + =dev-python/mdit-py-plugins-0.4[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + =dev-python/sphinx-6[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + =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 + +src_prepare() { + local PATCHES=( + # https://github.com/executablebooks/MyST-Parser/pull/811 + "${DISTDIR}/${P}-sphinx-7.2.patch" + ) + + default + + # unpin docutils + sed -i -e '/docutils/s:,<[0-9.]*::' pyproject.toml || die +} diff --git a/dev-python/myst-parser/myst-parser-2.0.0.ebuild b/dev-python/myst-parser/myst-parser-2.0.0.ebuild deleted file mode 100644 index 215f63999fe7..000000000000 --- a/dev-python/myst-parser/myst-parser-2.0.0.ebuild +++ /dev/null @@ -1,57 +0,0 @@ -# Copyright 2022-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=flit -PYTHON_COMPAT=( python3_{10..12} pypy3 ) - -inherit distutils-r1 - -MY_P=MyST-Parser-${PV} -DESCRIPTION="Extended commonmark compliant parser, with bridges to Sphinx" -HOMEPAGE=" - https://github.com/executablebooks/MyST-Parser/ - https://pypi.org/project/myst-parser/ -" -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} - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" - -RDEPEND=" - =dev-python/markdown-it-py-3.0[${PYTHON_USEDEP}] - =dev-python/mdit-py-plugins-0.4[${PYTHON_USEDEP}] - dev-python/pyyaml[${PYTHON_USEDEP}] - =dev-python/sphinx-6[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/beautifulsoup4[${PYTHON_USEDEP}] - =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 - -PATCHES=( - # https://github.com/executablebooks/MyST-Parser/pull/811 - "${DISTDIR}/${P}-sphinx-7.2.patch" -) -- cgit v1.2.3-65-gdbad