[arch-commits] Commit in flake8/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Jan 31 20:56:36 UTC 2019
Date: Thursday, January 31, 2019 @ 20:56:35
Author: felixonmars
Revision: 428822
upgpkg: flake8 1:3.7.3-1
Modified:
flake8/trunk/PKGBUILD
----------+
PKGBUILD | 23 ++++++++++++++---------
1 file changed, 14 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-01-31 20:56:27 UTC (rev 428821)
+++ PKGBUILD 2019-01-31 20:56:35 UTC (rev 428822)
@@ -5,7 +5,7 @@
pkgbase=flake8
pkgname=(flake8 python2-flake8)
-pkgver=3.6.0
+pkgver=3.7.3
pkgrel=1
epoch=1
pkgdesc="The modular source code checker: pep8, pyflakes and co"
@@ -14,10 +14,11 @@
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')
-checkdepends=('python-mock' 'python2-mock')
+ 'python2-enum34' 'python2-configparser' 'python-entrypoints' 'python2-entrypoints'
+ 'python2-functools32' 'python2-typing')
+checkdepends=('python-mock' 'python2-mock' 'python-pytest' 'python2-pytest')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/PyCQA/flake8/archive/$pkgver.tar.gz")
-sha512sums=('112f02fbeb93c7d6088f057936013b76ccf38258e3674cae32b0abfdbbe0ad553c57065e8128906c4fbbe49278a15c3f32d2326e2f8b8b889003de53c8ebf0f1')
+sha512sums=('ea165d2a006266cc820f81304b128c93900ed98548ebf52b7b61a6388ec5fae0499455f20ec3e6260b675b0b3f16bd86981829af7d373bcdb870a85e0dbebe44')
prepare() {
sed -i -e 's/, *< *[0-9=.]*//' flake8-$pkgver/setup.py
@@ -33,15 +34,19 @@
}
check() {
+ # Hack entry points by installing it
+
cd "$srcdir"/flake8-$pkgver
- python setup.py pytest
+ 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"/flake8-$pkgver-py2
- python2 setup.py pytest
+ python2 setup.py install --root="$PWD/tmp_install" --optimize=1
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python2.7/site-packages:$PYTHONPATH" py.test2
}
package_flake8() {
- depends=('python-pyflakes' 'python-mccabe' 'python-pycodestyle')
+ depends=('python-pyflakes' 'python-mccabe' 'python-pycodestyle' 'python-entrypoints')
provides=('flake8-python3')
replaces=('flake8-python3')
conflicts=('flake8-python3')
@@ -52,8 +57,8 @@
}
package_python2-flake8() {
- depends=('python2-pyflakes' 'python2-mccabe' 'python2-pycodestyle' 'python2-enum34'
- 'python2-configparser')
+ depends=('python2-pyflakes' 'python2-mccabe' 'python2-pycodestyle' 'python2-entrypoints'
+ 'python2-enum34' 'python2-configparser' 'python2-functools32' 'python2-typing')
provides=('flake8-python2')
replaces=('flake8-python2')
conflicts=('flake8-python2')
More information about the arch-commits
mailing list