Files
guru/dev-python/mdformat/mdformat-1.0.0.ebuild
T
David Roman 59f98117e4 */*: disable py3.12 && remove dead impls
Disable py3.12 except for packages which only had py3.12 in PYTHON_COMPAT

Signed-off-by: David Roman <stkw0@disroot.org>
Part-of: https://codeberg.org/gentoo/guru/pulls/161
2026-11-03 14:42:49 +01:00

36 lines
804 B
Bash

# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{13..14} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1
DESCRIPTION="CommonMark compliant Markdown formatter"
HOMEPAGE="
https://github.com/hukkin/mdformat
https://pypi.org/project/mdformat/
"
SRC_URI="
https://github.com/hukkin/${PN}/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RDEPEND="
>=dev-python/markdown-it-py-1[${PYTHON_USEDEP}]
<dev-python/markdown-it-py-5[${PYTHON_USEDEP}]
"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
python_test() {
# read_toml_opts() caches per directory, recycled tmp dirs poison the cache
epytest -o tmp_path_retention_count=3 -o tmp_path_retention_policy=all
}