From ac4e982d69e9d4c732c6c5f0fa045408778ce562 Mon Sep 17 00:00:00 2001 From: Damien Goutte-Gattat Date: Thu, 21 Nov 2019 18:40:32 +0000 Subject: [PATCH] l/python-traitlets: Upgraded to python-traitlets-4.3.3. --- .../python-traitlets.SlackBuild | 22 ++++++++++--------- .../traitlets-4.3.2.tar.gz.sha256 | 1 - .../traitlets-4.3.3.tar.gz.sha256 | 1 + 3 files changed, 13 insertions(+), 11 deletions(-) delete mode 100644 l/python-traitlets/traitlets-4.3.2.tar.gz.sha256 create mode 100644 l/python-traitlets/traitlets-4.3.3.tar.gz.sha256 diff --git a/l/python-traitlets/python-traitlets.SlackBuild b/l/python-traitlets/python-traitlets.SlackBuild index 3365d055..9a3b4896 100755 --- a/l/python-traitlets/python-traitlets.SlackBuild +++ b/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: . # -# 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 < $PKG/install/slack-required -python-six python-decorator python-enum34 EOF diff --git a/l/python-traitlets/traitlets-4.3.2.tar.gz.sha256 b/l/python-traitlets/traitlets-4.3.2.tar.gz.sha256 deleted file mode 100644 index 0c22de11..00000000 --- a/l/python-traitlets/traitlets-4.3.2.tar.gz.sha256 +++ /dev/null @@ -1 +0,0 @@ -9c4bd2d267b7153df9152698efb1050a5d84982d3384a37b2c1f7723ba3e7835 traitlets-4.3.2.tar.gz diff --git a/l/python-traitlets/traitlets-4.3.3.tar.gz.sha256 b/l/python-traitlets/traitlets-4.3.3.tar.gz.sha256 new file mode 100644 index 00000000..e58acc1e --- /dev/null +++ b/l/python-traitlets/traitlets-4.3.3.tar.gz.sha256 @@ -0,0 +1 @@ +d023ee369ddd2763310e4c3eae1ff649689440d4ae59d7485eb4cfbbe3e359f7 traitlets-4.3.3.tar.gz