From a5ccd8b420cb9f7ed7b30eac6b7eec10760072b9 Mon Sep 17 00:00:00 2001 From: Andrew Ammerlaan Date: Thu, 20 May 2021 16:51:33 +0200 Subject: dev-python/sphinx-autodoc-typehints: import from ::guru Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan --- dev-python/sphinx-autodoc-typehints/Manifest | 1 + dev-python/sphinx-autodoc-typehints/metadata.xml | 17 +++++++++ .../sphinx-autodoc-typehints-1.12.0.ebuild | 43 ++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 dev-python/sphinx-autodoc-typehints/Manifest create mode 100644 dev-python/sphinx-autodoc-typehints/metadata.xml create mode 100644 dev-python/sphinx-autodoc-typehints/sphinx-autodoc-typehints-1.12.0.ebuild (limited to 'dev-python') diff --git a/dev-python/sphinx-autodoc-typehints/Manifest b/dev-python/sphinx-autodoc-typehints/Manifest new file mode 100644 index 000000000000..c3b115698f0f --- /dev/null +++ b/dev-python/sphinx-autodoc-typehints/Manifest @@ -0,0 +1 @@ +DIST sphinx-autodoc-typehints-1.12.0.tar.gz 19494 BLAKE2B beacc4f8ab453612dfd5264f1c65fd6bdd957269a28ee5b71b762d0baf5a3d4be58398b32d4263f996648281c1139f47a7564e8fc6444a94095f6a970b4cc27a SHA512 92fa340495a48111fa3d600d8c46d83214505ac2a5c71cb1303e846ac439f1e0ff14f8ce8dfd5ffdb6a62a9fa15dde8a5227f946840d9377ad5f7fde25894b75 diff --git a/dev-python/sphinx-autodoc-typehints/metadata.xml b/dev-python/sphinx-autodoc-typehints/metadata.xml new file mode 100644 index 000000000000..a8e231b705d7 --- /dev/null +++ b/dev-python/sphinx-autodoc-typehints/metadata.xml @@ -0,0 +1,17 @@ + + + + + + andrewammerlaan@gentoo.org + Andrew Ammerlaan + + +This extension allows you to use Python 3 annotations for documenting acceptable argument types and return value types of functions. This allows you to use type hints in a very natural fashion + + + agronholm/sphinx-autodoc-typehints + sphinx-autodoc-typehints + + + diff --git a/dev-python/sphinx-autodoc-typehints/sphinx-autodoc-typehints-1.12.0.ebuild b/dev-python/sphinx-autodoc-typehints/sphinx-autodoc-typehints-1.12.0.ebuild new file mode 100644 index 000000000000..1999e89a2278 --- /dev/null +++ b/dev-python/sphinx-autodoc-typehints/sphinx-autodoc-typehints-1.12.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) + +inherit distutils-r1 + +DESCRIPTION="Type hints support for the Sphinx autodoc extension " +HOMEPAGE=" + https://github.com/agronholm/sphinx-autodoc-typehints/ + https://pypi.org/project/sphinx-autodoc-typehints/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +KEYWORDS="~amd64" +SLOT="0" + +BDEPEND=" + dev-python/setuptools_scm[${PYTHON_USEDEP}] + test? ( + dev-python/sphobjinv[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] + ) +" + +# https://github.com/agronholm/sphinx-autodoc-typehints/issues/176 +RDEPEND="