[arch-commits] Commit in python-praw/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sat Sep 17 08:38:47 UTC 2016


    Date: Saturday, September 17, 2016 @ 08:38:47
  Author: felixonmars
Revision: 189825

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   98 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 50 insertions(+), 48 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2016-09-17 08:38:27 UTC (rev 189824)
+++ PKGBUILD	2016-09-17 08:38:47 UTC (rev 189825)
@@ -1,48 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-praw
-pkgname=('python-praw' 'python2-praw')
-pkgver=3.5.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-decorator' 'python2-decorator'
-             'python-requests' 'python2-requests' 'python-six' 'python2-six'
-             'python-update_checker' 'python2-update_checker' 'git')
-checkdepends=('python-mock' 'python2-mock')
-# Version conflict, disabled for now
-# 'python-betamax-matchers' 'python2-betamax-matchers' 'python-betamax-serializers' 'python2-betamax-serializers')
-source=("git+https://github.com/praw-dev/praw.git#tag=v$pkgver")
-md5sums=('SKIP')
-
-prepare() {
-  sed -e 's/mock ==1.0.1/mock/' -i praw/setup.py
-  cp -a praw{,-py2}
-}
-
-check() {
-  cd "$srcdir/praw"
-  python setup.py test
-
-  cd "$srcdir/praw-py2"
-  python2 setup.py test
-}
-
-package_python-praw() {
-  depends=('python-decorator' 'python-requests' 'python-six' 'python-update_checker')
-
-  cd "${srcdir}/praw"
-  python setup.py install --root="${pkgdir}" --optimize=1
-}
-
-package_python2-praw() {
-  depends=('python2-decorator' 'python2-requests' 'python2-six' 'python2-update_checker')
-
-  cd "${srcdir}/praw-py2"
-  python2 setup.py install --root="${pkgdir}" --optimize=1
-
-  mv "$pkgdir/usr/bin/praw-multiprocess"{,2}
-}

Copied: python-praw/repos/community-any/PKGBUILD (from rev 189824, python-praw/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2016-09-17 08:38:47 UTC (rev 189825)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-praw
+pkgname=('python-praw' 'python2-praw')
+pkgver=3.5.0
+pkgrel=2
+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-decorator' 'python2-decorator'
+             'python-requests' 'python2-requests' 'python-six' 'python2-six'
+             'python-update_checker' 'python2-update_checker' 'git')
+checkdepends=('python-mock' 'python2-mock')
+# Version conflict, disabled for now
+# 'python-betamax-matchers' 'python2-betamax-matchers' 'python-betamax-serializers' 'python2-betamax-serializers')
+source=("git+https://github.com/praw-dev/praw.git#tag=v$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  sed -e 's/mock ==1.0.1/mock/' \
+      -e 's/update_checker ==0.11/update_checker >=0.11/' \
+      -i praw/setup.py
+  cp -a praw{,-py2}
+}
+
+check() {
+  cd "$srcdir"/praw
+  python setup.py test
+
+  cd "$srcdir"/praw-py2
+  python2 setup.py test
+}
+
+package_python-praw() {
+  depends=('python-decorator' 'python-requests' 'python-six' 'python-update_checker')
+
+  cd praw
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-praw() {
+  depends=('python2-decorator' 'python2-requests' 'python2-six' 'python2-update_checker')
+
+  cd praw-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+
+  mv "$pkgdir"/usr/bin/praw-multiprocess{,2}
+}



More information about the arch-commits mailing list