[arch-commits] Commit in python-testfixtures/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu May 18 04:40:14 UTC 2017


    Date: Thursday, May 18, 2017 @ 04:40:06
  Author: felixonmars
Revision: 228404

upgpkg: python-testfixtures 4.14.3-1

Modified:
  python-testfixtures/trunk/PKGBUILD

----------+
 PKGBUILD |   31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-05-18 04:39:42 UTC (rev 228403)
+++ PKGBUILD	2017-05-18 04:40:06 UTC (rev 228404)
@@ -3,35 +3,36 @@
 
 pkgbase=python-testfixtures
 pkgname=('python-testfixtures' 'python2-testfixtures')
-pkgver=4.13.5
+pkgver=4.14.3
 pkgrel=1
 pkgdesc="A collection of helpers and mock objects that are useful when writing unit tests or doc tests"
 arch=('any')
 license=('MIT')
 url="https://github.com/Simplistix/testfixtures"
-makedepends=('python-setuptools' 'python2-setuptools' 'git')
-checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock'
-              'python-manuel' 'python2-manuel' 'python-nose-fixes' 'python2-nose-fixes')
-source=("git+https://github.com/Simplistix/testfixtures.git#tag=$pkgver")
+makedepends=('python-setuptools' 'python2-setuptools')
+checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-zope-component'
+              'python2-zope-component' 'python-manuel' 'python2-manuel' 'python-nose-fixes'
+              'python2-nose-fixes' 'python-django' 'python2-django')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/Simplistix/testfixtures/archive/$pkgver.tar.gz")
 sha512sums=('SKIP')
 
 prepare() {
-  cp -a testfixtures{,-py2}
+  cp -a testfixtures-$pkgver{,-py2}
 }
 
 build() {
-  cd "$srcdir"/testfixtures
+  cd "$srcdir"/testfixtures-$pkgver
   python setup.py build
 
-  cd "$srcdir"/testfixtures-py2
+  cd "$srcdir"/testfixtures-$pkgver-py2
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/testfixtures
-  nosetests3 || warning "Tests failed"
+  cd "$srcdir"/testfixtures-$pkgver
+  nosetests3
 
-  cd "$srcdir"/testfixtures-py2
+  cd "$srcdir"/testfixtures-$pkgver-py2
   nosetests2
 }
 
@@ -38,15 +39,15 @@
 package_python-testfixtures() {
   depends=('python')
 
-  cd testfixtures
+  cd testfixtures-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 docs/license.txt "$pkgdir/usr/share/licenses/$pkgname/license.txt"
+  install -D -m644 docs/license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
 }
 
 package_python2-testfixtures() {
   depends=('python2')
 
-  cd testfixtures-py2
+  cd testfixtures-$pkgver-py2
   python2 setup.py install --root="$pkgdir" --optimize=1
-  install -D -m644 docs/license.txt "$pkgdir/usr/share/licenses/$pkgname/license.txt"
+  install -D -m644 docs/license.txt "$pkgdir"/usr/share/licenses/$pkgname/license.txt
 }



More information about the arch-commits mailing list