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

Felix Yan fyan at archlinux.org
Sat Nov 15 03:22:24 UTC 2014


    Date: Saturday, November 15, 2014 @ 04:22:24
  Author: fyan
Revision: 122587

archrelease: copy trunk to community-any

Added:
  python-requests-oauthlib/repos/community-any/
  python-requests-oauthlib/repos/community-any/PKGBUILD
    (from rev 122586, python-requests-oauthlib/trunk/PKGBUILD)

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

Copied: python-requests-oauthlib/repos/community-any/PKGBUILD (from rev 122586, python-requests-oauthlib/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2014-11-15 03:22:24 UTC (rev 122587)
@@ -0,0 +1,54 @@
+# $Id: PKGBUILD 122344 2014-11-11 08:16:49Z fyan $
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Sebastien Leduc <sebastien at sleduc.fr>
+# Contributor: Roberto Catini <roberto.catini at gmail.com>
+
+pkgbase=python-requests-oauthlib
+pkgname=('python-requests-oauthlib' 'python2-requests-oauthlib')
+_pkgname=requests-oauthlib
+pkgver=0.4.2
+pkgrel=1
+pkgdesc="First-class OAuth library support for Requests"
+arch=('any')
+url="https://pypi.python.org/pypi/requests-oauthlib"
+license=('custom:ISC')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests' 'python-oauthlib' 'python2-oauthlib')
+checkdepends=('python-pytest' 'python2-pytest' 'python-mock' 'python2-mock')
+source=("https://pypi.python.org/packages/source/r/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+md5sums=('df930abe3971fb418c67a8545de54661')
+
+prepare() {
+  cp -a ${_pkgname}-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir/${_pkgname}-$pkgver"
+  python setup.py build
+
+  cd "$srcdir/${_pkgname}-$pkgver-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/${_pkgname}-$pkgver"
+  py.test
+
+  cd "$srcdir/${_pkgname}-$pkgver-py2"
+  py.test2
+}
+
+package_python-requests-oauthlib() {
+  depends=('python-requests' 'python-oauthlib')
+
+  cd "$srcdir/${_pkgname}-$pkgver"
+  python setup.py install --root="$pkgdir/" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-requests-oauthlib() {
+  depends=('python2-requests' 'python2-oauthlib')
+
+  cd "$srcdir/${_pkgname}-$pkgver-py2"
+  python2 setup.py install --root="$pkgdir/" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}


More information about the arch-commits mailing list