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

Morten Linderud foxboron at archlinux.org
Mon Dec 25 21:33:13 UTC 2017


    Date: Monday, December 25, 2017 @ 21:33:13
  Author: foxboron
Revision: 276042

upgpkg: python-wheel 0.30.0-1

Updated, fixed check() by removing directory, and added new optdepends

Modified:
  python-wheel/trunk/PKGBUILD

----------+
 PKGBUILD |   26 ++++++++++++++++----------
 1 file changed, 16 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-12-25 20:46:31 UTC (rev 276041)
+++ PKGBUILD	2017-12-25 21:33:13 UTC (rev 276042)
@@ -1,21 +1,25 @@
 # $Id$
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
 # Contributor: Lance Chen <cyen0312 at gmail.com>
 
 _pypiname=wheel
 pkgbase=python-wheel
 pkgname=('python-wheel' 'python2-wheel')
-pkgver=0.29.0
-pkgrel=2
+pkgver=0.30.0
+pkgrel=1
 pkgdesc="A built-package format for Python"
 arch=(any)
 url="https://pypi.python.org/pypi/wheel"
 license=('MIT')
-makedepends=('python-setuptools' 'python2-setuptools')
+makedepends=('python' 'python-setuptools'
+             'python2' 'python2-setuptools')
 checkdepends=('python-jsonschema' 'python2-jsonschema' 'python-pytest-cov' 'python2-pytest-cov'
-              'python-keyring' 'python2-keyring' 'python-keyrings-alt' 'python2-keyrings-alt')
-source=("https://pypi.python.org/packages/source/w/wheel/$_pypiname-$pkgver.tar.gz")
-md5sums=('555a67e4507cedee23a0deb9651e452f')
+              'python-keyring' 'python2-keyring' 'python-keyrings-alt' 'python2-keyrings-alt'
+              'python-xdg' 'python2-xdg')
+source=("https://pypi.io/packages/source/w/wheel/$_pypiname-$pkgver.tar.gz")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pypa/wheel/archive/$pkgver.tar.gz")
+md5sums=('a7341e955a3563e806abd44efabad9cb')
 
 prepare() {
   cp -a wheel-$pkgver{,-py2}
@@ -34,19 +38,20 @@
 
   cd "$srcdir/wheel-$pkgver"
   python setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.6/site-packages:$PYTHONPATH" py.test wheel
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python3.6/site-packages:$PYTHONPATH" py.test
 
   cd "$srcdir/wheel-$pkgver-py2"
   python2 setup.py install --root="$PWD/tmp_install" --optimize=1
-  PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2 wheel
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2
 }
 
 package_python-wheel() {
   depends=('python')
   optdepends=('python-keyring: for wheel.signatures')
+  optdepends=('python-xdg: for wheel.signatures')
 
   cd "$srcdir/$_pypiname-$pkgver"
-  python setup.py install --root="$pkgdir/" --optimize=1
+  python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
   install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
 }
 
@@ -53,9 +58,10 @@
 package_python2-wheel() {
   depends=('python2')
   optdepends=('python2-keyring: for wheel.signatures')
+  optdepends=('python2-xdg: for wheel.signatures')
 
   cd "$srcdir/$_pypiname-$pkgver"
-  python2 setup.py install --root="$pkgdir/" --optimize=1
+  python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
   install -D -m644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
   mv "$pkgdir/usr/bin/wheel" "$pkgdir/usr/bin/wheel2"
 }



More information about the arch-commits mailing list