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

Felix Yan felixonmars at archlinux.org
Thu Feb 13 16:06:38 UTC 2020


    Date: Thursday, February 13, 2020 @ 16:06:38
  Author: felixonmars
Revision: 570572

upgpkg: python-requestsexceptions 1.4.0-5: remove python2 sibling

Modified:
  python-requestsexceptions/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++++--------------------------
 1 file changed, 9 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-13 16:04:32 UTC (rev 570571)
+++ PKGBUILD	2020-02-13 16:06:38 UTC (rev 570572)
@@ -1,45 +1,28 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 # Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
 
-pkgbase=python-requestsexceptions
-pkgname=(python-requestsexceptions python2-requestsexceptions)
+pkgname=python-requestsexceptions
 pkgver=1.4.0
-pkgrel=4
+pkgrel=5
 pkgdesc="Import exceptions from potentially bundled packages in requests."
 arch=('any')
 url="https://github.com/openstack-infra/requestsexceptions"
 license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-pbr' 'python2-pbr' 'python-requests'
-             'python2-requests')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/openstack-infra/requestsexceptions/archive/$pkgver.tar.gz")
+depends=('python-requests')
+makedepends=('python-pbr')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/openstack-infra/requestsexceptions/archive/$pkgver.tar.gz")
 sha512sums=('fb7cf432584963eee659b7294a11b4d0a1d1dd850bfccdac7a1d7014b6e97a5330553436df58c034088c8a2096b14bfe40ded7e128a5d8741114265c935cd02f')
 
-prepare() {
-  cp -a requestsexceptions-$pkgver{,-py2}
+export PBR_VERSION=$pkgver
 
-  export PBR_VERSION=$pkgver
-}
-
 build() {
-  cd "$srcdir"/requestsexceptions-$pkgver
+  cd requestsexceptions-$pkgver
   python setup.py build
-
-  cd "$srcdir"/requestsexceptions-$pkgver-py2
-  python2 setup.py build
 }
 
-package_python-requestsexceptions() {
-  depends=('python-requests')
-
-  cd "$srcdir"/requestsexceptions-$pkgver
+package() {
+  cd requestsexceptions-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
 
-package_python2-requestsexceptions() {
-  depends=('python2-requests')
-
-  cd "$srcdir"/requestsexceptions-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-}
-
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list