commit:     808f2a908b7363b511fbde8b0fa402c2c7a9d379
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 24 03:14:45 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Sep 24 03:14:45 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=808f2a90

dev-python/typer: Bump to 0.19.2

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

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

diff --git a/dev-python/typer/Manifest b/dev-python/typer/Manifest
index 1e80c3aa6735..aba0236304db 100644
--- a/dev-python/typer/Manifest
+++ b/dev-python/typer/Manifest
@@ -1,2 +1,4 @@
 DIST typer-0.19.1.tar.gz 104802 BLAKE2B 
1b9565039ab8ee57ef9317112fbb63b8a27faca6ac558c5dcd08f89e96f42d3461aa9d131ad5afed08d1ab369d7f0ef09664a10f5929fe8d1851214c9ac90c60
 SHA512 
f1042d6b6a120978c9abdac1531bdb26897a351729a297d0c95daf661c8092d01c7b372381d418e15cec2fdc14d4516bf0331bca04129acd062066bc33fc3f0a
 DIST typer-0.19.1.tar.gz.provenance 9313 BLAKE2B 
a51b6ea2934e4302c1095c59df697e508a9863a600a63d72e9edbae68cfec6248726827689849e605625d4f03c74b87a973ad167e8ba40c35f4aad2cebb86af7
 SHA512 
521134cf3bc2046640627135a12b0d35283511bd3e86a2e5b4f1666d31ee3de0ef0ed4d462084d94c20c3489f2f42ea4b369a45a956d49e3751a28b69713c92a
+DIST typer-0.19.2.tar.gz 104755 BLAKE2B 
7b520b22c2519a1501235a7697695a74b1908e7e628b5a836e2266746cebbc2bbb32ca2a1e6ce4771bd90290a31ed100b40c3d33e4e8f73416280373c18c73da
 SHA512 
d283166b991a70751b0deefba4fd4cff044f9dc6ec60dd249554f7ddc5eb642cd484e207afa0741be584961c7c9b3292cfd83c26eeb94d50ea553a9ee79a6589
+DIST typer-0.19.2.tar.gz.provenance 9172 BLAKE2B 
e45fac477ae8acc3ef4b71337cacf4ffce57150ba7d0ceecdbcceb3e6cbca676df4c812f7d674b4662315763d46973074d41dfc1835a9f5d755e8a362b40d850
 SHA512 
0e1445f3f926f451e61a974044c1a9e71ff0b75d00bfb4552bef6e8774da12bb5cc10a01df97014d801f226e7fa1bc1ea493b8a00d18543e9cc3e8c43e7a1680

diff --git a/dev-python/typer/typer-0.19.2.ebuild 
b/dev-python/typer/typer-0.19.2.ebuild
new file mode 100644
index 000000000000..e557b979387c
--- /dev/null
+++ b/dev-python/typer/typer-0.19.2.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