summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2023-05-11 11:15:34 +0100
committerMarek Szuba <marecki@gentoo.org>2023-05-11 11:56:08 +0100
commit3c052069432f0db5ef5f0f6e98dd2606f9c26e42 (patch)
treebcd7e35caaa4325c3a115f5d5ef2dfeeed2d1272 /dev-python
parentdev-python/mkdocstrings-python: new package, add 0.10.1 (diff)
downloadgentoo-3c052069432f0db5ef5f0f6e98dd2606f9c26e42.tar.gz
gentoo-3c052069432f0db5ef5f0f6e98dd2606f9c26e42.tar.bz2
gentoo-3c052069432f0db5ef5f0f6e98dd2606f9c26e42.zip
dev-python/mkdocstrings: new package, add 0.21.2
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/mkdocstrings/Manifest1
-rw-r--r--dev-python/mkdocstrings/metadata.xml13
-rw-r--r--dev-python/mkdocstrings/mkdocstrings-0.21.2.ebuild39
3 files changed, 53 insertions, 0 deletions
diff --git a/dev-python/mkdocstrings/Manifest b/dev-python/mkdocstrings/Manifest
new file mode 100644
index 000000000000..327520f07eb7
--- /dev/null
+++ b/dev-python/mkdocstrings/Manifest
@@ -0,0 +1 @@
+DIST mkdocstrings-0.21.2.gh.tar.gz 69412 BLAKE2B 2e941045c3f9473ec83a60b82ae85ffbb200201295a8d4405648b4b65ef282fa189b01f54107e999946ce90fbea34a798177dd3d0dbd138a5db6e507cbc0ef7d SHA512 0880163679cce78432880904c6a56eae533a2d6a167b109a21c45daf5f76abf433243b54bcbb0507b5b42c3df9d9d93367cb2bde996c2dcdcc3e55320b2be35c
diff --git a/dev-python/mkdocstrings/metadata.xml b/dev-python/mkdocstrings/metadata.xml
new file mode 100644
index 000000000000..7eaef3684e1f
--- /dev/null
+++ b/dev-python/mkdocstrings/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>marecki@gentoo.org</email>
+ <name>Marek Szuba</name>
+ </maintainer>
+ <stabilize-allarches/>
+ <upstream>
+ <remote-id type="pypi">mkdocstrings</remote-id>
+ <remote-id type="github">mkdocstrings/mkdocstrings</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/mkdocstrings/mkdocstrings-0.21.2.ebuild b/dev-python/mkdocstrings/mkdocstrings-0.21.2.ebuild
new file mode 100644
index 000000000000..9c4b3536f017
--- /dev/null
+++ b/dev-python/mkdocstrings/mkdocstrings-0.21.2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..11} )
+DISTUTILS_USE_PEP517=pdm
+
+inherit distutils-r1
+
+DESCRIPTION="Automatic documentation from sources, for MkDocs"
+HOMEPAGE="https://mkdocstrings.github.io/ https://pypi.org/project/mkdocs-autorefs/"
+# Tests require files absent from PyPI tarballs
+SRC_URI="https://github.com/${PN}/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.gh.tar.gz"
+
+LICENSE="ISC"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv"
+IUSE="python"
+
+REQUIRED_USE="test? ( python )"
+
+RDEPEND=">=dev-python/jinja-2.11.1[${PYTHON_USEDEP}]
+ >=dev-python/markdown-3.3[${PYTHON_USEDEP}]
+ >=dev-python/markupsafe-1.1[${PYTHON_USEDEP}]
+ >=dev-python/mkdocs-1.2[${PYTHON_USEDEP}]
+ >=dev-python/mkdocs-autorefs-0.3.1[${PYTHON_USEDEP}]
+ >=dev-python/pymdown-extensions-6.3[${PYTHON_USEDEP}]
+ python? ( dev-python/mkdocstrings-python[${PYTHON_USEDEP}] )"
+BDEPEND="test? ( dev-python/mkdocs-material[${PYTHON_USEDEP}] )"
+
+# 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
+)
+
+distutils_enable_tests pytest