commit: 9f6e29558ec21c04e73e3cca1605d3cebd8364bd Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sat Jun 22 04:37:42 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sat Jun 22 05:33:09 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f6e2955
dev-python/sphinx-autodoc-typehints: Bump to 2.2.1 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/sphinx-autodoc-typehints/Manifest | 1 + .../sphinx-autodoc-typehints-2.2.1.ebuild | 44 ++++++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/dev-python/sphinx-autodoc-typehints/Manifest b/dev-python/sphinx-autodoc-typehints/Manifest index 8fabe3b71114..338977f69b23 100644 --- a/dev-python/sphinx-autodoc-typehints/Manifest +++ b/dev-python/sphinx-autodoc-typehints/Manifest @@ -1,2 +1,3 @@ DIST sphinx_autodoc_typehints-2.1.0.tar.gz 39386 BLAKE2B ccf6b618fc3db2a576a2d9a36a575087cdc3c7c5cf59a6057a956478a12715b1623dc4bc1ae3f7c30deab317a15fa187faf19f9d050fa61c293dc20bee41effd SHA512 59c5b4c682fadc1d0ec62a5aa639bb87d6e4710db89793824c348c7598d73b144f0b083ce6462ea32d958b1ed7fd2fb96c2a92780267adef03b625e64c08c412 DIST sphinx_autodoc_typehints-2.2.0.tar.gz 39603 BLAKE2B 42286d62684a3fdb9949f9e4af56aece11b93b8b5e78be06df03389ceec7fdb99f4baa1ddd46facaa8cb85900655ddae08056fef44a73dc21f29fd87540dacfc SHA512 24c2cc40c56656cc85006e96341d57d46228a67524f4cbc13724fdbd1c0a5a2c41b08e170e217ac5198330fb70539514735b60c34eb84ea15717c38bb95b0adf +DIST sphinx_autodoc_typehints-2.2.1.tar.gz 39845 BLAKE2B 8ed9ce0ad5db9504f783f739319026ff72520ecf706eeeeccf486001e2bbfbaca851e3a2b2593759214bb31d19f140bc6708e6861f6b835ed60a3c610508727b SHA512 fd364809c9ba3a4ad1ffeedcb55de2e57ecaa15235a4cfc0e97131071cd08c4b7af298e6f975d102aa30500984625cee6df2f690ddbf6e80ba280cc4b4f6cd2e diff --git a/dev-python/sphinx-autodoc-typehints/sphinx-autodoc-typehints-2.2.1.ebuild b/dev-python/sphinx-autodoc-typehints/sphinx-autodoc-typehints-2.2.1.ebuild new file mode 100644 index 000000000000..f6053e2167f7 --- /dev/null +++ b/dev-python/sphinx-autodoc-typehints/sphinx-autodoc-typehints-2.2.1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{10..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="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/sphinx-7.1.2[${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 +}