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

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


    Date: Friday, August 17, 2018 @ 07:33:44
  Author: felixonmars
Revision: 372204

archrelease: copy trunk to community-testing-any

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

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

Copied: python-praw/repos/community-testing-any/PKGBUILD (from rev 372203, python-praw/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2018-08-17 07:33:44 UTC (rev 372204)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-praw
+pkgname=('python-praw' 'python2-praw')
+pkgver=6.0.0
+pkgrel=1
+pkgdesc="Python Reddit API Wrapper that allows for simple access to reddit's API"
+arch=('any')
+license=('GPL')
+url="https://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=('a276fbd3635618094cdfd8824239630405551a632ec00457636466b9dbfb250e3d0362df82c3034c667a3ede91d15d16baadaad4f9f9dec15a35ef26fe36f974')
+
+prepare() {
+  cp -a praw-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/praw-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/praw-$pkgver-py2
+  python2 setup.py build
+}
+
+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