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

Felix Yan fyan at archlinux.org
Tue Sep 22 03:29:04 UTC 2015


    Date: Tuesday, September 22, 2015 @ 05:29:03
  Author: fyan
Revision: 141432

archrelease: copy trunk to community-staging-any

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

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

Copied: python-requests-oauthlib/repos/community-staging-any/PKGBUILD (from rev 141431, python-requests-oauthlib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-22 03:29:03 UTC (rev 141432)
@@ -0,0 +1,57 @@
+# $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')
+_pypiname=requests-oauthlib
+pkgver=0.5.0.20150919
+_commit=c68b16f59bb6922338aaa80d1041e049290e5e3c
+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' 'git')
+checkdepends=('python-pytest' 'python2-pytest' 'python-mock' 'python2-mock'
+              'python-pyjwt' 'python2-pyjwt')
+source=("git+https://github.com/requests/requests-oauthlib.git#commit=$_commit")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a ${_pypiname}{,-py2}
+}
+
+build() {
+  cd "$srcdir/${_pypiname}"
+  python setup.py build
+
+  cd "$srcdir/${_pypiname}-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/${_pypiname}"
+  py.test
+
+  cd "$srcdir/${_pypiname}-py2"
+  py.test2
+}
+
+package_python-requests-oauthlib() {
+  depends=('python-requests' 'python-oauthlib')
+
+  cd "$srcdir/${_pypiname}"
+  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/${_pypiname}-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