[arch-commits] Commit in python-requests-toolbelt/repos (2 files)

Felix Yan fyan at archlinux.org
Sat Sep 19 13:17:15 UTC 2015


    Date: Saturday, September 19, 2015 @ 15:17:15
  Author: fyan
Revision: 140809

archrelease: copy trunk to community-staging-any

Added:
  python-requests-toolbelt/repos/community-staging-any/
  python-requests-toolbelt/repos/community-staging-any/PKGBUILD
    (from rev 140808, python-requests-toolbelt/trunk/PKGBUILD)

----------+
 PKGBUILD |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

Copied: python-requests-toolbelt/repos/community-staging-any/PKGBUILD (from rev 140808, python-requests-toolbelt/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 13:17:15 UTC (rev 140809)
@@ -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.4.0
+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' '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}{,-py2}
+}
+
+build() {
+  cd "$srcdir/${_pkgname}"
+  python setup.py build
+
+  cd "$srcdir/${_pkgname}-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/${_pkgname}"
+  py.test
+
+  cd "$srcdir/${_pkgname}-py2"
+  py.test2
+}
+
+package_python-requests-toolbelt() {
+  depends=('python-requests')
+
+  cd "$srcdir/${_pkgname}"
+  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
+}



More information about the arch-commits mailing list