python/WTForms: Updated for version 2.3.1.

Signed-off-by: Dave Woodfall <dave@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Nikos Giotis 2020-05-22 14:43:19 +01:00 committed by Willy Sudiarto Raharjo
parent a3c942f2ca
commit 28f1f0ab94
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
3 changed files with 16 additions and 9 deletions

View File

@ -1,2 +1,4 @@
WTForms is a flexible forms validation and rendering library for python web
development.
WTForms is a flexible forms validation and rendering library for
python web development.
python3 is autodetected at build time.

View File

@ -2,7 +2,7 @@
# Slackware build script for WTForms
# Copyright 2017 Nikos Giotis <nikos.giotis@gmail.com>
# Copyright 2017-2020 Nikos Giotis <nikos.giotis@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=WTForms
VERSION=${VERSION:-2.1}
VERSION=${VERSION:-2.3.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -60,7 +60,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
unzip $CWD/$PRGNAM-$VERSION.zip
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@ -71,11 +71,16 @@ find -L . \
python setup.py install --root=$PKG
# Python 3 support
if $(python3 -c 'import sys' 2>/dev/null); then
python3 setup.py install --root=$PKG
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
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGES.rst LICENSE.txt README.md $PKG/usr/doc/$PRGNAM-$VERSION
cp -a CHANGES.rst LICENSE.rst README.rst $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install

View File

@ -1,8 +1,8 @@
PRGNAM="WTForms"
VERSION="2.1"
VERSION="2.3.1"
HOMEPAGE="http://wtforms.simplecodes.com/"
DOWNLOAD="https://pypi.python.org/packages/bf/91/2e553b86c55e9cf2f33265de50e052441fb753af46f5f20477fe9c61280e/WTForms-2.1.zip"
MD5SUM="6938a541fafd1a1ae2f6b9b88588eef2"
DOWNLOAD="https://files.pythonhosted.org/packages/68/7a/4ce1636e03a25585f3e1436179232a66c25e53ef17f01b4384d16ace6d61/WTForms-2.3.1.tar.gz"
MD5SUM="bff06943e59671581af07f80d14bda5f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="babel"