dev-python/myst-parser: Bump to 4.0.0

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2024-08-06 06:40:11 +02:00
parent c3941a4e70
commit f11d0c66b3
2 changed files with 59 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST MyST-Parser-3.0.1.gh.tar.gz 823769 BLAKE2B 2b8d84dc6a61abd7d168317bb80632172f01f109751b40c108828d0b2fb9c8536da32ff6c873cd3bc20b70c2613b25167eeee999ea9f2d59dfc914ac231120b2 SHA512 4c2b08e9307685c2ef02eee89becba1d6e9f67eba7ab6d5bb5b425f232ac0922bb31cb5df5d60a5ed0846a9314475bcd2cb073a0101f514455c2598340e4b441
DIST MyST-Parser-4.0.0.gh.tar.gz 825843 BLAKE2B 60361e72014fc4428e026f6b93f91878824a0cd46bbe128b04c0ab9e9578c252fea6ece23dfbee0b1652d5529e411669d7cdab3ffebe8128e791ebdd26b950cd SHA512 82a8c642d839133413577fd85b5668a6b4d3869f60b7c7c64f98ec6cf52f33b28abd33ee7ddbbf8e286a3f233a152878802e6a8091c88f63844ac774c88ebd62

View File

@@ -0,0 +1,58 @@
# 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..13} 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
"
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-0.18[${PYTHON_USEDEP}]
dev-python/jinja[${PYTHON_USEDEP}]
<dev-python/markdown-it-py-4[${PYTHON_USEDEP}]
>=dev-python/markdown-it-py-3.0[${PYTHON_USEDEP}]
<dev-python/mdit-py-plugins-0.5[${PYTHON_USEDEP}]
>=dev-python/mdit-py-plugins-0.4.1[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
<dev-python/sphinx-9[${PYTHON_USEDEP}]
>=dev-python/sphinx-6[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
dev-python/defusedxml[${PYTHON_USEDEP}]
<dev-python/linkify-it-py-3[${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.3[${PYTHON_USEDEP}]
dev-python/sphinx-pytest[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest
src_prepare() {
default
# unpin docutils
sed -i -e '/docutils/s:,<[0-9.]*::' pyproject.toml || die
}