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

Felix Yan felixonmars at archlinux.org
Wed Oct 25 12:13:03 UTC 2017


    Date: Wednesday, October 25, 2017 @ 12:13:02
  Author: felixonmars
Revision: 264240

upgpkg: python-pytest-flake8 0.9-1

Modified:
  python-pytest-flake8/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-10-25 12:09:21 UTC (rev 264239)
+++ PKGBUILD	2017-10-25 12:13:02 UTC (rev 264240)
@@ -3,28 +3,28 @@
 
 pkgbase=python-pytest-flake8
 pkgname=('python-pytest-flake8' 'python2-pytest-flake8')
-pkgver=0.8.1
-pkgrel=2
+pkgver=0.9
+pkgrel=1
 pkgdesc='pytest plugin to check FLAKE8 requirements'
 arch=('any')
 license=('MIT')
-url='http://github.com/tholo/pytest-flake8'
-makedepends=('python-pytest' 'python2-pytest' 'flake8' 'python2-flake8' 'git')
-source=("git+https://github.com/tholo/pytest-flake8#tag=$pkgver")
-md5sums=('SKIP')
+url='https://github.com/tholo/pytest-flake8'
+makedepends=('python-pytest' 'python2-pytest' 'flake8' 'python2-flake8')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/tholo/pytest-flake8/archive/$pkgver.tar.gz")
+sha512sums=('07d35cf636824178065ace6113afa6a37cb5d451f43da2683a694e6104bf72f27e7c89da59573b817031522f5827d06ef3136ee91db0162d9dcb25e63454592d')
 
 prepare() {
   # https://github.com/tholo/pytest-flake8/pull/14
-  sed -i 's/flake8-ignore = E128/flake8-ignore = E128 E501/' pytest-flake8/tox.ini
+  sed -i 's/flake8-ignore = E128/flake8-ignore = E128 E501/' pytest-flake8-$pkgver/tox.ini
 
-  cp -a pytest-flake8{,-py2}
+  cp -a pytest-flake8-$pkgver{,-py2}
 }
 
 build() {
-  cd "$srcdir"/pytest-flake8
+  cd "$srcdir"/pytest-flake8-$pkgver
   python setup.py build
 
-  cd "$srcdir"/pytest-flake8-py2
+  cd "$srcdir"/pytest-flake8-$pkgver-py2
   python2 setup.py build
 }
 
@@ -31,11 +31,11 @@
 check() {
   # Hack entry points by installing it
 
-  cd "$srcdir"/pytest-flake8
+  cd "$srcdir"/pytest-flake8-$pkgver
   python setup.py install --root="$PWD/tmp_install" --optimize=1
   PYTHONPATH="$PWD/tmp_install/usr/lib/python3.6/site-packages:$PYTHONPATH" py.test
 
-  cd "$srcdir"/pytest-flake8-py2
+  cd "$srcdir"/pytest-flake8-$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
 }
@@ -43,7 +43,7 @@
 package_python-pytest-flake8() {
   depends=('python-pytest' 'flake8')
 
-  cd pytest-flake8
+  cd pytest-flake8-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
@@ -51,7 +51,7 @@
 package_python2-pytest-flake8() {
   depends=('python2-pytest' 'python2-flake8')
 
-  cd pytest-flake8-py2
+  cd pytest-flake8-$pkgver-py2
   python2 setup.py install --root="$pkgdir" --optimize=1
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



More information about the arch-commits mailing list