From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 09489158176 for ; Tue, 21 Oct 2025 06:48:35 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id E9BD0341EEF for ; Tue, 21 Oct 2025 06:48:34 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 49E1D110577; Tue, 21 Oct 2025 06:48:22 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 40217110577 for ; Tue, 21 Oct 2025 06:48:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ED8F9341CBA for ; Tue, 21 Oct 2025 06:48:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E9BE13B22 for ; Tue, 21 Oct 2025 06:48:18 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1761029148.81177560f22a49f1ef214f57a86f1a05ef3faeff.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/typer/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/typer/Manifest dev-python/typer/typer-0.20.0.ebuild X-VCS-Directories: dev-python/typer/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 81177560f22a49f1ef214f57a86f1a05ef3faeff X-VCS-Branch: master Date: Tue, 21 Oct 2025 06:48:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0f5f069a-1d88-4089-af81-0c6f4f72de41 X-Archives-Hash: f7519628f693be09d3e7cecb6b054c06 commit: 81177560f22a49f1ef214f57a86f1a05ef3faeff Author: Michał Górny gentoo org> AuthorDate: Tue Oct 21 06:28:01 2025 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Oct 21 06:45:48 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=81177560 dev-python/typer: Bump to 0.20.0 Signed-off-by: Michał Górny gentoo.org> dev-python/typer/Manifest | 2 ++ dev-python/typer/typer-0.20.0.ebuild | 68 ++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/dev-python/typer/Manifest b/dev-python/typer/Manifest index fa41c145b7db..1b59c21bc8c8 100644 --- a/dev-python/typer/Manifest +++ b/dev-python/typer/Manifest @@ -1,2 +1,4 @@ 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 +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 diff --git a/dev-python/typer/typer-0.20.0.ebuild b/dev-python/typer/typer-0.20.0.ebuild new file mode 100644 index 000000000000..e557b979387c --- /dev/null +++ b/dev-python/typer/typer-0.20.0.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 +}