diff --git a/dev-python/typer/Manifest b/dev-python/typer/Manifest index 6298cc8bec7f..c943f3158cdb 100644 --- a/dev-python/typer/Manifest +++ b/dev-python/typer/Manifest @@ -2,3 +2,5 @@ DIST typer-0.17.4.tar.gz 103734 BLAKE2B 2eee439d050bfddf51f62d7d634cdccabfdffe1b DIST typer-0.17.4.tar.gz.provenance 8937 BLAKE2B d8b90b79b7ba61ba1249a96ec46c40d6cd530f174b67d2a81ee6c095a8cd71436f70da438d42b2d6705aa386e91d707da4e0461026769045c4d280532d1d60ce SHA512 bb5ecb283f136f129bcc43f976d604b98ff9afe0be738ce780335ee28a71749c8a205adb5daaf126ec431b2509a1c35b3130b3b126825e09a7c9eca61e7ef9da DIST typer-0.18.0.tar.gz 103878 BLAKE2B 7d21913f99be53621c16f6ea1d2644e31ec782e97e3e61bf445fe400e06f24724d403ec0fce71df624b547be7a831fdf3fd6831ed87521fcccb98ac18edee344 SHA512 f0caf25d720a7cd74349b489efbfe13933326edd30e6c0a9d7a5185b4fb9db682354508cf0bae9be413f2d5e971b70a9f82fea2a2c6b7473e37345a84f2239f2 DIST typer-0.18.0.tar.gz.provenance 9125 BLAKE2B c6252d17c199a2e25dcf240f71f46c1bf4403dbcec80af2bfb9b46bd80a6b620e0599a3ed4599b2df782de74d79f188539b7b4f961f2a68cd3b8e479f50fd03f SHA512 c7317de20cb8aeb29430c228fa750505091518f4a0ecfdf4dffd039e0044160cf0eb2b32d695d2810c5cbcc87be542bebf533041a2118820884f5897baebc3c6 +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 diff --git a/dev-python/typer/typer-0.19.1.ebuild b/dev-python/typer/typer-0.19.1.ebuild new file mode 100644 index 000000000000..06ac178ad087 --- /dev/null +++ b/dev-python/typer/typer-0.19.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 ~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 +}