diff options
author | Larry Hajali <larryhaja@gmail.com> | 2015-01-10 22:40:53 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-01-10 22:40:53 +0700 |
commit | e8f7adff132ae3828a203c5d2c6f0d96c7dc6d84 (patch) | |
tree | 20417ab8e5c9c929042159ac521f632c7b80dea8 /python/boto3 | |
parent | 495dbbe26d006c92150209ccfa3eb469035559d3 (diff) |
python/boto3: Added (Python API for AWS).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'python/boto3')
-rw-r--r-- | python/boto3/README | 13 | ||||
-rw-r--r-- | python/boto3/boto3.SlackBuild | 71 | ||||
-rw-r--r-- | python/boto3/boto3.info | 10 | ||||
-rw-r--r-- | python/boto3/slack-desc | 19 |
4 files changed, 113 insertions, 0 deletions
diff --git a/python/boto3/README b/python/boto3/README new file mode 100644 index 0000000000000..e3ccaeefad31c --- /dev/null +++ b/python/boto3/README @@ -0,0 +1,13 @@ +Boto is the Amazon Web Services (AWS) Software Development Kit (SDK) for +Python, which allows Python developers to write software that makes use +of services like Amazon S3 and Amazon EC2. You can find the latest, most +up to date, documentation at `Read the Docs`_, including a list of +services that are supported. + +**WARNING**: Boto 3 is in *developer preview* and **should not** be used in +production yet! Please try it out and give feedback by opening issues or +pull requests on this repository. + +Note: boto3 can be installed alongside boto. + +Optional dependencies: pysetuptools diff --git a/python/boto3/boto3.SlackBuild b/python/boto3/boto3.SlackBuild new file mode 100644 index 0000000000000..356717ea76014 --- /dev/null +++ b/python/boto3/boto3.SlackBuild @@ -0,0 +1,71 @@ +#!/bin/sh + +# Slackware build script for boto3 + +# Copyright 2015 Larry Hajali <larryhaja[at]gmail[dot]com> +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=boto3 +VERSION=${VERSION:-0.0.6} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +python setup.py install --root=$PKG + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a *.rst $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/python/boto3/boto3.info b/python/boto3/boto3.info new file mode 100644 index 0000000000000..b7ebe4e470d7a --- /dev/null +++ b/python/boto3/boto3.info @@ -0,0 +1,10 @@ +PRGNAM="boto3" +VERSION="0.0.6" +HOMEPAGE="http://aws.amazon.com/sdk-for-python/" +DOWNLOAD="https://pypi.python.org/packages/source/b/boto3/boto3-0.0.6.tar.gz" +MD5SUM="b3033c41e896e929fd57a5e05f856cfb" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="botocore bcdoc" +MAINTAINER="Larry Hajali" +EMAIL="larryhaja[at]gmail[dot]com" diff --git a/python/boto3/slack-desc b/python/boto3/slack-desc new file mode 100644 index 0000000000000..7ed633a59daba --- /dev/null +++ b/python/boto3/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +boto3: boto3 (Python API for AWS) +boto3: +boto3: Boto is the Amazon Web Services (AWS) Software Development Kit (SDK) +boto3: for Python, which allows Python developers to write software that +boto3: makes use of services like Amazon S3 and Amazon EC2. You can find the +boto3: latest, most up to date, documentation at `Read the Docs`_, including +boto3: a list of services that are supported. +boto3: +boto3: Homepage: http://aws.amazon.com/sdk-for-python/ +boto3: +boto3: |