From f8452e815748d4783e4dde0a6b40e65096bf0a21 Mon Sep 17 00:00:00 2001 From: Isaac Yu Date: Mon, 14 Apr 2025 21:44:40 -0700 Subject: python/python3-keyring: Update for 25.6.0 (+add shell completions) Signed-off-by: Willy Sudiarto Raharjo --- python/python3-keyring/python3-keyring.SlackBuild | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'python/python3-keyring/python3-keyring.SlackBuild') diff --git a/python/python3-keyring/python3-keyring.SlackBuild b/python/python3-keyring/python3-keyring.SlackBuild index 5bdb75588e..9e62539e07 100644 --- a/python/python3-keyring/python3-keyring.SlackBuild +++ b/python/python3-keyring/python3-keyring.SlackBuild @@ -3,7 +3,7 @@ # Slackware build script for python3-keyring # Copyright 2015-2019 Dimitris Zlatanidis Orestiada, Greece -# Copyright 2024 Isaac Yu +# Copyright 2024-2025 Isaac Yu # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=python3-keyring -VERSION=${VERSION:-25.5.0} +VERSION=${VERSION:-25.6.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -71,6 +71,14 @@ export PYTHONPATH=/opt/python$PYVER/site-packages/ python3 -m build --no-isolation python3 -m installer -d "$PKG" dist/*.whl +# Add python3-keyring shell completions (requires python3-shtab) +if $(python3 -c 'import pkgutil; exit(not pkgutil.find_loader("shtab"))'); then + mkdir -p $PKG/usr/share/bash-completion/completions + mkdir -p $PKG/usr/share/zsh/site-functions + $PKG/usr/bin/keyring --print-completion bash > $PKG/usr/share/bash-completion/completions/keyring + $PKG/usr/bin/keyring --print-completion zsh > $PKG/usr/share/zsh/site-functions/_keyring +fi + find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -- cgit v1.2.3