Compare commits
2 commits
03ccffcfb9
...
d7c2de9c39
Author | SHA1 | Date | |
---|---|---|---|
odrling | d7c2de9c39 | ||
odrling | 61f3c0eb33 |
|
@ -24,7 +24,10 @@ IUSE="+rich shell-detection test"
|
|||
|
||||
BDEPEND="
|
||||
test? (
|
||||
$(python_gen_cond_dep 'dev-python/coverage[${PYTHON_USEDEP}]')
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
dev-python/shellingham[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
"
|
||||
RDEPEND="
|
||||
|
@ -47,15 +50,18 @@ src_test() {
|
|||
distutils-r1_src_test "${@}"
|
||||
}
|
||||
|
||||
typer_gen_comp() {
|
||||
python -m typer --show-completion bash > "${COMPLETIONSDIR}/${PN}"
|
||||
python -m typer --show-completion zsh > "${COMPLETIONSDIR}/_${PN}"
|
||||
python -m typer --show-completion fish > "${COMPLETIONSDIR}/${PN}.fish"
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
distutils-r1_src_compile "${@}"
|
||||
|
||||
mkdir "${COMPLETIONSDIR}"
|
||||
|
||||
export _TYPER_COMPLETE_TEST_DISABLE_SHELL_DETECTION=1
|
||||
python -m typer --show-completion bash > "${COMPLETIONSDIR}/${PN}"
|
||||
python -m typer --show-completion zsh > "${COMPLETIONSDIR}/_${PN}"
|
||||
python -m typer --show-completion fish > "${COMPLETIONSDIR}/${PN}.fish"
|
||||
_TYPER_COMPLETE_TEST_DISABLE_SHELL_DETECTION=1 typer_gen_comp
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
Loading…
Reference in a new issue