summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
author isaackwy2024-02-29 21:15:35 +0100
committer Willy Sudiarto Raharjo2024-03-01 09:50:26 +0100
commit31f105cbd4babc919c5f6314f7f8beeb345f874c (patch)
tree68c2e50983eff06c8d7cabf9719d022e92671808 /python
parent4339bdc109a82401eeb8fbc50785a8d3c85ba3c8 (diff)
downloadslackbuilds-31f105cbd4babc919c5f6314f7f8beeb345f874c.tar.gz
python/argon2-cffi: Update for 23.1.0
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r--python/argon2-cffi/argon2-cffi.SlackBuild29
-rw-r--r--python/argon2-cffi/argon2-cffi.info8
2 files changed, 10 insertions, 27 deletions
diff --git a/python/argon2-cffi/argon2-cffi.SlackBuild b/python/argon2-cffi/argon2-cffi.SlackBuild
index e3fd509012..8c5c787964 100644
--- a/python/argon2-cffi/argon2-cffi.SlackBuild
+++ b/python/argon2-cffi/argon2-cffi.SlackBuild
@@ -3,7 +3,7 @@
# Slackware build script for argon2-cffi
# Copyright 2020 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
-# Copyright 2022 Isaac Yu <isaacyu@protonmail.com>
+# Copyright 2022-2024 Isaac Yu <isaacyu@protonmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,8 +26,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=argon2-cffi
-VERSION=${VERSION:-21.3.0}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-23.1.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -39,9 +39,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -51,20 +48,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i586" ]; then
- SLKCFLAGS="-O2 -march=i586 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
- LIBDIRSUFFIX=""
-elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
- LIBDIRSUFFIX="64"
-else
- SLKCFLAGS="-O2"
- LIBDIRSUFFIX=""
-fi
-
set -e
rm -rf $PKG
@@ -80,6 +63,8 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+export SETUPTOOLS_SCM_PRETEND_VERSION=$VERSION
+
python3 -m build --no-isolation
python3 -m installer -d "$PKG" dist/*.whl
@@ -87,9 +72,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- AUTHORS.rst CHANGELOG.md FAQ.rst README.rst \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CHANGELOG.md FAQ.md README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/python/argon2-cffi/argon2-cffi.info b/python/argon2-cffi/argon2-cffi.info
index a511c9e291..6822da3f5b 100644
--- a/python/argon2-cffi/argon2-cffi.info
+++ b/python/argon2-cffi/argon2-cffi.info
@@ -1,10 +1,10 @@
PRGNAM="argon2-cffi"
-VERSION="21.3.0"
+VERSION="23.1.0"
HOMEPAGE="https://argon2-cffi.readthedocs.io/"
-DOWNLOAD="https://github.com/hynek/argon2-cffi/archive/21.3.0/argon2-cffi-21.3.0.tar.gz"
-MD5SUM="f3a9d1691961b789ca2f7b8a49a4b270"
+DOWNLOAD="https://github.com/hynek/argon2-cffi/archive/23.1.0/argon2-cffi-23.1.0.tar.gz"
+MD5SUM="62f6865b7b4624d96a568aafef5a37ff"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="argon2-cffi-bindings python3-build"
+REQUIRES="argon2-cffi-bindings python3-hatch_vcs python3-hatch_fancy_pypi_readme"
MAINTAINER="Isaac Yu"
EMAIL="isaacyu@protonmail.com"