diff options
Diffstat (limited to 'python/python3-keyring')
-rw-r--r-- | python/python3-keyring/README | 9 | ||||
-rw-r--r-- | python/python3-keyring/python3-keyring.SlackBuild | 12 | ||||
-rw-r--r-- | python/python3-keyring/python3-keyring.info | 6 | ||||
-rw-r--r-- | python/python3-keyring/slack-desc | 4 |
4 files changed, 21 insertions, 10 deletions
diff --git a/python/python3-keyring/README b/python/python3-keyring/README index 66cf220f9e..5bf52320bb 100644 --- a/python/python3-keyring/README +++ b/python/python3-keyring/README @@ -1,3 +1,6 @@ -The Python keyring lib provides a easy way to access the -system keyring service from python. It can be used in any -application that needs safe password storage. +The Python keyring lib provides a easy way to access the system keyring +service from python. It can be used in any application that needs safe +password storage. + +python3-shtab is an optional dependency for building python3-keyring +with shell completion support. 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 diff --git a/python/python3-keyring/python3-keyring.info b/python/python3-keyring/python3-keyring.info index 27174d363b..8200e3be69 100644 --- a/python/python3-keyring/python3-keyring.info +++ b/python/python3-keyring/python3-keyring.info @@ -1,8 +1,8 @@ PRGNAM="python3-keyring" -VERSION="25.5.0" +VERSION="25.6.0" HOMEPAGE="https://github.com/jaraco/keyring" -DOWNLOAD="https://files.pythonhosted.org/packages/source/k/keyring/keyring-25.5.0.tar.gz" -MD5SUM="abbca9e5a78bdb506d3ba0bfa3fe3642" +DOWNLOAD="https://files.pythonhosted.org/packages/source/k/keyring/keyring-25.6.0.tar.gz" +MD5SUM="afe7f534c80dc29927f5211fcb925ed4" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="python-importlib_metadata python3-jaraco.classes python3-jaraco.context python3-jaraco.functools secretstorage" diff --git a/python/python3-keyring/slack-desc b/python/python3-keyring/slack-desc index 1b086f856d..399e4859cf 100644 --- a/python/python3-keyring/slack-desc +++ b/python/python3-keyring/slack-desc @@ -9,8 +9,8 @@ python3-keyring: python3-keyring (Python keyring library) python3-keyring: python3-keyring: The Python keyring lib provides a easy way to access the system -python3-keyring: keyring service from python. It can be used in any application -python3-keyring: that needs safe password storage. +python3-keyring: keyring service from python. It can be used in any application that +python3-keyring: needs safe password storage. python3-keyring: python3-keyring: Homepage: https://github.com/jaraco/keyring python3-keyring: |