aboutsummaryrefslogtreecommitdiff
path: root/python/python3-keyring/python3-keyring.SlackBuild
diff options
context:
space:
mode:
authorIsaac Yu <isaacyu@protonmail.com>2025-04-14 21:44:40 -0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2025-04-16 00:29:25 +0700
commitf8452e815748d4783e4dde0a6b40e65096bf0a21 (patch)
treecb82e9ee9db07589804fd3f4d6f061033550fab0 /python/python3-keyring/python3-keyring.SlackBuild
parent36ed72052de8ab5088ede15c65cd169dc468c6f1 (diff)
python/python3-keyring: Update for 25.6.0 (+add shell completions)
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/python3-keyring/python3-keyring.SlackBuild')
-rw-r--r--python/python3-keyring/python3-keyring.SlackBuild12
1 files changed, 10 insertions, 2 deletions
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 <isaacyu@protonmail.com>
+# Copyright 2024-2025 Isaac Yu <isaacyu@protonmail.com>
# 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