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

Felix Yan felixonmars at archlinux.org
Fri Aug 17 07:28:33 UTC 2018


    Date: Friday, August 17, 2018 @ 07:28:33
  Author: felixonmars
Revision: 372197

archrelease: copy trunk to community-testing-any

Added:
  python-prawcore/repos/community-testing-any/
  python-prawcore/repos/community-testing-any/PKGBUILD
    (from rev 372196, python-prawcore/trunk/PKGBUILD)

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

Copied: python-prawcore/repos/community-testing-any/PKGBUILD (from rev 372196, python-prawcore/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2018-08-17 07:28:33 UTC (rev 372197)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-prawcore
+pkgname=('python-prawcore' 'python2-prawcore')
+pkgver=1.0.0
+pkgrel=1
+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")
+sha512sums=('01ba210b56aedb8f697f13650ac2a763ef034e668ee9a84962e1567cada894adf6088a536d32b67d44edfbbec24aed6c86d33aa56d003593961346e1319de69c')
+
+prepare() {
+  cp -a prawcore-$pkgver{,-py2}
+}
+
+check() {
+  cd "$srcdir"/prawcore-$pkgver
+  python setup.py test
+
+  cd "$srcdir"/prawcore-$pkgver-py2
+  python2 setup.py test
+}
+
+package_python-prawcore() {
+  depends=('python-requests')
+
+  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