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

Felix Yan felixonmars at archlinux.org
Wed Jun 6 08:00:29 UTC 2018


    Date: Wednesday, June 6, 2018 @ 08:00:29
  Author: felixonmars
Revision: 340941

upgpkg: python-httpretty 0.9.4-1

Modified:
  python-httpretty/trunk/PKGBUILD

----------+
 PKGBUILD |   31 +++++++++++++++++--------------
 1 file changed, 17 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-06-06 07:59:23 UTC (rev 340940)
+++ PKGBUILD	2018-06-06 08:00:29 UTC (rev 340941)
@@ -3,28 +3,31 @@
 
 pkgbase=python-httpretty
 pkgname=("python-httpretty" "python2-httpretty")
-pkgver=0.8.14
-pkgrel=2
+pkgver=0.9.4
+_commit=2a9e08d96feff10d5d68557f0579b9c6b8d9ebf2
+pkgrel=1
 pkgdesc="HTTP client mock for Python"
 arch=('any')
-url="http://github.com/gabrielfalcao/httpretty"
+url="https://github.com/gabrielfalcao/httpretty"
 license=('MIT')
-makedepends=('python-urllib3' 'python2-urllib3' 'python-setuptools' 'python2-setuptools' 'git')
-checkdepends=('python-nose' 'python2-nose' 'python-coverage' 'python2-coverage' 'python-mock' 'python2-mock'
-              'python-sure' 'python2-sure' 'python-tornado' 'python2-tornado' 'python-requests' 'python2-requests'
-              'python-httplib2' 'python2-httplib2')
-source=("git+https://github.com/gabrielfalcao/HTTPretty.git#tag=$pkgver")
-md5sums=('SKIP')
+makedepends=('python-urllib3' 'python2-urllib3' 'python-setuptools' 'python2-setuptools')
+checkdepends=('python-nose' 'python2-nose' 'python-coverage' 'python2-coverage' 'python-mock'
+              'python2-mock' 'python-sure' 'python2-sure' 'python-tornado' 'python2-tornado'
+              'python-requests' 'python2-requests' 'python-httplib2' 'python2-httplib2'
+              'python-nose-randomly' 'python2-nose-randomly' 'python-rednose' 'python2-rednose')
+source=("$pkgbase-$_commit.tar.gz::https://github.com/gabrielfalcao/HTTPretty/archive/$_commit.tar.gz")
+sha512sums=('1c0b517388cc2a0e69c00a2ddc63d19164089caf5dca9525134387c8040911f4a2460b22370601ef9a79ca4f87bf5c3a7a0a6f5991fb58c9558292d9f84a464e')
 
 prepare() {
-  cp -a HTTPretty{,-py2}
+  mv HTTPretty-{$_commit,$pkgver}
+  cp -a HTTPretty-$pkgver{,-py2}
 }
 
 check() {
-  cd HTTPretty
+  cd HTTPretty-$pkgver
   nosetests3 -s tests || warning "Tests failed"
 
-  cd ../HTTPretty-py2
+  cd ../HTTPretty-$pkgver-py2
   nosetests2 -s tests
 }
 
@@ -31,7 +34,7 @@
 package_python-httpretty() {
   depends=('python-urllib3')
 
-  cd HTTPretty
+  cd HTTPretty-$pkgver
   python3 setup.py install --root="${pkgdir}" --optimize=1
   install -Dm644 COPYING "$pkgdir/usr/share/licenses/python-httpretty/COPYING"
 }
@@ -39,7 +42,7 @@
 package_python2-httpretty() {
   depends=('python2-urllib3')
 
-  cd HTTPretty-py2
+  cd HTTPretty-$pkgver-py2
   python2 setup.py install --root="${pkgdir}" --optimize=1
   install -Dm644 COPYING "$pkgdir/usr/share/licenses/python2-httpretty/COPYING"
 }



More information about the arch-commits mailing list