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

Felix Yan felixonmars at archlinux.org
Fri Mar 1 10:42:21 UTC 2019


    Date: Friday, March 1, 2019 @ 10:42:20
  Author: felixonmars
Revision: 437216

upgpkg: python-prawcore 1.0.1-2

remove python2 sibling

Modified:
  python-prawcore/trunk/PKGBUILD

----------+
 PKGBUILD |   36 +++++++++---------------------------
 1 file changed, 9 insertions(+), 27 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-01 10:42:08 UTC (rev 437215)
+++ PKGBUILD	2019-03-01 10:42:20 UTC (rev 437216)
@@ -1,44 +1,26 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-prawcore
-pkgname=('python-prawcore' 'python2-prawcore')
+pkgname=python-prawcore
 pkgver=1.0.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Low-level communication layer for PRAW 4+."
 arch=('any')
 license=('BSD')
 url="https://github.com/praw-dev/prawcore"
-makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests')
-checkdepends=('python-mock' 'python2-mock' 'python-betamax-matchers' 'python2-betamax-matchers'
-              'python-betamax-serializers' 'python2-betamax-serializers' 'python-testfixtures'
-              'python2-testfixtures')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/praw-dev/prawcore/archive/v$pkgver.tar.gz")
+depends=('python-requests')
+makedepends=('python-setuptools')
+checkdepends=('python-mock' 'python-betamax-matchers' 'python-betamax-serializers'
+              'python-testfixtures')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/praw-dev/prawcore/archive/v$pkgver.tar.gz")
 sha512sums=('6efe8faa685aa92a04309c4c24963a2a540335ad0bed31b990d840732ddf726789688171f4ead4daf831e89da5c95c17861a079dfc9ae3de254d2690bcff1c8b')
 
-prepare() {
-  cp -a prawcore-$pkgver{,-py2}
-}
-
 check() {
-  cd "$srcdir"/prawcore-$pkgver
+  cd prawcore-$pkgver
   python setup.py test
-
-  cd "$srcdir"/prawcore-$pkgver-py2
-  python2 setup.py test
 }
 
-package_python-prawcore() {
-  depends=('python-requests')
-
+package() {
   cd prawcore-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
 }
-
-package_python2-prawcore() {
-  depends=('python2-requests')
-
-  cd prawcore-$pkgver-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
-}


More information about the arch-commits mailing list