aboutsummaryrefslogtreecommitdiff
path: root/python/setuptools-scm/setuptools-scm.SlackBuild
diff options
context:
space:
mode:
authorHunter Sezen <orbea@fredslev.dk>2018-03-15 20:45:40 +0000
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-03-17 08:51:48 +0700
commit80c6411e822f6e68f59fa56470e0397725054d15 (patch)
tree7e3c1756dfc64d727b0a45f7c94f43c329a5ae40 /python/setuptools-scm/setuptools-scm.SlackBuild
parent75db0ef3871da721f930e0b6f9d35abe6ba3c5de (diff)
python/setuptools-scm: Updated for version 1.15.7.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'python/setuptools-scm/setuptools-scm.SlackBuild')
-rw-r--r--python/setuptools-scm/setuptools-scm.SlackBuild12
1 files changed, 6 insertions, 6 deletions
diff --git a/python/setuptools-scm/setuptools-scm.SlackBuild b/python/setuptools-scm/setuptools-scm.SlackBuild
index 656d6b224d5fb..bf14da1b8a8b7 100644
--- a/python/setuptools-scm/setuptools-scm.SlackBuild
+++ b/python/setuptools-scm/setuptools-scm.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for setuptools-scm
-# Copyright 2016-2017 Hunter Sezen California, USA
+# Copyright 2016-2018 Hunter Sezen California, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,8 +23,8 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=setuptools-scm
-SRCNAM=$(echo $PRGNAM | tr - _)
-VERSION=${VERSION:-1.15.0}
+SRCNAM=$(printf %s $PRGNAM | tr - _)
+VERSION=${VERSION:-1.15.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -41,7 +41,7 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-set -e
+set -eu
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
@@ -59,12 +59,12 @@ find -L . \
python setup.py install --root=$PKG
# Python 3 support.
-if $(python3 -c 'import sys' 2>/dev/null); then
+if python3 -c 'import sys' 2>/dev/null; then
python3 setup.py install --root=$PKG
fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a *.rst LICENSE PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README.rst PKG-INFO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install