python/django-debug-toolbar: Updated for version 4.3.0.

Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Dimitris Zlatanidis 2024-05-15 17:07:26 +03:00 committed by Willy Sudiarto Raharjo
parent 3bd694a46b
commit 7da76eb1af
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 13 additions and 11 deletions

View File

@ -2,7 +2,7 @@
# Slackware build script for django-debug-toolbar
# Copyright 2020 Dimitris Zlatanidis Orestiada, Greece
# Copyright 2020-2024 Dimitris Zlatanidis Orestiada, Greece
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -25,7 +25,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=django-debug-toolbar
VERSION=${VERSION:-2.1}
SRCNAM=django_debug_toolbar
VERSION=${VERSION:-4.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -69,9 +70,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@ -79,7 +80,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 {} \;
python3 setup.py install --root=$PKG
python3 -m build --wheel --no-isolation
python3 -m installer --destdir "$PKG" dist/*.whl
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

View File

@ -1,10 +1,10 @@
PRGNAM="django-debug-toolbar"
VERSION="2.1"
VERSION="4.3.0"
HOMEPAGE="https://github.com/jazzband/django-debug-toolbar"
DOWNLOAD="https://files.pythonhosted.org/packages/23/0f/3567d62be25e3722be719e9915605a00e8b779620a2d53f2469331884629/django-debug-toolbar-2.1.tar.gz"
MD5SUM="d6a4b4dabc963e70110a7f6aaa491b4f"
DOWNLOAD="https://files.pythonhosted.org/packages/61/ff/b6d3cc2c31f9a6cf68eda0f7a640ada743f5c39122a0c14db8d3eee3f412/django_debug_toolbar-4.3.0.tar.gz"
MD5SUM="6eb042f887e7cf011f5c6e5b4f852d44"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="python3-django"
REQUIRES="python3-hatchling python3-django"
MAINTAINER="Dimitris Zlatanidis"
EMAIL="d.zlatanidis@gmail.com"
EMAIL="dslackw@gmail.com"