[arch-commits] Commit in python-requests-oauthlib/trunk (PKGBUILD)

Felix Yan fyan at archlinux.org
Sat Feb 20 13:48:07 UTC 2016


    Date: Saturday, February 20, 2016 @ 14:48:07
  Author: fyan
Revision: 162724

upgpkg: python-requests-oauthlib 0.6.1-1

Modified:
  python-requests-oauthlib/trunk/PKGBUILD

----------+
 PKGBUILD |   25 ++++++++++++-------------
 1 file changed, 12 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-02-20 13:45:44 UTC (rev 162723)
+++ PKGBUILD	2016-02-20 13:48:07 UTC (rev 162724)
@@ -5,8 +5,7 @@
 
 pkgbase=python-requests-oauthlib
 pkgname=('python-requests-oauthlib' 'python2-requests-oauthlib')
-_pypiname=requests-oauthlib
-pkgver=0.6.0
+pkgver=0.6.1
 pkgrel=1
 pkgdesc="First-class OAuth library support for Requests"
 arch=('any')
@@ -14,28 +13,28 @@
 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')
+checkdepends=('python-pytest' 'python2-pytest' 'python-requests-mock' 'python2-requests-mock'
+              'python-mock' 'python2-mock' 'python-pyjwt' 'python2-pyjwt')
 source=("git+https://github.com/requests/requests-oauthlib.git#tag=v$pkgver")
 md5sums=('SKIP')
 
 prepare() {
-  cp -a ${_pypiname}{,-py2}
+  cp -a requests-oauthlib{,-py2}
 }
 
 build() {
-  cd "$srcdir/${_pypiname}"
+  cd "$srcdir"/requests-oauthlib
   python setup.py build
 
-  cd "$srcdir/${_pypiname}-py2"
+  cd "$srcdir"/requests-oauthlib-py2
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir/${_pypiname}"
+  cd "$srcdir"/requests-oauthlib
   py.test
 
-  cd "$srcdir/${_pypiname}-py2"
+  cd "$srcdir"/requests-oauthlib-py2
   py.test2
 }
 
@@ -42,15 +41,15 @@
 package_python-requests-oauthlib() {
   depends=('python-requests' 'python-oauthlib')
 
-  cd "$srcdir/${_pypiname}"
+  cd "$srcdir"/requests-oauthlib
   python setup.py install --root="$pkgdir/" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
 }
 
 package_python2-requests-oauthlib() {
   depends=('python2-requests' 'python2-oauthlib')
 
-  cd "$srcdir/${_pypiname}-py2"
+  cd "$srcdir"/requests-oauthlib-py2
   python2 setup.py install --root="$pkgdir/" --optimize=1
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
 }



More information about the arch-commits mailing list