[arch-commits] Commit in python-hacking/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Fri May 11 08:26:26 UTC 2018
Date: Friday, May 11, 2018 @ 08:26:24
Author: felixonmars
Revision: 320628
upgpkg: python-hacking 1.1.0-1
Modified:
python-hacking/trunk/PKGBUILD
----------+
PKGBUILD | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-05-11 08:25:20 UTC (rev 320627)
+++ PKGBUILD 2018-05-11 08:26:24 UTC (rev 320628)
@@ -16,14 +16,7 @@
sha512sums=('25e8fc8585b0de2c9f746a31539d2ee0b6b18685f17cac149bf8cf372d9c31d1f10ac93087d6bcc69b4d1a15b4b3c99cecbe15fe95e903c3de72aba21af32827')
prepare() {
- sed -e 's/flake8<2.6.0,/flake8/' -e 's/==/>=/' -i hacking-$pkgver/requirements.txt
- sed -e 's/pep8/pycodestyle/' -i hacking-$pkgver/{requirements.txt,hacking/tests/*.py,hacking/core.py}
- sed -e 's/from flake8 import engine/from flake8.api import legacy as engine/' -i hacking-$pkgver/hacking/tests/*.py
- sed -e '/pycodestyle.BaseReport/i \ self.options.benchmark_keys = pycodestyle.BENCHMARK_KEYS' -i hacking-$pkgver/hacking/tests/*.py
- sed -e '/pycodestyle.BaseReport/i \ self.options.ignore_code = pycodestyle.StyleGuide.ignore_code' -i hacking-$pkgver/hacking/tests/*.py
- sed -e '/pycodestyle.BaseReport/i \ self.options.physical_checks = []' -i hacking-$pkgver/hacking/tests/*.py
- sed -e '/pycodestyle.BaseReport/i \ self.options.logical_checks = []' -i hacking-$pkgver/hacking/tests/*.py
- sed -e '/pycodestyle.BaseReport/i \ self.options.ast_checks = []' -i hacking-$pkgver/hacking/tests/*.py
+ sed -e 's/flake8<2.7.0,/flake8/' -e 's/==/>=/' -i hacking-$pkgver/requirements.txt
cp -a hacking-$pkgver{,-py2}
export PBR_VERSION=$pkgver
More information about the arch-commits
mailing list