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

Felix Yan felixonmars at archlinux.org
Thu Nov 19 19:06:50 UTC 2020


    Date: Thursday, November 19, 2020 @ 19:06:50
  Author: felixonmars
Revision: 757688

regenerate matchers to fix test failure

Modified:
  python-libcst/trunk/PKGBUILD

----------+
 PKGBUILD |    7 +++++++
 1 file changed, 7 insertions(+)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-11-19 19:06:34 UTC (rev 757687)
+++ PKGBUILD	2020-11-19 19:06:50 UTC (rev 757688)
@@ -14,6 +14,13 @@
 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
 sha512sums=('f4f0a962557a12bf92b806d10ee9c10de04c066fe6f56e59a2664439a79f49b9a98e4420b78321ac0dd49c04a3603f778b2ebbc0597521725421bd512072c2eb')
 
+prepare() {
+  cd $_pkgname-$pkgver
+
+  sed -i 's/import AbstractBaseMatcherNodeMeta/import Optional, AbstractBaseMatcherNodeMeta/' libcst/codegen/gen_matcher_classes.py
+  python -m libcst.codegen.generate matchers
+}
+
 build() {
   cd $_pkgname-$pkgver
 



More information about the arch-commits mailing list