mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-11 00:07:51 +03:00
56 lines
1.6 KiB
Bash
56 lines
1.6 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DISTUTILS_USE_PEP517=pdm-backend
|
|
PYTHON_COMPAT=( pypy3_11 python3_{11..13} )
|
|
|
|
inherit distutils-r1 pypi
|
|
|
|
DESCRIPTION="Automatic documentation from sources, for MkDocs"
|
|
HOMEPAGE="
|
|
https://mkdocstrings.github.io/
|
|
https://github.com/mkdocstrings/mkdocstrings/
|
|
https://pypi.org/project/mkdocstrings/
|
|
"
|
|
|
|
LICENSE="ISC"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~arm64 ~riscv"
|
|
|
|
RDEPEND="
|
|
>=dev-python/jinja2-3.1[${PYTHON_USEDEP}]
|
|
>=dev-python/markdown-3.6[${PYTHON_USEDEP}]
|
|
>=dev-python/markupsafe-1.1[${PYTHON_USEDEP}]
|
|
>=dev-python/mkdocs-1.6[${PYTHON_USEDEP}]
|
|
>=dev-python/mkdocs-autorefs-1.4[${PYTHON_USEDEP}]
|
|
>=dev-python/pymdown-extensions-6.3[${PYTHON_USEDEP}]
|
|
"
|
|
BDEPEND="
|
|
test? (
|
|
dev-python/markdown-exec[${PYTHON_USEDEP}]
|
|
dev-python/mkdocs-material[${PYTHON_USEDEP}]
|
|
>=dev-python/mkdocstrings-python-1.16.2[${PYTHON_USEDEP}]
|
|
dev-python/sphinx[${PYTHON_USEDEP}]
|
|
)
|
|
"
|
|
|
|
EPYTEST_PLUGINS=()
|
|
distutils_enable_tests pytest
|
|
|
|
# mkdocstrings documentation generation requires several currently
|
|
# unpackaged mkdocs extensions and plug-ins, and this test
|
|
# makes use of mkdocs configuration
|
|
EPYTEST_DESELECT=(
|
|
tests/test_plugin.py::test_disabling_plugin
|
|
# WTF, it tries to unlink installed files from installed package?!
|
|
tests/test_handlers.py::test_extended_templates
|
|
# Needs unpackaged mkdocs-callouts, mkdocs-literate-nav, and possibly more
|
|
tests/test_inventory.py::test_sphinx_load_mkdocstrings_inventory_file
|
|
# Internet
|
|
tests/test_inventory.py::test_load_inventory
|
|
)
|
|
|
|
export PDM_BUILD_SCM_VERSION=${PV}
|