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

Felix Yan felixonmars at archlinux.org
Thu Oct 13 06:44:17 UTC 2016


    Date: Thursday, October 13, 2016 @ 06:44:17
  Author: felixonmars
Revision: 192118

upgpkg: python-pluggy 0.4.0-1

Modified:
  python-pluggy/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-13 06:40:34 UTC (rev 192117)
+++ PKGBUILD	2016-10-13 06:44:17 UTC (rev 192118)
@@ -3,7 +3,7 @@
 
 pkgbase=python-pluggy
 pkgname=(python-pluggy python2-pluggy)
-pkgver=0.3.1
+pkgver=0.4.0
 pkgrel=1
 pkgdesc="Plugin and hook calling mechanisms for python"
 arch=('any')
@@ -10,9 +10,9 @@
 url="https://www.pluggypayments.com/docs/python"
 license=('MIT')
 makedepends=('python-setuptools' 'python2-setuptools')
-checkdepends=('python-pytest' 'python2-pytest')
-source=("https://pypi.python.org/packages/source/p/pluggy/pluggy-$pkgver.tar.gz")
-sha512sums=('ebff28ef6d5eb78d8043fcf3860e43dd80bd800c12f6f744ae2a8757815f94034c858dbd6f4ab35dd4c609d4446aeb1783ace4f54ea6c3de6ec295ec06c7abb8')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("https://pypi.io/packages/source/p/pluggy/pluggy-$pkgver.zip")
+sha512sums=('1a6e28df05751767df1ac3dfac4c29ba0367f05ae9c8c6a7f5163bb53de36f90226ed18baedeb41bc8ca23504ca61a9b32ef907d3ec3fee7512bcdf45a56d19c')
 
 prepare() {
   cp -a pluggy-$pkgver{,-py2}
@@ -19,19 +19,19 @@
 }
 
 build() {
-  cd pluggy-$pkgver
+  cd "$srcdir"/pluggy-$pkgver
   python setup.py build
 
-  cd ../pluggy-$pkgver-py2
+  cd "$srcdir"/pluggy-$pkgver-py2
   python2 setup.py build
 }
 
 check() {
-  cd pluggy-$pkgver
-  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test
+  cd "$srcdir"/pluggy-$pkgver
+  python setup.py ptr
 
-  cd ../pluggy-$pkgver-py2
-  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test2
+  cd "$srcdir"/pluggy-$pkgver-py2
+  python2 setup.py ptr
 }
 
 package_python-pluggy() {
@@ -38,9 +38,9 @@
   depends=('python')
 
   cd pluggy-$pkgver
-  python setup.py install -O1 --root "${pkgdir}"
+  python setup.py install -O1 --root "$pkgdir"
 
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
 package_python2-pluggy() {
@@ -47,7 +47,7 @@
   depends=('python2')
 
   cd pluggy-$pkgver-py2
-  python2 setup.py install -O1 --root "${pkgdir}"
+  python2 setup.py install -O1 --root "$pkgdir"
 
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



More information about the arch-commits mailing list