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

Felix Yan felixonmars at archlinux.org
Mon Jul 25 14:09:04 UTC 2016


    Date: Monday, July 25, 2016 @ 14:09:04
  Author: felixonmars
Revision: 183972

upgpkg: flake8 1:3.0.0-1

Modified:
  flake8/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++++++++++++++----------------
 1 file changed, 19 insertions(+), 16 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-07-25 12:28:35 UTC (rev 183971)
+++ PKGBUILD	2016-07-25 14:09:04 UTC (rev 183972)
@@ -6,7 +6,7 @@
 
 pkgbase=flake8
 pkgname=(flake8 python2-flake8)
-pkgver=2.6.2
+pkgver=3.0.0
 pkgrel=1
 epoch=1
 pkgdesc="The modular source code checker: pep8, pyflakes and co"
@@ -14,30 +14,32 @@
 url="http://bitbucket.org/tarek/flake8"
 license=('MIT')
 makedepends=('python-setuptools' 'python2-setuptools' 'python-pyflakes' 'python2-pyflakes'
-             'python-pycodestyle' 'python2-pycodestyle' 'python-mccabe' 'python2-mccabe')
-checkdepends=('python-nose' 'python2-nose' 'python2-mock')
-source=("https://pypi.io/packages/source/f/flake8/flake8-$pkgver.tar.gz")
-md5sums=('cf4f63730fd35e736a8a99583b9158fd')
+             'python-pycodestyle' 'python2-pycodestyle' 'python-mccabe' 'python2-mccabe'
+             'python2-enum34' 'python2-configparser' 'python-pytest-runner' 'python2-pytest-runner'
+             'git')
+checkdepends=('python-mock' 'python2-mock')
+source=("git+https://gitlab.com/pycqa/flake8.git#tag=$pkgver")
+md5sums=('SKIP')
 
 prepare() {
-  sed -i -e 's/, *< *[0-9=.]*//' flake8-$pkgver/setup.py
-  cp -a flake8-$pkgver{,-py2}
+  sed -i -e 's/, *< *[0-9=.]*//' flake8/setup.py
+  cp -a flake8{,-py2}
 }
 
 build() {
-  cd "$srcdir"/flake8-$pkgver
+  cd "$srcdir"/flake8
   python setup.py build
 
-  cd "$srcdir"/flake8-$pkgver-py2
+  cd "$srcdir"/flake8-py2
   python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/flake8-$pkgver
-  python setup.py test
+  cd "$srcdir"/flake8
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test
 
-  cd "$srcdir"/flake8-$pkgver-py2
-  python2 setup.py test
+  cd "$srcdir"/flake8-py2
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" py.test2
 }
 
 package_flake8() {
@@ -46,18 +48,19 @@
   replaces=('flake8-python3')
   conflicts=('flake8-python3')
 
-  cd "$srcdir"/flake8-$pkgver
+  cd "$srcdir"/flake8
   python setup.py install --root="$pkgdir" --prefix=/usr --optimize=1
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
 package_python2-flake8() {
-  depends=('python2-pyflakes' 'python2-mccabe' 'python2-pycodestyle')
+  depends=('python2-pyflakes' 'python2-mccabe' 'python2-pycodestyle' 'python2-enum34'
+           'python2-configparser')
   provides=('flake8-python2')
   replaces=('flake8-python2')
   conflicts=('flake8-python2')
 
-  cd "$srcdir"/flake8-$pkgver-py2
+  cd "$srcdir"/flake8-py2
   python2 setup.py install --root="$pkgdir" --prefix=/usr --optimize=1
   mv "$pkgdir"/usr/bin/flake8{,-python2}
   install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE



More information about the arch-commits mailing list