[arch-commits] Commit in python-boto/repos (2 files)

2019-10-25 Thread Felix Yan via arch-commits
Date: Friday, October 25, 2019 @ 15:24:47
  Author: felixonmars
Revision: 519017

archrelease: copy trunk to community-staging-any

Added:
  python-boto/repos/community-staging-any/
  python-boto/repos/community-staging-any/PKGBUILD
(from rev 519013, python-boto/trunk/PKGBUILD)

--+
 PKGBUILD |   57 +
 1 file changed, 57 insertions(+)

Copied: python-boto/repos/community-staging-any/PKGBUILD (from rev 519013, 
python-boto/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2019-10-25 15:24:47 UTC (rev 519017)
@@ -0,0 +1,57 @@
+# Maintainer: Felix Yan 
+# Contributor: Kaiting Chen 
+# Contributor: Aaron Schaefer 
+
+pkgbase=python-boto
+pkgname=(python-boto python2-boto)
+pkgver=2.49.0
+pkgrel=2
+pkgdesc='A Python interface to Amazon Web Services (AWS)'
+arch=('any')
+url='https://github.com/boto/boto'
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 
'python-requests'
+  'python2-requests' 'python-httpretty' 'python2-httpretty')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/boto/boto/archive/$pkgver.tar.gz";)
+sha512sums=('43c2679f33ecec9b78d9969329d361cff4fd569b431e8451d849a42882ba4913598bfc7e11561fc54799e6e36e6e75a0299da955232435fb3e56745b2fcb57bc')
+
+prepare() {
+  cp -a boto-$pkgver{,-py2}
+
+  cd boto-$pkgver-py2
+  # python2 fix
+  find . -name '*.py' -type f -print0 | xargs -0 \
+sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_'
+}
+
+check() {
+  cd "$srcdir"/boto-$pkgver
+  python tests/test.py default
+
+  cd "$srcdir"/boto-$pkgver-py2
+  python2 tests/test.py default
+}
+
+package_python-boto() {
+  depends=('python')
+
+  cd boto-$pkgver
+
+  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-$pkgver-py2
+
+  python2 setup.py install -O1 --root="$pkgdir"
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}


[arch-commits] Commit in python-boto/repos (2 files)

2018-07-12 Thread Felix Yan via arch-commits
Date: Thursday, July 12, 2018 @ 21:32:40
  Author: felixonmars
Revision: 358324

archrelease: copy trunk to community-staging-any

Added:
  python-boto/repos/community-staging-any/
  python-boto/repos/community-staging-any/PKGBUILD
(from rev 358317, python-boto/trunk/PKGBUILD)

--+
 PKGBUILD |   58 ++
 1 file changed, 58 insertions(+)

Copied: python-boto/repos/community-staging-any/PKGBUILD (from rev 358317, 
python-boto/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2018-07-12 21:32:40 UTC (rev 358324)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Kaiting Chen 
+# Contributor: Aaron Schaefer 
+
+pkgbase=python-boto
+pkgname=(python-boto python2-boto)
+pkgver=2.48.0
+pkgrel=2
+pkgdesc='A Python interface to Amazon Web Services (AWS)'
+arch=('any')
+url='https://github.com/boto/boto'
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 
'python-requests'
+  'python2-requests' 'python-httpretty' 'python2-httpretty')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/boto/boto/archive/$pkgver.tar.gz";)
+sha512sums=('aabef7622927884549fbc1cb3b39d307aadcab0ac5bff65778f87c881a8df76ee819aab20c34d5aceb62fe1365629f9186b8e10f3216b62d9a339a93e9b5f12a')
+
+prepare() {
+  cp -a boto-$pkgver{,-py2}
+
+  cd boto-$pkgver-py2
+  # python2 fix
+  find . -name '*.py' -type f -print0 | xargs -0 \
+sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_'
+}
+
+check() {
+  cd "$srcdir"/boto-$pkgver
+  python tests/test.py default
+
+  cd "$srcdir"/boto-$pkgver-py2
+  python2 tests/test.py default
+}
+
+package_python-boto() {
+  depends=('python')
+
+  cd boto-$pkgver
+
+  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-$pkgver-py2
+
+  python2 setup.py install -O1 --root="$pkgdir"
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}


[arch-commits] Commit in python-boto/repos (2 files)

2016-12-26 Thread Bartłomiej Piotrowski
Date: Tuesday, December 27, 2016 @ 06:48:55
  Author: bpiotrowski
Revision: 202973

archrelease: copy trunk to community-staging-any

Added:
  python-boto/repos/community-staging-any/
  python-boto/repos/community-staging-any/PKGBUILD
(from rev 202972, python-boto/trunk/PKGBUILD)

--+
 PKGBUILD |   59 +++
 1 file changed, 59 insertions(+)

Copied: python-boto/repos/community-staging-any/PKGBUILD (from rev 202972, 
python-boto/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2016-12-27 06:48:55 UTC (rev 202973)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Kaiting Chen 
+# Contributor: Aaron Schaefer 
+
+pkgbase=python-boto
+pkgname=(python-boto python2-boto)
+pkgver=2.45.0
+pkgrel=2
+pkgdesc='A Python interface to Amazon Web Services (AWS)'
+arch=('any')
+url='https://github.com/boto/boto'
+license=('MIT')
+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() {
+  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_'
+}
+
+check() {
+  cd boto
+  # Known failure on test_correct_low_level_api_calls: 
https://bugs.python.org/issue25195
+  python tests/test.py default || warning 'Tests failed'
+
+  cd ../boto-py2
+  python2 tests/test.py default
+}
+
+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"
+}


[arch-commits] Commit in python-boto/repos (2 files)

2015-09-20 Thread Felix Yan
Date: Sunday, September 20, 2015 @ 12:54:19
  Author: fyan
Revision: 141238

archrelease: copy trunk to community-staging-any

Added:
  python-boto/repos/community-staging-any/
  python-boto/repos/community-staging-any/PKGBUILD
(from rev 141237, python-boto/trunk/PKGBUILD)

--+
 PKGBUILD |   59 +++
 1 file changed, 59 insertions(+)

Copied: python-boto/repos/community-staging-any/PKGBUILD (from rev 141237, 
python-boto/trunk/PKGBUILD)
===
--- community-staging-any/PKGBUILD  (rev 0)
+++ community-staging-any/PKGBUILD  2015-09-20 10:54:19 UTC (rev 141238)
@@ -0,0 +1,59 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Kaiting Chen 
+# Contributor: Aaron Schaefer 
+
+pkgbase=python-boto
+pkgname=(python-boto python2-boto)
+pkgver=2.38.0
+pkgrel=2
+pkgdesc='A Python interface to Amazon Web Services (AWS)'
+arch=('any')
+url='https://github.com/boto/boto'
+license=('MIT')
+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() {
+  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_'
+}
+
+check() {
+  cd boto
+  # Known failure on test_correct_low_level_api_calls: 
https://bugs.python.org/issue25195
+  python tests/test.py default || warning 'Tests failed'
+
+  cd ../boto-py2
+  python2 tests/test.py default
+}
+
+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"
+}