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

Eric Bélanger eric at nymeria.archlinux.org
Sat May 17 13:45:43 UTC 2014


    Date: Saturday, May 17, 2014 @ 15:45:43
  Author: eric
Revision: 111364

upgpkg: python-urllib3 1.8.2-1

Upstream update, Clean up PKGBUILD

Modified:
  python-urllib3/trunk/PKGBUILD

----------+
 PKGBUILD |   27 +++++++++++++--------------
 1 file changed, 13 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-05-17 12:56:25 UTC (rev 111363)
+++ PKGBUILD	2014-05-17 13:45:43 UTC (rev 111364)
@@ -5,9 +5,8 @@
 # Contributor: BorgHunter <borghunter at gmail dot com>
 
 pkgname=(python-urllib3 python2-urllib3)
-_pkgname=urllib3
-pkgver=1.8
-pkgrel=2
+pkgver=1.8.2
+pkgrel=1
 pkgdesc="HTTP library with thread-safe connection pooling and file post support"
 arch=("any")
 url="https://github.com/shazow/urllib3"
@@ -15,9 +14,9 @@
 makedepends=('python-setuptools' 'python2-setuptools' 'git')
 checkdepends=('python-nose' 'python2-nose' 'python-mock' 'python2-mock' 'python-pyopenssl' 'python2-pyopenssl'
               'python-tornado' 'python2-tornado' 'python2-ndg-httpsclient' 'python-coverage' 'python2-coverage')
-source=("git+https://github.com/shazow/$_pkgname.git#tag=$pkgver" 
+source=("https://github.com/shazow/urllib3/archive/$pkgver.tar.gz" 
         LICENSE)
-md5sums=('SKIP'
+md5sums=('7d5fb23d23d87840720e730b6a744edb'
          '350846ab4dd11ce105b570c15c1b0764')
 
 prepare() {
@@ -24,14 +23,14 @@
   # Hack version requirements for test requirements to run tests - Disabled due to tests not runable
   #sed -e "s/==.*//" -i $_pkgname/test-requirements.txt
 
-  cp -a $_pkgname{,-py2}
+  cp -a urllib3-$pkgver{,-py2}
 }
 
 build() {
-  cd "$srcdir/$_pkgname"
+  cd urllib3-$pkgver
   python setup.py build
 
-  cd "$srcdir/$_pkgname-py2"
+  cd ../urllib3-$pkgver-py2
   python2 setup.py build
 }
 
@@ -38,17 +37,17 @@
 check() {
   # Tests stuck
 
-  cd "$srcdir/$_pkgname"
-  #nosetests3 -e "pyopenssl"  # No ndg-httpsclient module to test with
+  cd urllib3-$pkgver
+#  nosetests3 -e "pyopenssl"  # No ndg-httpsclient module to test with
 
-  cd "$srcdir/$_pkgname-py2"
-  #nosetests2
+  cd ../urllib3-$pkgver-py2
+#  nosetests2
 }
 
 package_python-urllib3() {
   depends=('python')
 
-  cd $_pkgname
+  cd urllib3-$pkgver
   python setup.py install --root="${pkgdir}"
   install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }
@@ -56,7 +55,7 @@
 package_python2-urllib3() {
   depends=('python2')
 
-  cd $_pkgname-py2
+  cd urllib3-$pkgver-py2
   python2 setup.py install --root="${pkgdir}"
   install -Dm644 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }




More information about the arch-commits mailing list