[arch-commits] Commit in python-betamax/repos/community-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at archlinux.org
Tue Mar 13 23:43:45 UTC 2018


    Date: Tuesday, March 13, 2018 @ 23:43:45
  Author: felixonmars
Revision: 307495

archrelease: copy trunk to community-any

Added:
  python-betamax/repos/community-any/PKGBUILD
    (from rev 307494, python-betamax/trunk/PKGBUILD)
Deleted:
  python-betamax/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   92 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 46 insertions(+), 46 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2018-03-13 23:43:28 UTC (rev 307494)
+++ PKGBUILD	2018-03-13 23:43:45 UTC (rev 307495)
@@ -1,46 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-betamax
-pkgname=('python-betamax' 'python2-betamax')
-pkgver=0.8.0
-pkgrel=2
-pkgdesc="A VCR imitation for python-requests"
-arch=('any')
-license=('GPL')
-url='https://github.com/sigmavirus24/betamax'
-makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests' 'git')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python2-mock')
-source=("git+https://github.com/sigmavirus24/betamax.git#tag=$pkgver")
-md5sums=('SKIP')
-
-prepare() {
-  cp -a betamax{,-py2}
-}
-
-check() {
-  # Failure about isinstance urllib3.response.HTTPResponse affects only tests.
-  # We need to investigate it more.
-
-  cd "$srcdir"/betamax
-  python setup.py ptr || warning "Tests failed"
-
-  cd "$srcdir"/betamax-py2
-  python2 setup.py ptr || warning "Tests failed"
-}
-
-package_python-betamax() {
-  depends=('python-requests')
-
-  cd betamax
-  python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}
-
-package_python2-betamax() {
-  depends=('python2-requests')
-
-  cd betamax-py2
-  python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-betamax/repos/community-any/PKGBUILD (from rev 307494, python-betamax/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2018-03-13 23:43:45 UTC (rev 307495)
@@ -0,0 +1,46 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-betamax
+pkgname=('python-betamax' 'python2-betamax')
+pkgver=0.8.1
+pkgrel=1
+pkgdesc="A VCR imitation for python-requests"
+arch=('any')
+license=('GPL')
+url='https://github.com/sigmavirus24/betamax'
+makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python2-mock')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/sigmavirus24/betamax/archive/$pkgver.tar.gz")
+sha512sums=('3888aa5f1e249faf496a32c03fb7d37096d7bbde573048c2ff3d1ba0fa03ebaeb4ff4e72191478da5f1a04d813204e31d3897469bd5f5eea4c5db2c72aae1374')
+
+prepare() {
+  cp -a betamax-$pkgver{,-py2}
+}
+
+check() {
+  # Failure about isinstance urllib3.response.HTTPResponse affects only tests.
+  # We need to investigate it more.
+
+  cd "$srcdir"/betamax-$pkgver
+  python setup.py pytest || warning "Tests failed"
+
+  cd "$srcdir"/betamax-$pkgver-py2
+  python2 setup.py pytest || warning "Tests failed"
+}
+
+package_python-betamax() {
+  depends=('python-requests')
+
+  cd betamax-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-betamax() {
+  depends=('python2-requests')
+
+  cd betamax-$pkgver-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