[arch-commits] Commit in python-betamax-matchers/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Jul 12 20:43:11 UTC 2018
Date: Thursday, July 12, 2018 @ 20:43:11
Author: felixonmars
Revision: 358201
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 358200, python-betamax-matchers/trunk/PKGBUILD)
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Copied: python-betamax-matchers/repos/community-staging-any/PKGBUILD (from rev 358200, python-betamax-matchers/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-07-12 20:43:11 UTC (rev 358201)
@@ -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.4.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 pytest
+
+ cd "$srcdir"/betamax_matchers-py2
+ python2 setup.py pytest
+}
+
+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