[arch-commits] Commit in python-requests-toolbelt/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Sat Sep 19 13:16:45 UTC 2015
Date: Saturday, September 19, 2015 @ 15:16:45
Author: fyan
Revision: 140808
upgpkg: python-requests-toolbelt 0.4.0-2
rebuild for python 3.5
Modified:
python-requests-toolbelt/trunk/PKGBUILD
----------+
PKGBUILD | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-09-19 13:12:21 UTC (rev 140807)
+++ PKGBUILD 2015-09-19 13:16:45 UTC (rev 140808)
@@ -6,34 +6,34 @@
pkgname=('python-requests-toolbelt' 'python2-requests-toolbelt')
_pkgname=requests-toolbelt
pkgver=0.4.0
-pkgrel=1
+pkgrel=2
pkgdesc="A toolbelt of useful classes and functions to be used with python-requests."
arch=('any')
url="https://github.com/sigmavirus24/requests-toolbelt"
license=('Apache')
-makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests')
-checkdepends=('python-pytest' 'python2-pytest')
-source=("https://pypi.python.org/packages/source/r/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
-md5sums=('2278d650faadf181dd180682591e5926')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests' 'git')
+checkdepends=('python-pytest' 'python2-pytest' 'python-betamax' 'python2-betamax'
+ 'python-mock' 'python2-mock')
+source=("git+https://github.com/sigmavirus24/requests-toolbelt.git#tag=$pkgver")
+md5sums=('SKIP')
prepare() {
- cp -a ${_pkgname}-$pkgver{,-py2}
+ cp -a ${_pkgname}{,-py2}
}
build() {
- cd "$srcdir/${_pkgname}-$pkgver"
+ cd "$srcdir/${_pkgname}"
python setup.py build
- cd "$srcdir/${_pkgname}-$pkgver-py2"
+ cd "$srcdir/${_pkgname}-py2"
python2 setup.py build
}
check() {
- # Tests not included
- cd "$srcdir/${_pkgname}-$pkgver"
+ cd "$srcdir/${_pkgname}"
py.test
- cd "$srcdir/${_pkgname}-$pkgver-py2"
+ cd "$srcdir/${_pkgname}-py2"
py.test2
}
@@ -40,7 +40,7 @@
package_python-requests-toolbelt() {
depends=('python-requests')
- cd "$srcdir/${_pkgname}-$pkgver"
+ cd "$srcdir/${_pkgname}"
python setup.py install --root="$pkgdir/" --optimize=1
}
@@ -47,6 +47,6 @@
package_python2-requests-toolbelt() {
depends=('python2-requests')
- cd "$srcdir/${_pkgname}-$pkgver-py2"
+ cd "$srcdir/${_pkgname}-py2"
python2 setup.py install --root="$pkgdir/" --optimize=1
}
More information about the arch-commits
mailing list