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

Felix Yan felixonmars at archlinux.org
Tue Sep 11 17:36:54 UTC 2018


    Date: Tuesday, September 11, 2018 @ 17:36:53
  Author: felixonmars
Revision: 379758

upgpkg: python-pytest-isort 0.2.1-1

Modified:
  python-pytest-isort/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-09-11 16:48:35 UTC (rev 379757)
+++ PKGBUILD	2018-09-11 17:36:53 UTC (rev 379758)
@@ -3,25 +3,25 @@
 
 pkgbase=python-pytest-isort
 pkgname=('python-pytest-isort' 'python2-pytest-isort')
-pkgver=0.2.0
-pkgrel=3
+pkgver=0.2.1
+pkgrel=1
 pkgdesc='pytest plugin to perform isort checks (import ordering)'
 arch=('any')
 license=('BSD')
 url='https://github.com/moccu/pytest-isort'
-makedepends=('python-pytest-cache' 'python2-pytest-cache' 'python-isort' 'python2-isort' 'git')
-source=("git+https://github.com/moccu/pytest-isort#tag=$pkgver")
-sha512sums=('SKIP')
+makedepends=('python-pytest-cache' 'python2-pytest-cache' 'python-isort' 'python2-isort')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/moccu/pytest-isort/archive/$pkgver.tar.gz")
+sha512sums=('49eacc3913d75ce8ee61fbd84e2b3e8b792a7895b32d8a4a7df766079d8598410654bf548c221c3262034f792b22508151316dfbe76dcc296d4b79dd281843c7')
 
 prepare() {
-  cp -a pytest-isort{,-py2}
+  cp -a pytest-isort-$pkgver{,-py2}
 }
 
 build() {
-  cd "$srcdir"/pytest-isort
+  cd "$srcdir"/pytest-isort-$pkgver
   python setup.py build
 
-  cd "$srcdir"/pytest-isort-py2
+  cd "$srcdir"/pytest-isort-$pkgver-py2
   python2 setup.py build
 }
 
@@ -28,11 +28,11 @@
 check() {
   # Hack entry points by installing it
 
-  cd "$srcdir"/pytest-isort
+  cd "$srcdir"/pytest-isort-$pkgver
   python setup.py install --root="$PWD/tmp_install" --optimize=1
   PYTHONPATH="$PWD/tmp_install/usr/lib/python3.7/site-packages:$PYTHONPATH" py.test
 
-  cd "$srcdir"/pytest-isort-py2
+  cd "$srcdir"/pytest-isort-$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
 }
@@ -40,7 +40,7 @@
 package_python-pytest-isort() {
   depends=('python-pytest-cache' 'python-isort')
 
-  cd pytest-isort
+  cd pytest-isort-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
 }
@@ -48,7 +48,7 @@
 package_python2-pytest-isort() {
   depends=('python2-pytest-cache' 'python2-isort')
 
-  cd pytest-isort-py2
+  cd pytest-isort-$pkgver-py2
   python2 setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
 }



More information about the arch-commits mailing list