Browse Source

l/jupyter-nbconvert: Upgraded to jupyter-mbconvert-5.6.1.

current-20191101
parent
commit
71517679f1
  1. 34
      l/jupyter-nbconvert/jupyter-nbconvert.SlackBuild
  2. 1
      l/jupyter-nbconvert/nbconvert-5.3.1.tar.gz.sha256
  3. 1
      l/jupyter-nbconvert/nbconvert-5.6.1.tar.gz.sha256

34
l/jupyter-nbconvert/jupyter-nbconvert.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:
@ -24,15 +24,14 @@
#
# Latest nbconvert sourcecode is available at: <http://jupyter.org/>.
#
# Depends: l/python-mistune, l/jinja2, l/pygments, l/jupyter-client
# Depends: l/jupyter-nbformat, l/python-entrypoints, l/python-bleach
# Depends: l/python-pandocfilters, l/python-testpath, n/tornado
# Depends: l/jinja2, l/jupyter-nbformat, l/pygments, l/python-bleach
# Depends: l/python-defusedxml, l/python-entrypoints, l/python-mistune
# Depends: l/python-pandocfilters, l/python-testpath
# Source package infos
NAMESRC=${NAMESRC:-nbconvert}
VERSION=${VERSION:-5.3.1}
VERSION=${VERSION:-5.6.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/b9/a4/d0a0938ad6f5eeb4dea4e73d255c617ef94b0b2849d51194c9bbdb838412/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-jupyter-nbconvert}
@ -61,8 +60,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)
@ -72,28 +70,34 @@ 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 CONTRIBUTING.md LICENSE README.md $PKG/usr/doc/$NAMEPKG-$VERSION
# Build HTML docs if Sphinx is available
if sphinx-build -b html docs/source $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
python-mistune
jinja2
pygments
jupyter-client
jupyter-nbformat
python-entrypoints
pygments
python-bleach
python-defusedxml
python-entrypoints
python-mistune
python-pandocfilters
python-testpath
tornado
EOF
# Package the tree

1
l/jupyter-nbconvert/nbconvert-5.3.1.tar.gz.sha256

@ -1 +0,0 @@
12b1a4671d4463ab73af6e4cbcc965b62254e05d182cd54995dda0d0ef9e2db9 nbconvert-5.3.1.tar.gz

1
l/jupyter-nbconvert/nbconvert-5.6.1.tar.gz.sha256

@ -0,0 +1 @@
21fb48e700b43e82ba0e3142421a659d7739b65568cc832a13976a77be16b523 nbconvert-5.6.1.tar.gz
Loading…
Cancel
Save