[arch-commits] Commit in python-boto/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Wed Aug 6 07:00:33 UTC 2014
Date: Wednesday, August 6, 2014 @ 09:00:33
Author: fyan
Revision: 116914
upgpkg: python-boto 2.32.1-1
- upstream new release
- add python 3 counterpart
Modified:
python-boto/trunk/PKGBUILD
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++------------
1 file changed, 29 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-08-06 02:57:12 UTC (rev 116913)
+++ PKGBUILD 2014-08-06 07:00:33 UTC (rev 116914)
@@ -4,23 +4,23 @@
# Contributor: Aaron Schaefer <aaron at elasticdog.com>
pkgbase=python-boto
-pkgname=python2-boto
-pkgver=2.32.0
+pkgname=(python-boto python2-boto)
+pkgver=2.32.1
pkgrel=1
pkgdesc='A Python interface to Amazon Web Services (AWS)'
arch=('any')
url='https://github.com/boto/boto'
license=('MIT')
-depends=('python2')
-makedepends=('python2-setuptools' 'git')
-checkdepends=('python2-nose' 'python2-mock' 'python2-requests' 'python2-httpretty')
-conflicts=('python-boto>=2.5.2-1')
-replaces=('python-boto>=2.5.2-1')
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-requests'
+ 'python2-requests' 'python-httpretty' 'python2-httpretty')
source=("git+https://github.com/boto/boto.git#tag=$pkgver")
+sha512sums=('SKIP')
prepare() {
- cd boto
+ cp -a boto{,-py2}
+ cd boto-py2
# python2 fix
find . -name '*.py' -type f -print0 | xargs -0 \
sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_'
@@ -28,14 +28,31 @@
check() {
cd boto
- python2 tests/test.py tests/unit
+ python tests/test.py default
+
+ cd ../boto-py2
+ python2 tests/test.py default
}
-package_python2-boto() {
+package_python-boto() {
+ depends=('python')
+
cd boto
+ python setup.py install -O1 --root="$pkgdir"
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+ # Remove (somewhat deprecated) tools that conflicts with the python 2 version.
+ rm -r "$pkgdir/usr/bin"
+}
+
+package_python2-boto() {
+ depends=('python2')
+ conflicts=('python-boto<2.32.1-1')
+ replaces=('python-boto<2.32.1-1')
+
+ cd boto-py2
+
python2 setup.py install -O1 --root="$pkgdir"
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
-
-sha512sums=('SKIP')
More information about the arch-commits
mailing list