Browse Source

l/python-traitlets: Upgraded to python-traitlets-4.3.3.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
ac4e982d69
  1. 22
      l/python-traitlets/python-traitlets.SlackBuild
  2. 1
      l/python-traitlets/traitlets-4.3.2.tar.gz.sha256
  3. 1
      l/python-traitlets/traitlets-4.3.3.tar.gz.sha256

22
l/python-traitlets/python-traitlets.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,13 +24,15 @@
#
# Latest traitlets sourcecode is available at: <http://ipython.org/>.
#
# Depends: l/python-six, l/python-decorator, l/python-enum34
# NOTE: l/python-enum34 is only needed for Python 2.
#
# Depends: l/python-six
# Recommends: l/python-enum34
# Source package infos
NAMESRC=${NAMESRC:-traitlets}
VERSION=${VERSION:-4.3.2}
VERSION=${VERSION:-4.3.3}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-https://pypi.python.org/packages/a5/98/7f5ef2fe9e9e071813aaf9cb91d1a732e0a68b6c44a32b38cb8e14c3f069/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-python-traitlets}
@ -59,8 +61,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)
@ -70,19 +71,20 @@ 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 COPYING.md PKG-INFO README.md $PKG/usr/doc/$NAMEPKG-$VERSION
install -m 644 CONTRIBUTING.md COPYING.md README.md $PKG/usr/doc/$NAMEPKG-$VERSION
# 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-six
python-decorator
python-enum34
EOF

1
l/python-traitlets/traitlets-4.3.2.tar.gz.sha256

@ -1 +0,0 @@
9c4bd2d267b7153df9152698efb1050a5d84982d3384a37b2c1f7723ba3e7835 traitlets-4.3.2.tar.gz

1
l/python-traitlets/traitlets-4.3.3.tar.gz.sha256

@ -0,0 +1 @@
d023ee369ddd2763310e4c3eae1ff649689440d4ae59d7485eb4cfbbe3e359f7 traitlets-4.3.3.tar.gz
Loading…
Cancel
Save