[arch-commits] Commit in python-betamax-matchers/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Dec 26 09:40:14 UTC 2016


    Date: Monday, December 26, 2016 @ 09:40:13
  Author: felixonmars
Revision: 202635

archrelease: copy trunk to community-staging-any

Added:
  python-betamax-matchers/repos/community-staging-any/
  python-betamax-matchers/repos/community-staging-any/PKGBUILD
    (from rev 202634, python-betamax-matchers/trunk/PKGBUILD)

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

Copied: python-betamax-matchers/repos/community-staging-any/PKGBUILD (from rev 202634, python-betamax-matchers/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-26 09:40:13 UTC (rev 202635)
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-betamax-matchers
+pkgname=('python-betamax-matchers' 'python2-betamax-matchers')
+pkgver=0.3.0
+pkgrel=2
+pkgdesc="Experimental set of Matchers for Betamax that may possibly end up in the main package"
+arch=('any')
+license=('GPL')
+url='https://github.com/sigmavirus24/betamax_matchers'
+makedepends=('python-setuptools' 'python2-setuptools' 'python-betamax' 'python2-betamax'
+             'python-requests-toolbelt' 'python2-requests-toolbelt' 'git')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("git+https://github.com/sigmavirus24/betamax_matchers.git#tag=$pkgver")
+md5sums=('SKIP')
+
+prepare() {
+  cp -a betamax_matchers{,-py2}
+}
+
+check() {
+  cd "$srcdir"/betamax_matchers
+  python setup.py ptr
+
+  cd "$srcdir"/betamax_matchers-py2
+  python2 setup.py ptr
+}
+
+package_python-betamax-matchers() {
+  depends=('python-requests-toolbelt' 'python-betamax')
+
+  cd betamax_matchers
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-betamax-matchers() {
+  depends=('python2-requests-toolbelt' 'python2-betamax')
+
+  cd betamax_matchers-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list