Browse Source

l/python-terminado: Upgraded to python-terminado-0.8.3.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
76135b5303
  1. 23
      l/python-terminado/python-terminado.SlackBuild
  2. 1
      l/python-terminado/terminado-0.8.1.tar.gz.sha256
  3. 1
      l/python-terminado/terminado-0.8.3.tar.gz.sha256

23
l/python-terminado/python-terminado.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2018 Damien Goutte-Gattat
# Copyright (C) 2018,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -25,13 +25,12 @@
# Latest terminado sourcecode is available at:
# <https://github.com/jupyter/terminado>.
#
# Depends: n/tornado, l/python-ptyprocess
# Depends: l/python-ptyprocess, n/tornado
# Source package infos
NAMESRC=${NAMESRC:-terminado}
VERSION=${VERSION:-0.8.1}
VERSION=${VERSION:-0.8.3}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/67/84/ce0ebd0f60e1cbe040f8e065eef7063855d59d9cf5e6438b3f8439fc7e15/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-terminado}
@ -60,8 +59,7 @@ fi
# Get and verify the source archive
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
pip3 download --no-binary :all: --no-deps $NAMESRC==$VERSION
fi
sha256sum -c $ARCHIVE.sha256
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
@ -71,20 +69,27 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
python setup.py build
python setup.py install --root=$PKG
python2 setup.py build
python2 setup.py install --root=$PKG
python3 setup.py build
python3 setup.py install --root=$PKG
# Install the documentation
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 LICENSE README.rst $PKG/usr/doc/$NAMEPKG-$VERSION
# Build HTML docs if Sphinx is available
if sphinx-build -b html doc $PKG/usr/doc/$NAMEPKG-$VERSION/html ; then
rm -rf $PKG/usr/doc/$NAMEPKG-$VERSION/html/.{buildinfo,doctrees}
fi
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc
# Add dependency infos
cat <<EOF > $PKG/install/slack-required
tornado
python-ptyprocess
tornado
EOF
# Package the tree

1
l/python-terminado/terminado-0.8.1.tar.gz.sha256

@ -1 +0,0 @@
55abf9ade563b8f9be1f34e4233c7b7bde726059947a593322e8a553cc4c067a terminado-0.8.1.tar.gz

1
l/python-terminado/terminado-0.8.3.tar.gz.sha256

@ -0,0 +1 @@
4804a774f802306a7d9af7322193c5390f1da0abb429e082a10ef1d46e6fb2c2 terminado-0.8.3.tar.gz
Loading…
Cancel
Save