[arch-commits] Commit in python-requests-mock/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri May 11 11:26:31 UTC 2018
Date: Friday, May 11, 2018 @ 11:26:31
Author: felixonmars
Revision: 320712
upgpkg: python-requests-mock 1.5.0-1
Modified:
python-requests-mock/trunk/PKGBUILD
----------+
PKGBUILD | 28 +++++++++++++++-------------
1 file changed, 15 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-05-11 11:25:57 UTC (rev 320711)
+++ PKGBUILD 2018-05-11 11:26:31 UTC (rev 320712)
@@ -3,35 +3,37 @@
pkgbase=python-requests-mock
pkgname=('python-requests-mock' 'python2-requests-mock')
-pkgver=1.4.0
+pkgver=1.5.0
pkgrel=1
pkgdesc="A mock of useful classes and functions to be used with python-requests."
arch=('any')
-url="https://github.com/openstack/requests-mock"
+url="https://github.com/jamielennox/requests-mock"
license=('Apache')
-makedepends=('python-pbr' 'python2-pbr' 'python-requests' 'python2-requests'
- 'python-six' 'python2-six' 'git')
+makedepends=('python-pbr' 'python2-pbr' 'python-requests' 'python2-requests' 'python-six'
+ 'python2-six')
checkdepends=('python-testrepository' 'python2-testrepository' 'python-mock' 'python2-mock')
-source=("git+https://github.com/openstack/requests-mock.git#tag=$pkgver")
-sha512sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/jamielennox/requests-mock/archive/$pkgver.tar.gz")
+sha512sums=('d37de8ed65f316b40b520f7d87c15711ec0ae04484695010a04c3c4c7877031c19ae6bb3e71f1d554857e6c7915af770701609634e2404ed1a9909750c3041d1')
prepare() {
- cp -a requests-mock{,-py2}
+ cp -a requests-mock-$pkgver{,-py2}
+
+ export PBR_VERSION=$pkgver
}
build() {
- cd "$srcdir"/requests-mock
+ cd "$srcdir"/requests-mock-$pkgver
python setup.py build
- cd "$srcdir"/requests-mock-py2
+ cd "$srcdir"/requests-mock-$pkgver-py2
python2 setup.py build
}
check() {
- cd "$srcdir"/requests-mock
+ cd "$srcdir"/requests-mock-$pkgver
python setup.py testr
- cd "$srcdir"/requests-mock-py2
+ cd "$srcdir"/requests-mock-$pkgver-py2
PYTHON=python2 python2 setup.py testr
}
@@ -38,7 +40,7 @@
package_python-requests-mock() {
depends=('python-requests' 'python-six')
- cd requests-mock
+ cd requests-mock-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
}
@@ -45,6 +47,6 @@
package_python2-requests-mock() {
depends=('python2-requests' 'python2-six')
- cd requests-mock-py2
+ cd requests-mock-$pkgver-py2
python2 setup.py install --root="$pkgdir" --optimize=1
}
More information about the arch-commits
mailing list