[arch-commits] Commit in (4 files)
Felix Yan
fyan at archlinux.org
Tue Nov 11 08:16:49 UTC 2014
Date: Tuesday, November 11, 2014 @ 09:16:49
Author: fyan
Revision: 122344
addpkg: python-requests-toolbelt 0.3.1-2
Added:
python-requests-toolbelt/
python-requests-toolbelt/repos/
python-requests-toolbelt/trunk/
python-requests-toolbelt/trunk/PKGBUILD
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Added: python-requests-toolbelt/trunk/PKGBUILD
===================================================================
--- python-requests-toolbelt/trunk/PKGBUILD (rev 0)
+++ python-requests-toolbelt/trunk/PKGBUILD 2014-11-11 08:16:49 UTC (rev 122344)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: eolianoe <eolianoe At GoogleMAIL DoT com>
+
+pkgbase=python-requests-toolbelt
+pkgname=('python-requests-toolbelt' 'python2-requests-toolbelt')
+_pkgname=requests-toolbelt
+pkgver=0.3.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=('e563377e46cd0be8c7b3ac144a65844c')
+
+prepare() {
+ cp -a ${_pkgname}-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir/${_pkgname}-$pkgver"
+ python setup.py build
+
+ cd "$srcdir/${_pkgname}-$pkgver-py2"
+ python2 setup.py build
+}
+
+check() {
+ # Tests not included
+ cd "$srcdir/${_pkgname}-$pkgver"
+ py.test
+
+ cd "$srcdir/${_pkgname}-$pkgver-py2"
+ py.test2
+}
+
+package_python-requests-toolbelt() {
+ depends=('python-requests')
+
+ cd "$srcdir/${_pkgname}-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-requests-toolbelt() {
+ depends=('python2-requests')
+
+ cd "$srcdir/${_pkgname}-$pkgver-py2"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+}
Property changes on: python-requests-toolbelt/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list