[arch-commits] Commit in python-requests-toolbelt/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Fri May 6 02:40:55 UTC 2016
Date: Friday, May 6, 2016 @ 04:40:54
Author: fyan
Revision: 173906
upgpkg: python-requests-toolbelt 0.6.1-1
Modified:
python-requests-toolbelt/trunk/PKGBUILD
----------+
PKGBUILD | 21 ++++++++++-----------
1 file changed, 10 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-05-06 02:40:36 UTC (rev 173905)
+++ PKGBUILD 2016-05-06 02:40:54 UTC (rev 173906)
@@ -4,8 +4,7 @@
pkgbase=python-requests-toolbelt
pkgname=('python-requests-toolbelt' 'python2-requests-toolbelt')
-_pkgname=requests-toolbelt
-pkgver=0.6.0
+pkgver=0.6.1
pkgrel=1
pkgdesc="A toolbelt of useful classes and functions to be used with python-requests."
arch=('any')
@@ -18,22 +17,22 @@
md5sums=('SKIP')
prepare() {
- cp -a ${_pkgname}{,-py2}
+ cp -a requests-toolbelt{,-py2}
}
build() {
- cd "$srcdir/${_pkgname}"
+ cd "$srcdir"/requests-toolbelt
python setup.py build
- cd "$srcdir/${_pkgname}-py2"
+ cd "$srcdir"/requests-toolbelt-py2
python2 setup.py build
}
check() {
- cd "$srcdir/${_pkgname}"
+ cd "$srcdir"/requests-toolbelt
py.test
- cd "$srcdir/${_pkgname}-py2"
+ cd "$srcdir"/requests-toolbelt-py2
py.test2
}
@@ -40,13 +39,13 @@
package_python-requests-toolbelt() {
depends=('python-requests')
- cd "$srcdir/${_pkgname}"
- python setup.py install --root="$pkgdir/" --optimize=1
+ cd requests-toolbelt
+ python setup.py install --root="$pkgdir" --optimize=1
}
package_python2-requests-toolbelt() {
depends=('python2-requests')
- cd "$srcdir/${_pkgname}-py2"
- python2 setup.py install --root="$pkgdir/" --optimize=1
+ cd requests-toolbelt-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
}
More information about the arch-commits
mailing list