[arch-commits] Commit in python-boto/trunk (PKGBUILD)

Balló György bgyorgy at archlinux.org
Mon Mar 16 21:17:03 UTC 2020


    Date: Monday, March 16, 2020 @ 21:17:02
  Author: bgyorgy
Revision: 599872

upgpkg: python-boto 2.49.0.20190327-2: Remove python2 support

Modified:
  python-boto/trunk/PKGBUILD

----------+
 PKGBUILD |   41 +++++++----------------------------------
 1 file changed, 7 insertions(+), 34 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-16 21:16:49 UTC (rev 599871)
+++ PKGBUILD	2020-03-16 21:17:02 UTC (rev 599872)
@@ -2,19 +2,18 @@
 # Contributor: Kaiting Chen <kaitocracy at gmail.com>
 # Contributor: Aaron Schaefer <aaron at elasticdog.com>
 
-pkgbase=python-boto
-pkgname=(python-boto python2-boto)
+pkgname=python-boto
 pkgver=2.49.0.20190327
 _commit=9e1cd3bd76e738d80630f1bd9160fd87c8eab865
-pkgrel=1
+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-$_commit.tar.gz::https://github.com/boto/boto/archive/$_commit.tar.gz"
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'python-mock' 'python-requests' 'python-httpretty')
+source=("$pkgname-$_commit.tar.gz::https://github.com/boto/boto/archive/$_commit.tar.gz"
          boto-python-3.8.patch)
 sha512sums=('a68b7560caef3328970b9d1febc77fb28e537e4012b692b492d69428aca7deccf539e883cba4975497059ccdc56452f6e46f4a101b6e93f007667fe45c842e24'
             '3e32db201adb637d3b6041f9e7be65889f1306042cbed36e4884207cbf772dc8f7691be9a505ec79f111b99c8313e0d42436c1f9a2dfa095de6cc77a7fe4bc6d')
@@ -24,42 +23,16 @@
   (cd boto-$pkgver
    patch -p1 -i ../boto-python-3.8.patch # Fix escaping with python 3.8
   )
-
-  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')
-
+package() {
   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
-}



More information about the arch-commits mailing list