[arch-commits] Commit in python-requests-oauthlib/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Tue Sep 22 03:28:45 UTC 2015
Date: Tuesday, September 22, 2015 @ 05:28:45
Author: fyan
Revision: 141431
upgpkg: python-requests-oauthlib 0.5.0.20150919-1
rebuild for python 3.5
Modified:
python-requests-oauthlib/trunk/PKGBUILD
----------+
PKGBUILD | 29 ++++++++++++++++-------------
1 file changed, 16 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-09-22 03:17:58 UTC (rev 141430)
+++ PKGBUILD 2015-09-22 03:28:45 UTC (rev 141431)
@@ -5,35 +5,38 @@
pkgbase=python-requests-oauthlib
pkgname=('python-requests-oauthlib' 'python2-requests-oauthlib')
-_pkgname=requests-oauthlib
-pkgver=0.5.0
+_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')
-checkdepends=('python-pytest' 'python2-pytest' 'python-mock' 'python2-mock')
-source=("https://pypi.python.org/packages/source/r/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
-md5sums=('139a17c495fb593b5842634faf72ebb0')
+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 ${_pkgname}-$pkgver{,-py2}
+ cp -a ${_pypiname}{,-py2}
}
build() {
- cd "$srcdir/${_pkgname}-$pkgver"
+ cd "$srcdir/${_pypiname}"
python setup.py build
- cd "$srcdir/${_pkgname}-$pkgver-py2"
+ cd "$srcdir/${_pypiname}-py2"
python2 setup.py build
}
check() {
- cd "$srcdir/${_pkgname}-$pkgver"
+ cd "$srcdir/${_pypiname}"
py.test
- cd "$srcdir/${_pkgname}-$pkgver-py2"
+ cd "$srcdir/${_pypiname}-py2"
py.test2
}
@@ -40,7 +43,7 @@
package_python-requests-oauthlib() {
depends=('python-requests' 'python-oauthlib')
- cd "$srcdir/${_pkgname}-$pkgver"
+ cd "$srcdir/${_pypiname}"
python setup.py install --root="$pkgdir/" --optimize=1
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
@@ -48,7 +51,7 @@
package_python2-requests-oauthlib() {
depends=('python2-requests' 'python2-oauthlib')
- cd "$srcdir/${_pkgname}-$pkgver-py2"
+ 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