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

Felix Yan felixonmars at archlinux.org
Sun Dec 17 15:09:48 UTC 2017


    Date: Sunday, December 17, 2017 @ 15:09:47
  Author: felixonmars
Revision: 274647

archrelease: copy trunk to community-testing-any

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

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

Copied: python-praw/repos/community-testing-any/PKGBUILD (from rev 274646, python-praw/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2017-12-17 15:09:47 UTC (rev 274647)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-praw
+pkgname=('python-praw' 'python2-praw')
+pkgver=5.3.0
+pkgrel=1
+pkgdesc="Python Reddit API Wrapper that allows for simple access to reddit's API"
+arch=('any')
+license=('GPL')
+url="http://praw.readthedocs.org"
+makedepends=('python-setuptools' 'python2-setuptools' 'python-prawcore' 'python2-prawcore'
+             'python-update-checker' 'python2-update-checker' 'python-pytest-runner'
+             'python2-pytest-runner')
+checkdepends=('python-mock' 'python2-mock' 'python-betamax-serializers'
+              'python2-betamax-serializers' 'python-betamax-matchers' 'python2-betamax-matchers')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/praw-dev/praw/archive/v$pkgver.tar.gz")
+sha512sums=('5381b715401b8faf0cae50b9faa66c481154a76ee3ffefdaa6ae0268866b63447161a91f9d74129919d932437166fbe3a936a407306580d184700a840b63dec6')
+
+prepare() {
+  cp -a praw-$pkgver{,-py2}
+}
+
+check() {
+  cd "$srcdir"/praw-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/praw-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-praw() {
+  depends=('python-prawcore' 'python-update-checker')
+
+  cd praw-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-praw() {
+  depends=('python2-prawcore' 'python2-update-checker')
+
+  cd praw-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list