commit:     fd422053b4eac40de1ec5a3ac37c18e434ca982a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 20 07:21:21 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Dec 20 10:15:26 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd422053

dev-python/typer: Bump to 0.20.1

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/typer/Manifest            |  2 ++
 dev-python/typer/typer-0.20.1.ebuild | 68 ++++++++++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+)

diff --git a/dev-python/typer/Manifest b/dev-python/typer/Manifest
index 8cd2bc668a04..2572861b9e7d 100644
--- a/dev-python/typer/Manifest
+++ b/dev-python/typer/Manifest
@@ -1,2 +1,4 @@
 DIST typer-0.20.0.tar.gz 106492 BLAKE2B 
2efc70beced0f7c29e2b31b997cafc27932048d845b902045eb444af14f290395556e10cc42d4ca33032e2f3763c4de03395e61e384b4977f81c846417e4b97d
 SHA512 
441afc25267bb998674e63075a3ff1b3a2835601c4ea8b8693520037b132d34b96c8901fafea58938b7a7d19630c11a8f58ea58d5f36f53fdd9db38636296fe9
 DIST typer-0.20.0.tar.gz.provenance 9125 BLAKE2B 
a4ad62d4913fd31b565e8ac9e6ad128df8789451341565ae4f4240276074dad4202d5468af3ec7f15e7cf5e099d01b4d357cf06a0294d1a6b28c392da82f66fb
 SHA512 
4c351c9ae252290cfa83cd9ae70ea74f7be9cc3c97fc6bb306d7c678763a50bdda0c34eedbf81246f69be77f0ad1fd28de15730d348c7c0a947efc41db27f50b
+DIST typer-0.20.1.tar.gz 105968 BLAKE2B 
40f354116d0116062568debadb3f403a1a36437e0c1f465d97489900e8f02e75d8d5acd83452a524a9f2e434008ab9d870a310691c98aa4305a9aa84f909ee57
 SHA512 
f77b35b648c020fa0ac748502c6ec2273a8952aba997e1363163c4f754e4c992fa183208bd82a5b533a3b415659340f77b757668494f47f39b8077e5e30c80e9
+DIST typer-0.20.1.tar.gz.provenance 9411 BLAKE2B 
0249c5b7111a2fc631b1624e2573a96648561ef11e121e593f51c49bd59ec69fb15105f26688df8e479253c67ee654c4dbfaa0191e81b1c2e5e94cbdba91bd31
 SHA512 
cc88c2661ee8228e52bbb290a96cda36c61ca97e5deb9ed61d4aad73e21f56a1f8293f6f3affc688e241c206457534ba1fbb9c1e0ac63af6027def0c370dcacf

diff --git a/dev-python/typer/typer-0.20.1.ebuild 
b/dev-python/typer/typer-0.20.1.ebuild
new file mode 100644
index 000000000000..e557b979387c
--- /dev/null
+++ b/dev-python/typer/typer-0.20.1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=pdm-backend
+PYPI_VERIFY_REPO=https://github.com/fastapi/typer
+PYTHON_COMPAT=( python3_{11..14} )
+
+inherit distutils-r1 shell-completion pypi
+
+DESCRIPTION="Build great CLIs. Easy to code. Based on Python type hints"
+HOMEPAGE="
+       https://typer.tiangolo.com/
+       https://github.com/fastapi/typer/
+       https://pypi.org/project/typer/
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64"
+IUSE="cli"
+
+RDEPEND="
+       >=dev-python/click-8.0.0[${PYTHON_USEDEP}]
+       >=dev-python/rich-10.11.0[${PYTHON_USEDEP}]
+       >=dev-python/shellingham-1.3.0[${PYTHON_USEDEP}]
+       >=dev-python/typing-extensions-3.7.4.3[${PYTHON_USEDEP}]
+       cli? ( !dev-lang/erlang )
+"
+BDEPEND="
+       test? (
+               dev-python/coverage[${PYTHON_USEDEP}]
+       )
+"
+
+EPYTEST_PLUGINS=()
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+src_prepare() {
+       distutils-r1_src_prepare
+
+       if ! use cli; then
+               sed -i -e '/typer\.cli/d' pyproject.toml || die
+       fi
+}
+
+python_test() {
+       # See scripts/tests.sh
+       local -x TERMINAL_WIDTH=3000
+       local -x _TYPER_FORCE_DISABLE_TERMINAL=1
+       local -x _TYPER_RUN_INSTALL_COMPLETION_TESTS=1
+
+       epytest
+}
+
+python_install() {
+       if use cli && [[ ! ${COMPLETIONS_INSTALLED} ]]; then
+               local -x _TYPER_COMPLETE_TEST_DISABLE_SHELL_DETECTION=1
+               newbashcomp - typer < <(typer --show-completion bash || die)
+               newzshcomp - typer < <(typer --show-completion zsh || die)
+               newfishcomp - typer < <(typer --show-completion fish || die)
+               COMPLETIONS_INSTALLED=1
+       fi
+
+       distutils-r1_python_install
+}

Reply via email to