Browse Source

python/python-parse: Upgrade to 1.20.2

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
pull/258/head
henesy 11 months ago
committed by Willy Sudiarto Raharjo
parent
commit
7594e2dfa0
  1. 17
      python/python-parse/python-parse.SlackBuild
  2. 14
      python/python-parse/python-parse.info
  3. 2
      python/python-parse/slack-desc

17
python/python-parse/python-parse.SlackBuild

@ -2,6 +2,7 @@
# SlackBuild script for "python-parse".
# Copyright 2024 Sean Hinchee
# Copyright 2014-2015 Marcel Saegebarth <marc@mos6581.de>
# All rights reserved.
#
@ -28,8 +29,8 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=python-parse
SRCNAM=parse
VERSION=${VERSION:-1.6.6}
BUILD=${BUILD:-4}
VERSION=${VERSION:-1.20.2}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -41,9 +42,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
@ -82,11 +80,12 @@ 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 {} \;
python setup.py install --root=$PKG
# newer releases use setuptools
PYVER=$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')
export PYTHONPATH=/opt/python$PYVER/site-packages
if $(python3 -c 'import sys' 2>/dev/null); then
python3 setup.py install --root=$PKG
fi
python3 -m build . --wheel --no-isolation # --root=$PKG
python3 -m installer --destdir "$PKG" dist/*.whl
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README.rst $PKG/usr/doc/$PRGNAM-$VERSION

14
python/python-parse/python-parse.info

@ -1,10 +1,10 @@
PRGNAM="python-parse"
VERSION="1.6.6"
HOMEPAGE="https://pypi.python.org/pypi/parse/"
DOWNLOAD="https://pypi.python.org/packages/source/p/parse/parse-1.6.6.tar.gz"
MD5SUM="11bc8c60a30fe52db4ac9a827653d0ca"
VERSION="1.20.2"
HOMEPAGE="https://github.com/r1chardj0n3s/parse"
DOWNLOAD="https://github.com/r1chardj0n3s/parse/archive/1.20.2/parse-1.20.2.tar.gz"
MD5SUM="312dc6f64acb96585f0523f8bde3181c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Marcel Saegebarth"
EMAIL="marc@mos6581.de"
REQUIRES="python3-setuptools-opt"
MAINTAINER="Sean Hinchee"
EMAIL="henesy.dev@gmail.com"

2
python/python-parse/slack-desc

@ -11,7 +11,7 @@ python-parse:
python-parse: Parse strings using a specification based on the Python format()
python-parse: syntax.
python-parse:
python-parse: Homepage: https://pypi.python.org/pypi/parse/
python-parse: Homepage: https://github.com/r1chardj0n3s/parse
python-parse:
python-parse:
python-parse:

Loading…
Cancel
Save