Date: Monday, June 4, 2018 @ 13:07:18 Author: felixonmars Revision: 340259
upgpkg: python-requests-oauthlib 1.0.0-1 Modified: python-requests-oauthlib/trunk/PKGBUILD ----------+ PKGBUILD | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2018-06-04 13:06:44 UTC (rev 340258) +++ PKGBUILD 2018-06-04 13:07:18 UTC (rev 340259) @@ -5,7 +5,7 @@ pkgbase=python-requests-oauthlib pkgname=('python-requests-oauthlib' 'python2-requests-oauthlib') -pkgver=0.8.0 +pkgver=1.0.0 pkgrel=1 pkgdesc="First-class OAuth library support for Requests" arch=('any') @@ -15,26 +15,26 @@ 'python-oauthlib' 'python2-oauthlib' 'git') 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') +source=("$pkgbase-$pkgver.tar.gz::https://github.com/requests/requests-oauthlib/archive/v$pkgver.tar.gz") +sha512sums=('5ceac61f14044b7c7ec4c26f68fc7b4ab6eda1529c367fead3e8aa5049b4aad12c76511861c13f2d62d11ec7ecd1d870ff69c7261bd51bcb01aa6d2e3ba5aa99') prepare() { - cp -a requests-oauthlib{,-py2} + cp -a requests-oauthlib-$pkgver{,-py2} } build() { - cd "$srcdir"/requests-oauthlib + cd "$srcdir"/requests-oauthlib-$pkgver python setup.py build - cd "$srcdir"/requests-oauthlib-py2 + cd "$srcdir"/requests-oauthlib-$pkgver-py2 python2 setup.py build } check() { - cd "$srcdir"/requests-oauthlib + cd "$srcdir"/requests-oauthlib-$pkgver py.test - cd "$srcdir"/requests-oauthlib-py2 + cd "$srcdir"/requests-oauthlib-$pkgver-py2 py.test2 } @@ -41,7 +41,7 @@ package_python-requests-oauthlib() { depends=('python-requests' 'python-oauthlib') - cd "$srcdir"/requests-oauthlib + cd requests-oauthlib-$pkgver python setup.py install --root="$pkgdir/" --optimize=1 install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" } @@ -49,7 +49,7 @@ package_python2-requests-oauthlib() { depends=('python2-requests' 'python2-oauthlib') - cd "$srcdir"/requests-oauthlib-py2 + cd requests-oauthlib-$pkgver-py2 python2 setup.py install --root="$pkgdir/" --optimize=1 install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" }