[arch-commits] Commit in flake8/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Tue Aug 1 14:47:47 UTC 2017
Date: Tuesday, August 1, 2017 @ 14:47:46
Author: felixonmars
Revision: 247314
upgpkg: flake8 1:3.4.1-1
Modified:
flake8/trunk/PKGBUILD
----------+
PKGBUILD | 31 +++++++++++++++----------------
1 file changed, 15 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-08-01 14:46:25 UTC (rev 247313)
+++ PKGBUILD 2017-08-01 14:47:46 UTC (rev 247314)
@@ -6,40 +6,39 @@
pkgbase=flake8
pkgname=(flake8 python2-flake8)
-pkgver=3.3.0
+pkgver=3.4.1
pkgrel=1
epoch=1
pkgdesc="The modular source code checker: pep8, pyflakes and co"
arch=('any')
-url="http://bitbucket.org/tarek/flake8"
+url="http://flake8.pycqa.org"
license=('MIT')
makedepends=('python-setuptools' 'python2-setuptools' 'python-pyflakes' 'python2-pyflakes'
'python-pycodestyle' 'python2-pycodestyle' 'python-mccabe' 'python2-mccabe'
- 'python2-enum34' 'python2-configparser' 'python-pytest-runner' 'python2-pytest-runner'
- 'git')
+ 'python2-enum34' 'python2-configparser' 'python-pytest-runner' 'python2-pytest-runner')
checkdepends=('python-mock' 'python2-mock')
-source=("git+https://gitlab.com/pycqa/flake8.git#tag=$pkgver")
-md5sums=('SKIP')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/PyCQA/flake8/archive/$pkgver.tar.gz")
+sha512sums=('f8c48265e20a7196d426d4022f8e98df7d445b9c7ee9a829228ec5710075f118572fed292ba71c81f761bb9baf15fa0f6c28639ab5afd6ae754b3ea0b1e7d613')
prepare() {
- sed -i -e 's/, *< *[0-9=.]*//' flake8/setup.py
- cp -a flake8{,-py2}
+ sed -i -e 's/, *< *[0-9=.]*//' flake8-$pkgver/setup.py
+ cp -a flake8-$pkgver{,-py2}
}
build() {
- cd "$srcdir"/flake8
+ cd "$srcdir"/flake8-$pkgver
python setup.py build
- cd "$srcdir"/flake8-py2
+ cd "$srcdir"/flake8-$pkgver-py2
python2 setup.py build
}
check() {
- cd "$srcdir"/flake8
- python setup.py ptr
+ cd "$srcdir"/flake8-$pkgver
+ python setup.py pytest
- cd "$srcdir"/flake8-py2
- python2 setup.py ptr
+ cd "$srcdir"/flake8-$pkgver-py2
+ python2 setup.py pytest
}
package_flake8() {
@@ -48,7 +47,7 @@
replaces=('flake8-python3')
conflicts=('flake8-python3')
- cd "$srcdir"/flake8
+ cd "$srcdir"/flake8-$pkgver
python setup.py install --root="$pkgdir" --prefix=/usr --optimize=1
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
@@ -60,7 +59,7 @@
replaces=('flake8-python2')
conflicts=('flake8-python2')
- cd "$srcdir"/flake8-py2
+ cd "$srcdir"/flake8-$pkgver-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