aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorfourtysixandtwo <fourtysixandtwo@sliderr.net>2023-10-08 10:25:49 -0600
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-10-14 10:32:31 +0700
commitd15b534003493b116962ee4afce31c965dd4ab62 (patch)
treef285c1e67caa0a16200368f40ce971c090493518 /python
parent26ee45704bcd9b97da10bb1ce2ce336d792b098b (diff)
python/python3-Flask-WTF: Updated for version 1.2.1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r--python/python3-Flask-WTF/python3-Flask-WTF.SlackBuild23
-rw-r--r--python/python3-Flask-WTF/python3-Flask-WTF.info8
2 files changed, 10 insertions, 21 deletions
diff --git a/python/python3-Flask-WTF/python3-Flask-WTF.SlackBuild b/python/python3-Flask-WTF/python3-Flask-WTF.SlackBuild
index c801882d0c5a..4abaef1c47c6 100644
--- a/python/python3-Flask-WTF/python3-Flask-WTF.SlackBuild
+++ b/python/python3-Flask-WTF/python3-Flask-WTF.SlackBuild
@@ -22,11 +22,13 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20230925 46and2: Updated version, changed to pep517 build process.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python3-Flask-WTF
-SRCNAM=${PRGNAM#python3-*}
-VERSION=${VERSION:-1.1.1}
+SRCNAM=flask_wtf
+VERSION=${VERSION:-1.2.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -48,20 +50,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
@@ -77,7 +65,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 --no-isolation
+python3 -m installer -d "$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
diff --git a/python/python3-Flask-WTF/python3-Flask-WTF.info b/python/python3-Flask-WTF/python3-Flask-WTF.info
index b021783941fa..73358f781399 100644
--- a/python/python3-Flask-WTF/python3-Flask-WTF.info
+++ b/python/python3-Flask-WTF/python3-Flask-WTF.info
@@ -1,10 +1,10 @@
PRGNAM="python3-Flask-WTF"
-VERSION="1.1.1"
+VERSION="1.2.1"
HOMEPAGE="https://github.com/lepture/flask-wtf"
-DOWNLOAD="https://files.pythonhosted.org/packages/source/f/flask-wtf/Flask-WTF-1.1.1.tar.gz"
-MD5SUM="007c1ff973c63096dec0fa805412d8ad"
+DOWNLOAD="https://files.pythonhosted.org/packages/source/f/flask-wtf/flask_wtf-1.2.1.tar.gz"
+MD5SUM="cbdd73ec30c7b3b887dc12026fd4954c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="Flask python3-WTForms"
+REQUIRES="python3-hatchling Flask python3-WTForms"
MAINTAINER="fourtysixandtwo"
EMAIL="fourtysixandtwo@sliderr.net"