commit: 21b8fad8e88ae12fd6bb4ea5cac6950cb26099c4
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 20 04:40:29 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Feb 20 04:58:27 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21b8fad8
dev-python/sphinx-autodoc-typehints: Bump to 3.1.0
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/sphinx-autodoc-typehints/Manifest | 1 +
.../sphinx-autodoc-typehints-3.1.0.ebuild | 44 ++++++++++++++++++++++
2 files changed, 45 insertions(+)
diff --git a/dev-python/sphinx-autodoc-typehints/Manifest
b/dev-python/sphinx-autodoc-typehints/Manifest
index d2d4d18a4db8..7b2094c16909 100644
--- a/dev-python/sphinx-autodoc-typehints/Manifest
+++ b/dev-python/sphinx-autodoc-typehints/Manifest
@@ -1 +1,2 @@
DIST sphinx_autodoc_typehints-3.0.1.tar.gz 36282 BLAKE2B
44fbb2de34cd788e400d0556599cac9501d65cbccc1338be3b927d9c35e2141042885376da6df488cfae05af0667210b6d74c240710af5c848eff0a03c83eeca
SHA512
f15a14c010328d46ab50c8f28c84d332502b577b95d739439a8b583e95303105fa403058443f4120c043a3d3635d4cff8274adc9472e1876aa9f476e78b4abcd
+DIST sphinx_autodoc_typehints-3.1.0.tar.gz 36528 BLAKE2B
9a36f154658508b571df01bd4e4083c65ede287f4dc202040176acc8793e3f87a9bf07871f89dcc118bf47f5d5984eb9bb26fa3827e524d8a2674927da3dc469
SHA512
0837eba88913d2ca1d843041c06c950d7e680009617b8a2e464424fc3e41787fb953da7b140d92068f1d4a0a355feb853a96bec2fb139a3175fa49343ccff621
diff --git
a/dev-python/sphinx-autodoc-typehints/sphinx-autodoc-typehints-3.1.0.ebuild
b/dev-python/sphinx-autodoc-typehints/sphinx-autodoc-typehints-3.1.0.ebuild
new file mode 100644
index 000000000000..7108e08010e8
--- /dev/null
+++ b/dev-python/sphinx-autodoc-typehints/sphinx-autodoc-typehints-3.1.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=hatchling
+PYTHON_COMPAT=( python3_{11..13} )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Type hints support for the Sphinx autodoc extension"
+HOMEPAGE="
+ https://github.com/tox-dev/sphinx-autodoc-typehints/
+ https://pypi.org/project/sphinx-autodoc-typehints/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ >=dev-python/sphinx-8.2.0[${PYTHON_USEDEP}]
+"
+# skipping optional test dep on dev-python/nptyping as that package
+# is horribly broken and on its way out
+BDEPEND="
+ dev-python/hatch-vcs[${PYTHON_USEDEP}]
+ test? (
+ >=dev-python/sphobjinv-2.3.1[${PYTHON_USEDEP}]
+ >=dev-python/typing-extensions-4.5[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+python_test() {
+ local EPYTEST_DESELECT=(
+ # this package is addicted to Internet
+ tests/test_sphinx_autodoc_typehints.py::test_format_annotation
+ )
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest
+}